v1.185.0
·
4 commits
to main
since this release
Update `atmos terraform plan` command, add `--skip-planfile` flag @aknysh (#1385)
## what- Update
atmos terraform plan
command - Add
--skip-planfile
flag toatmos terraform plan
command - Add
ATMOS_COMPONENTS_TERRAFORM_PLAN_SKIP_PLANFILE
ENV variable - Add
components.terraform.plan.skip_planfile
section toatmos.yaml
- Update docs
- Add tests
why
-
Support Terraform Cloud
-
Allow skipping writing the plan to a file by not passing the
-out
flag to Terraform when executing theatmos terraform plan
command. Set the flag totrue
when using Terraform Cloud since the-out
flag is not supported. Terraform Cloud automatically stores plans in its backend" -
Allow controlling the behavior in three ways:
-
Globally by setting
components.terraform.plan.skip_planfile
totrue
inatmos.yaml
components: terraform: auto_generate_backend_file: true plan: # Skip passing the `-out=FILENAME` flag when executing the `terraform plan` command. # Set it to `true` when using Terraform Cloud since the `-out` flag is not supported. # Terraform Cloud automatically stores plans in its backend. skip_planfile: true
-
Via the
ATMOS_COMPONENTS_TERRAFORM_PLAN_SKIP_PLANFILE
ENV variableATMOS_COMPONENTS_TERRAFORM_PLAN_SKIP_PLANFILE=true atmos terraform plan <component> -s <stack>
-
By passing the
--skip-planfile=true
flag on the command lineatmos terraform plan <component> -s <stack> --skip-planfile=true
-