Only the user that generated a plan may apply it.
Only the user that generated a plan may apply it.
The statement is false. The user who generated a plan is not the only one who may apply it. In Terraform, for instance, a plan can be saved to a file and any user with appropriate permissions can apply that plan. This facilitates collaboration among team members, as one member can generate the plan and another can apply it.
I suppose they do it by purpose so we discuss it
this made me laugh :)
you made my day :)
B is correct, a plan can be stored as a file and another person can execute the plan file
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.
It should be B
A lot of question are wrong here, in this case is B: False
B: False
B. False Somebody else can apply the plan via Terraform Cloud. I have tested this.
B is correct
B is correct answer.
It looks like 50% of provided answers here are wrong, should be false
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.
b is the answer
aws_instance.example[*].id is a valid
B is the answer
B is correct
Someone can run an apply without plan also. So B is the correct answer.
B is correct ,,