Skip to content

Commit

Permalink
add support for terraform version (#846)
Browse files Browse the repository at this point in the history
* add support for terraform version

* add support for terraform version

issue: https://linear.app/cloudposse/issue/DEV-2820/atmos-terraform-version-does-not-work

---------

Co-authored-by: Andriy Knysh <[email protected]>
  • Loading branch information
samtholiya and aknysh authored Dec 15, 2024
1 parent 11ec388 commit e9a610e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/exec/terraform.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ func ExecuteTerraform(info schema.ConfigAndStacksInfo) error {
fmt.Println()
return nil
}
if info.SubCommand == "version" {
return ExecuteShellCommand(cliConfig,
"terraform",
[]string{info.SubCommand},
"",
nil,
false,
info.RedirectStdErr)
}

shouldProcessStacks := true
shouldCheckStack := true
Expand Down

0 comments on commit e9a610e

Please sign in to comment.