jwr
03/30/2023, 2:12 PMjq
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:
terraform plan -out=tfplan
terraform show -json tfplan | jq -S .
So inside atlantis, assuming that a plan had already been run, should I expect something like this to work?
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 Wilson
03/30/2023, 2:29 PMjwr
03/30/2023, 2:31 PMexit 1
and fail the apply before applying.PePe Amengual
03/30/2023, 3:00 PMjwr
03/30/2023, 3:10 PMPePe Amengual
03/30/2023, 3:15 PM