I'm trying to create CI that does the following:
- Run
terraform plan -out=plan.outto generate a Terraform plan. - After looking at the Terraform plan output in Github actions, I can manually run another job or workflow that calls
terraform apply plan.outwith the previously generated plan. I want to manually run this automation after the other automation has successfully run, dependent on the previous automation's success, using an artifact from the previous automation.
I've looked online for some examples of this but all the examples of this I can find just run terraform apply without actually allowing someone to verify the plan output.
Is this something that's possible to do in Github Actions?
terraform plan... PR requires manual approval and merge ... then merge triggers theterraform apply___ I just get a feeling you are not doing PRsterraform planjob manually after merge to master. My problem is I don't know how to structure the workflow to be able to manually trigger theterraform applyafter theterraform planhas successfully run. I don't want to automatically run the apply after the plan. I want there to be manual intervention after the plan.