terramate-io/terramate

[FEATURE] Persist -detailed-exitcode terraform flag with terrmate

Opened this issue · 0 comments

cvr12 commented

Is your feature request related to a problem? Please describe.
When using -detailed-exitcode for terraform plan (see terraform docs terramate when there are changes in the plan (terraform returns exit code 2) since this is non-zero

Error: one or more commands failed
> execution failed: running /opt/homebrew/bin/terraform plan -detailed-exitcode -out keikaku (in {DIRECTORY}): exit status 2

Describe the solution you'd like
Any solution that means that the outcome of running the terramate command means the terraform plan exit code is persisted so it can be used in a pipeline / script.

Describe alternatives you've considered
Tried to use --detailed-exit-code flag (seems this is only supported on generate)

Additional context
Add any other context or screenshots about the feature request here.