jwr03/30/2023, 2:12 PM
the planfile and do different things based on which resources are going to change. If I need to get a planfile into json locally outside the context of atlantis, I can do:
So inside atlantis, assuming that a plan had already been run, should I expect something like this to work?
terraform plan -out=tfplan terraform show -json tfplan | jq -S .
workflows: init-plan-apply: plan: steps: - init - plan: extra_args: ["-lock-timeout=300s"] apply: steps: - init # Do some jq stuff with the plan before applying - terraform show -json $PLANFILE | jq -S . - apply: extra_args: ["-lock-timeout=300s"]
Isaac Wilson03/30/2023, 2:29 PM
jwr03/30/2023, 2:31 PM
and fail the apply before applying.
PePe Amengual03/30/2023, 3:00 PM
jwr03/30/2023, 3:10 PM
PePe Amengual03/30/2023, 3:15 PM