Skip to content

v1.87.1

Compare
Choose a tag to compare
@cloudposse-releaser cloudposse-releaser released this 01 Sep 01:33
· 42 commits to refs/heads/main since this release
61389b2
Support `atmos terraform apply --from-plan` with additional flags @duncanaf (#684)

what

  • Change argument generation for atmos terraform apply to make sure the plan-file arg is placed after any flags specified by the user

why

  • Terraform is very picky about the order of flags and args, and requires all args (e.g. plan-file) to come after any flags (e.g. --parallelism=1), or it crashes.
  • atmos terraform apply accepts a plan-file arg, or generates one when --from-plan is used. When this happens, it currently puts the plan-file arg first, before any additional flags specified by the user.
  • This breaks when additional flags are specified, e.g. atmos terraform apply --from-plan -- -parallelism=1. In this example, atmos tries to call terraform apply <planfile> --paralellism=1 and terraform crashes with Error: Too many command line arguments