From 69561f6fd5ad9e747003785b615a4a458273030d Mon Sep 17 00:00:00 2001 From: aknysh Date: Mon, 4 Nov 2024 09:07:26 -0500 Subject: [PATCH 1/7] updates --- examples/quick-start-advanced/Dockerfile | 2 +- website/docs/integrations/atlantis.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/quick-start-advanced/Dockerfile b/examples/quick-start-advanced/Dockerfile index 4e5fb3d20..4fd2887da 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.100.0 +ARG ATMOS_VERSION=1.101.0 # Terraform: https://github.com/hashicorp/terraform/releases ARG TF_VERSION=1.9.8 diff --git a/website/docs/integrations/atlantis.mdx b/website/docs/integrations/atlantis.mdx index 310f204d0..fe3180c04 100644 --- a/website/docs/integrations/atlantis.mdx +++ b/website/docs/integrations/atlantis.mdx @@ -673,7 +673,7 @@ on: branches: [ main ] env: - ATMOS_VERSION: 1.100.0 + ATMOS_VERSION: 1.101.0 ATMOS_CLI_CONFIG_PATH: ./ jobs: From 6c7409e0d6624af0477f8c325171469542475a82 Mon Sep 17 00:00:00 2001 From: aknysh Date: Mon, 4 Nov 2024 09:24:45 -0500 Subject: [PATCH 2/7] updates --- internal/exec/template_funcs_component.go | 3 +++ internal/exec/terraform.go | 4 ++-- internal/exec/terraform_utils.go | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/internal/exec/template_funcs_component.go b/internal/exec/template_funcs_component.go index 49ee3accd..c14f02589 100644 --- a/internal/exec/template_funcs_component.go +++ b/internal/exec/template_funcs_component.go @@ -154,6 +154,9 @@ func componentFunc(cliConfig schema.CliConfiguration, component string, stack st ctx := context.Background() // 'terraform init' + // Before executing `terraform init`, delete the `.terraform/environment` file from the component directory + cleanTerraformWorkspace(cliConfig, componentPath) + u.LogTrace(cliConfig, fmt.Sprintf("\nExecuting 'terraform init %s -s %s'", component, stack)) err = tf.Init(ctx, tfexec.Upgrade(false)) if err != nil { diff --git a/internal/exec/terraform.go b/internal/exec/terraform.go index 7b3153fd4..dcdea15b9 100644 --- a/internal/exec/terraform.go +++ b/internal/exec/terraform.go @@ -280,7 +280,7 @@ func ExecuteTerraform(info schema.ConfigAndStacksInfo) error { } // Before executing `terraform init`, delete the `.terraform/environment` file from the component directory - cleanTerraformWorkspace(componentPath) + cleanTerraformWorkspace(cliConfig, componentPath) err = ExecuteShellCommand( cliConfig, @@ -364,7 +364,7 @@ func ExecuteTerraform(info schema.ConfigAndStacksInfo) error { } case "init": // Before executing `terraform init`, delete the `.terraform/environment` file from the component directory - cleanTerraformWorkspace(componentPath) + cleanTerraformWorkspace(cliConfig, componentPath) if cliConfig.Components.Terraform.InitRunReconfigure { allArgsAndFlags = append(allArgsAndFlags, []string{"-reconfigure"}...) diff --git a/internal/exec/terraform_utils.go b/internal/exec/terraform_utils.go index a3ebca61b..a3b97c450 100644 --- a/internal/exec/terraform_utils.go +++ b/internal/exec/terraform_utils.go @@ -1,12 +1,14 @@ package exec import ( + "fmt" "os" "path" "github.com/pkg/errors" "github.com/cloudposse/atmos/pkg/schema" + u "github.com/cloudposse/atmos/pkg/utils" ) func checkTerraformConfig(cliConfig schema.CliConfiguration) error { @@ -23,6 +25,7 @@ func checkTerraformConfig(cliConfig schema.CliConfiguration) error { // helping Terraform identify the active workspace context for managing your infrastructure. // We delete the file to prevent the Terraform prompt asking to select the default or the // previously used workspace. This happens when different backends are used for the same component. -func cleanTerraformWorkspace(componentPath string) { +func cleanTerraformWorkspace(cliConfig schema.CliConfiguration, componentPath string) { + u.LogTrace(cliConfig, fmt.Sprintf("\nDeleting '.terraform/environment' file: %s", componentPath)) _ = os.Remove(path.Join(componentPath, ".terraform", "environment")) } From e2aacf718e913ef1c5c19b3068ca2ebb574a8af8 Mon Sep 17 00:00:00 2001 From: aknysh Date: Sat, 9 Nov 2024 20:12:40 -0500 Subject: [PATCH 3/7] updates --- internal/exec/terraform_utils.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/exec/terraform_utils.go b/internal/exec/terraform_utils.go index a3b97c450..d341e6ff7 100644 --- a/internal/exec/terraform_utils.go +++ b/internal/exec/terraform_utils.go @@ -3,7 +3,7 @@ package exec import ( "fmt" "os" - "path" + "path/filepath" "github.com/pkg/errors" @@ -26,6 +26,7 @@ func checkTerraformConfig(cliConfig schema.CliConfiguration) error { // We delete the file to prevent the Terraform prompt asking to select the default or the // previously used workspace. This happens when different backends are used for the same component. func cleanTerraformWorkspace(cliConfig schema.CliConfiguration, componentPath string) { - u.LogTrace(cliConfig, fmt.Sprintf("\nDeleting '.terraform/environment' file: %s", componentPath)) - _ = os.Remove(path.Join(componentPath, ".terraform", "environment")) + filePath := filepath.Join(componentPath, ".terraform", "environment") + u.LogTrace(cliConfig, fmt.Sprintf("\nDeleting '%s' file", filePath)) + _ = os.Remove(filePath) } From 4597b49a4e5c707d96dbbc4bfef5a0b160556519 Mon Sep 17 00:00:00 2001 From: aknysh Date: Sun, 10 Nov 2024 15:05:23 -0500 Subject: [PATCH 4/7] updates --- go.mod | 8 ++++---- go.sum | 19 ++++++++----------- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/go.mod b/go.mod index a0ba87eee..640a2fabe 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/arsham/figurine v1.3.0 github.com/bmatcuk/doublestar/v4 v4.7.1 github.com/charmbracelet/bubbles v0.20.0 - github.com/charmbracelet/bubbletea v1.1.2 + github.com/charmbracelet/bubbletea v1.2.1 github.com/charmbracelet/glamour v0.8.0 github.com/charmbracelet/lipgloss v1.0.0 github.com/elewis787/boa v0.1.2 @@ -22,7 +22,7 @@ require ( github.com/hashicorp/go-getter v1.7.6 github.com/hashicorp/hcl v1.0.0 github.com/hashicorp/hcl/v2 v2.22.0 - github.com/hashicorp/terraform-config-inspect v0.0.0-20240801114854-6714b46f5fe4 + github.com/hashicorp/terraform-config-inspect v0.0.0-20241107133921-3adb156ecfe2 github.com/hashicorp/terraform-exec v0.21.0 github.com/ivanpirog/coloredcobra v1.0.1 github.com/json-iterator/go v1.1.12 @@ -30,7 +30,7 @@ require ( github.com/kubescape/go-git-url v0.0.30 github.com/lrstanley/bubblezone v0.0.0-20240914071701-b48c55a5e78e github.com/mitchellh/go-homedir v1.1.0 - github.com/mitchellh/go-wordwrap v1.0.0 + github.com/mitchellh/go-wordwrap v1.0.1 github.com/mitchellh/mapstructure v1.5.0 github.com/open-policy-agent/opa v0.70.0 github.com/otiai10/copy v1.14.0 @@ -95,7 +95,7 @@ require ( github.com/cenkalti/backoff/v3 v3.2.2 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect github.com/chainguard-dev/git-urls v1.0.2 // indirect - github.com/charmbracelet/x/ansi v0.4.2 // indirect + github.com/charmbracelet/x/ansi v0.4.5 // indirect github.com/charmbracelet/x/term v0.2.0 // indirect github.com/cloudflare/circl v1.3.7 // indirect github.com/common-nighthawk/go-figure v0.0.0-20210622060536-734e95fb86be // indirect diff --git a/go.sum b/go.sum index 79a99a901..7031a7d37 100644 --- a/go.sum +++ b/go.sum @@ -395,14 +395,14 @@ github.com/chainguard-dev/git-urls v1.0.2 h1:pSpT7ifrpc5X55n4aTTm7FFUE+ZQHKiqpiw github.com/chainguard-dev/git-urls v1.0.2/go.mod h1:rbGgj10OS7UgZlbzdUQIQpT0k/D4+An04HJY7Ol+Y/o= github.com/charmbracelet/bubbles v0.20.0 h1:jSZu6qD8cRQ6k9OMfR1WlM+ruM8fkPWkHvQWD9LIutE= github.com/charmbracelet/bubbles v0.20.0/go.mod h1:39slydyswPy+uVOHZ5x/GjwVAFkCsV8IIVy+4MhzwwU= -github.com/charmbracelet/bubbletea v1.1.2 h1:naQXF2laRxyLyil/i7fxdpiz1/k06IKquhm4vBfHsIc= -github.com/charmbracelet/bubbletea v1.1.2/go.mod h1:9HIU/hBV24qKjlehyj8z1r/tR9TYTQEag+cWZnuXo8E= +github.com/charmbracelet/bubbletea v1.2.1 h1:J041h57zculJKEKf/O2pS4edXGIz+V0YvojvfGXePIk= +github.com/charmbracelet/bubbletea v1.2.1/go.mod h1:viLoDL7hG4njLJSKU2gw7kB3LSEmWsrM80rO1dBJWBI= github.com/charmbracelet/glamour v0.8.0 h1:tPrjL3aRcQbn++7t18wOpgLyl8wrOHUEDS7IZ68QtZs= github.com/charmbracelet/glamour v0.8.0/go.mod h1:ViRgmKkf3u5S7uakt2czJ272WSg2ZenlYEZXT2x7Bjw= github.com/charmbracelet/lipgloss v1.0.0 h1:O7VkGDvqEdGi93X+DeqsQ7PKHDgtQfF8j8/O2qFMQNg= github.com/charmbracelet/lipgloss v1.0.0/go.mod h1:U5fy9Z+C38obMs+T+tJqst9VGzlOYGj4ri9reL3qUlo= -github.com/charmbracelet/x/ansi v0.4.2 h1:0JM6Aj/g/KC154/gOP4vfxun0ff6itogDYk41kof+qk= -github.com/charmbracelet/x/ansi v0.4.2/go.mod h1:dk73KoMTT5AX5BsX0KrqhsTqAnhZZoCBjs7dGWp4Ktw= +github.com/charmbracelet/x/ansi v0.4.5 h1:LqK4vwBNaXw2AyGIICa5/29Sbdq58GbGdFngSexTdRM= +github.com/charmbracelet/x/ansi v0.4.5/go.mod h1:dk73KoMTT5AX5BsX0KrqhsTqAnhZZoCBjs7dGWp4Ktw= github.com/charmbracelet/x/exp/golden v0.0.0-20240815200342-61de596daa2b h1:MnAMdlwSltxJyULnrYbkZpp4k58Co7Tah3ciKhSNo0Q= github.com/charmbracelet/x/exp/golden v0.0.0-20240815200342-61de596daa2b/go.mod h1:wDlXFlCrmJ8J+swcL/MnGUuYnqgQdW9rhSD61oNMb6U= github.com/charmbracelet/x/term v0.2.0 h1:cNB9Ot9q8I711MyZ7myUR5HFWL/lc3OpU8jZ4hwm0x0= @@ -813,8 +813,8 @@ github.com/hashicorp/memberlist v0.5.0 h1:EtYPN8DpAURiapus508I4n9CzHs2W+8NZGbmmR github.com/hashicorp/memberlist v0.5.0/go.mod h1:yvyXLpo0QaGE59Y7hDTsTzDD25JYBZ4mHgHUZ8lrOI0= github.com/hashicorp/serf v0.10.1 h1:Z1H2J60yRKvfDYAOZLd2MU0ND4AH/WDz7xYHDWQsIPY= github.com/hashicorp/serf v0.10.1/go.mod h1:yL2t6BqATOLGc5HF7qbFkTfXoPIY0WZdWHfEvMqbG+4= -github.com/hashicorp/terraform-config-inspect v0.0.0-20240801114854-6714b46f5fe4 h1:RwY5HBgtBZ997UtKJAO2Rx+94ETyevwWEVXWx1SL5YY= -github.com/hashicorp/terraform-config-inspect v0.0.0-20240801114854-6714b46f5fe4/go.mod h1:Gz/z9Hbn+4KSp8A2FBtNszfLSdT2Tn/uAKGuVqqWmDI= +github.com/hashicorp/terraform-config-inspect v0.0.0-20241107133921-3adb156ecfe2 h1:h+wcDC5wTiM+5YKjuLtUSWJtdtMVJNCRCPHoWieLpM4= +github.com/hashicorp/terraform-config-inspect v0.0.0-20241107133921-3adb156ecfe2/go.mod h1:Gz/z9Hbn+4KSp8A2FBtNszfLSdT2Tn/uAKGuVqqWmDI= github.com/hashicorp/terraform-exec v0.21.0 h1:uNkLAe95ey5Uux6KJdua6+cv8asgILFVWkd/RG0D2XQ= github.com/hashicorp/terraform-exec v0.21.0/go.mod h1:1PPeMYou+KDUSSeRE9szMZ/oHf4fYUmB923Wzbq1ICg= github.com/hashicorp/terraform-json v0.22.1 h1:xft84GZR0QzjPVWs4lRUwvTcPnegqlyS7orfb5Ltvec= @@ -986,8 +986,9 @@ github.com/mitchellh/go-testing-interface v0.0.0-20171004221916-a61a99592b77/go. github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU= github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8= -github.com/mitchellh/go-wordwrap v1.0.0 h1:6GlHJ/LTGMrIJbwgdqdl2eEH8o+Exx/0m8ir9Gns0u4= github.com/mitchellh/go-wordwrap v1.0.0/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= +github.com/mitchellh/go-wordwrap v1.0.1 h1:TLuKupo69TCn6TQSyGxwI1EblZZEsQ0vMlAFQflz0v0= +github.com/mitchellh/go-wordwrap v1.0.1/go.mod h1:R62XHJLzvMFRBbcrT7m7WgmE1eOyTSsCt+hzestvNj0= github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.3.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= @@ -1531,8 +1532,6 @@ golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220906165534-d0df966e6959/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= -golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.27.0 h1:wBqf8DvsY9Y/2P8gAfPDEYNuS30J4lPHJxXSb/nJZ+s= golang.org/x/sys v0.27.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= @@ -1540,8 +1539,6 @@ golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9sn golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= -golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= golang.org/x/term v0.26.0 h1:WEQa6V3Gja/BhNxg540hBip/kkaYtRg3cxg4oXSw4AU= golang.org/x/term v0.26.0/go.mod h1:Si5m1o57C5nBNQo5z1iq+XDijt21BDBDp2bK0QI8e3E= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= From 606cef6d060a8dfc247b130bd8137928375b5d61 Mon Sep 17 00:00:00 2001 From: aknysh Date: Sun, 10 Nov 2024 15:24:35 -0500 Subject: [PATCH 5/7] updates --- examples/quick-start-advanced/Dockerfile | 2 +- website/docs/integrations/atlantis.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/quick-start-advanced/Dockerfile b/examples/quick-start-advanced/Dockerfile index 4fd2887da..72bf03b7f 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.101.0 +ARG ATMOS_VERSION=1.103.0 # Terraform: https://github.com/hashicorp/terraform/releases ARG TF_VERSION=1.9.8 diff --git a/website/docs/integrations/atlantis.mdx b/website/docs/integrations/atlantis.mdx index fe3180c04..e72f39d41 100644 --- a/website/docs/integrations/atlantis.mdx +++ b/website/docs/integrations/atlantis.mdx @@ -673,7 +673,7 @@ on: branches: [ main ] env: - ATMOS_VERSION: 1.101.0 + ATMOS_VERSION: 1.103.0 ATMOS_CLI_CONFIG_PATH: ./ jobs: From 34eabb489c33865f328dff1380d9d4e4c1e8375c Mon Sep 17 00:00:00 2001 From: aknysh Date: Mon, 11 Nov 2024 19:04:33 -0500 Subject: [PATCH 6/7] updates --- examples/quick-start-advanced/Dockerfile | 2 +- internal/exec/terraform_utils.go | 2 +- website/docs/integrations/atlantis.mdx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/quick-start-advanced/Dockerfile b/examples/quick-start-advanced/Dockerfile index 72bf03b7f..e617a6cfd 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.103.0 +ARG ATMOS_VERSION=1.105.0 # Terraform: https://github.com/hashicorp/terraform/releases ARG TF_VERSION=1.9.8 diff --git a/internal/exec/terraform_utils.go b/internal/exec/terraform_utils.go index d341e6ff7..b4ba07a56 100644 --- a/internal/exec/terraform_utils.go +++ b/internal/exec/terraform_utils.go @@ -27,6 +27,6 @@ func checkTerraformConfig(cliConfig schema.CliConfiguration) error { // previously used workspace. This happens when different backends are used for the same component. func cleanTerraformWorkspace(cliConfig schema.CliConfiguration, componentPath string) { filePath := filepath.Join(componentPath, ".terraform", "environment") - u.LogTrace(cliConfig, fmt.Sprintf("\nDeleting '%s' file", filePath)) + u.LogTrace(cliConfig, fmt.Sprintf("\nDeleting file: '%s'", filePath)) _ = os.Remove(filePath) } diff --git a/website/docs/integrations/atlantis.mdx b/website/docs/integrations/atlantis.mdx index e72f39d41..0a3222ae8 100644 --- a/website/docs/integrations/atlantis.mdx +++ b/website/docs/integrations/atlantis.mdx @@ -673,7 +673,7 @@ on: branches: [ main ] env: - ATMOS_VERSION: 1.103.0 + ATMOS_VERSION: 1.105.0 ATMOS_CLI_CONFIG_PATH: ./ jobs: From 57fd95e487b3361f834e3f022d2e195c0dd6d1bf Mon Sep 17 00:00:00 2001 From: aknysh Date: Mon, 11 Nov 2024 19:21:13 -0500 Subject: [PATCH 7/7] updates --- internal/exec/terraform_utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/exec/terraform_utils.go b/internal/exec/terraform_utils.go index b4ba07a56..7348a1230 100644 --- a/internal/exec/terraform_utils.go +++ b/internal/exec/terraform_utils.go @@ -27,6 +27,6 @@ func checkTerraformConfig(cliConfig schema.CliConfiguration) error { // previously used workspace. This happens when different backends are used for the same component. func cleanTerraformWorkspace(cliConfig schema.CliConfiguration, componentPath string) { filePath := filepath.Join(componentPath, ".terraform", "environment") - u.LogTrace(cliConfig, fmt.Sprintf("\nDeleting file: '%s'", filePath)) + u.LogDebug(cliConfig, fmt.Sprintf("\nDeleting Terraform environment file:\n'%s'", filePath)) _ = os.Remove(filePath) }