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.
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.
-out=FILENAME
Reference:
https://www.terraform.io/docs/cli/commands/plan.html
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
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
terraform plan -out=path/to/the/file
-out=FILE
terraform plan -out =FILE
-out=path Write a plan file to the given path. This can be used asinput to the "apply" command.
terraform plan -out=FILE
-out=FILEPATH
terraform plan -out plan.out
Would -out still count as correct?