Deploy your infrastructure via a CircleCI pipeline using the Terraform orb. Integrate Infrastructure-as-Code (IaC) to help provision and manage any cloud, infrastructure, or service of your choice.
[x] All new jobs, commands, executors, parameters have descriptions
[ ] Examples have been added for any significant new features
[ ] README has been updated, if necessary
Motivation, Related Issues
We want to add an approve step when doing terraform through CircleCI. But, no approve is necessary if there is nothing to change. Instead of parsing the plan's output, we want to rely on the status code of the plan to decide if next steps are required.
Description
terraform plan has an extra -detailed-exitcode that we pass as a configuration.
Checklist
Motivation, Related Issues
We want to add an
approve
step when doing terraform through CircleCI. But, no approve is necessary if there is nothing to change. Instead of parsing the plan's output, we want to rely on the status code of the plan to decide if next steps are required.Description
terraform plan
has an extra-detailed-exitcode
that we pass as a configuration.