From 5a55781b9a0d63563191d1e1142264bee04f1be7 Mon Sep 17 00:00:00 2001 From: Andriy Knysh Date: Thu, 13 Feb 2025 13:58:06 -0500 Subject: [PATCH] Update `atmos terraform` commands that require processing of `Go` templates and Atmos YAML functions (#1062) * updates * updates --- examples/quick-start-advanced/Dockerfile | 2 +- internal/exec/terraform_utils.go | 16 ++++++++++++++++ website/docs/integrations/atlantis.mdx | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/examples/quick-start-advanced/Dockerfile b/examples/quick-start-advanced/Dockerfile index 60e1a0b78..128690dbd 100644 --- a/examples/quick-start-advanced/Dockerfile +++ b/examples/quick-start-advanced/Dockerfile @@ -6,7 +6,7 @@ ARG GEODESIC_OS=debian # https://atmos.tools/ # https://github.com/cloudposse/atmos # https://github.com/cloudposse/atmos/releases -ARG ATMOS_VERSION=1.162.0 +ARG ATMOS_VERSION=1.162.1 # Terraform: https://github.com/hashicorp/terraform/releases ARG TF_VERSION=1.5.7 diff --git a/internal/exec/terraform_utils.go b/internal/exec/terraform_utils.go index 02e70e368..fa268f7ab 100644 --- a/internal/exec/terraform_utils.go +++ b/internal/exec/terraform_utils.go @@ -123,6 +123,22 @@ func needProcessTemplatesAndYamlFunctions(command string) bool { "destroy", "generate", "output", + "shell", + "write", + "force-unlock", + "import", + "refresh", + "show", + "taint", + "untaint", + "validate", + "state list", + "state mv", + "state pull", + "state push", + "state replace-provider", + "state rm", + "state show", } return u.SliceContainsString(commandsThatNeedFuncProcessing, command) } diff --git a/website/docs/integrations/atlantis.mdx b/website/docs/integrations/atlantis.mdx index 23d232222..e69ae5a7f 100644 --- a/website/docs/integrations/atlantis.mdx +++ b/website/docs/integrations/atlantis.mdx @@ -673,7 +673,7 @@ on: branches: [ main ] env: - ATMOS_VERSION: 1.162.0 + ATMOS_VERSION: 1.162.1 ATMOS_CLI_CONFIG_PATH: ./ jobs: