Exam Terraform Associate All QuestionsBrowse all questions from this exam
Question 61

FILL BLANK -

Which flag would you add to terraform plan to save the execution plan to a file?

Type your answer in the field provided. The text field is not case-sensitive and all variations of the correct answer are accepted.

    Correct Answer:

    -out=FILENAME

    Reference:

    https://www.terraform.io/docs/cli/commands/plan.html

Discussion
Eltooth

Answer is correct: terraform plan -out=FILE "You can use the optional -out=FILE option to save the generated plan to a file on disk, which you can later execute by passing the file to terraform apply as an extra argument. This two-step workflow is primarily intended for when running Terraform in automation. If you run terraform plan without the -out=FILE option then it will create a speculative plan, which is a description of the effect of the plan but without any intent to actually apply it." https://www.terraform.io/cli/commands/plan

secdaddy

Question asks for the flag and the flag is -out =FILE is the parameter for the flag No idea if they'll just parse this for -out or if =FILE will be useful terraform plan -out │ Error: Failed to parse command-line flags │ flag needs an argument: -out

thor7

terraform plan -out=path/to/the/file

Honeywealth

-out=FILE

Power123

terraform plan -out =FILE

samkobadev

-out=path Write a plan file to the given path. This can be used asinput to the "apply" command.

kopper2019

terraform plan -out=FILE

Canarys_Automations

-out=FILEPATH

modarov

terraform plan -out plan.out

Dsmo

Would -out still count as correct?