For example, in a continuous deployment pipeline, one job might run terraform plan -out=plan.out to generate the plan, and this plan could be applied later in a separate job (potentially triggered manually for additional control) using terraform apply plan.out. These jobs might be run under different user accounts, or even on different machines.
As described here: https://developer.hashicorp.com/terraform/tutorials/automation/automate-terraform?utm_source=WEBSITE&utm_medium=WEB_IO&utm_offer=ARTICLE_PAGE&utm_content=DOCS
Steps 1, 2 and 4 can be carried out using the familiar Terraform CLI commands, with some additional options:
terraform init -input=false to initialize the working directory.
terraform plan -out=tfplan -input=false to create a plan and save it to the local file tfplan.
terraform apply -input=false tfplan to apply the plan stored in the file tfplan.
B. False
Terraform does not restrict who can apply a generated plan based on who created it. As long as the person applying the plan has appropriate permissions to modify the resources in question, they should be able to apply the plan. This means that multiple team members can collaborate on Terraform configurations and one person's plan can be applied by someone else.
However, it's important to note that good practices might involve controlling who has the necessary permissions to apply changes, especially in production environments, to ensure that changes are reviewed and approved before being applied.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Jaro3000
Highly Voted 2 years, 5 months agovibzr2023
7 months, 4 weeks agokopper2019
2 years, 3 months agoyuvifose
Highly Voted 2 years, 4 months agoanand0310
Most Recent 2 months, 3 weeks agoBere
1 year, 3 months agotfdestroy
1 year, 3 months agojunk4share
1 year, 4 months agokiran15789
1 year, 6 months agoNi33
1 year, 6 months agoPower123
1 year, 7 months agosahara99
1 year, 9 months agowimarsha
1 year, 9 months agochael88
1 year, 10 months agoAhmad_Terraform
2 years, 4 months agoEltooth
2 years, 4 months agofsdgrtsdfcjmu
2 years, 6 months agobiscuithammer
2 years, 6 months agoItaloVinodi
2 years, 6 months ago