Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 61 discussion

Actual exam question from HashiCorp's Terraform Associate
Question #: 61
Topic #: 1
[All Terraform Associate Questions]

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.

Show Suggested Answer Hide Answer
Suggested Answer: -out=FILENAME
Reference:
https://www.terraform.io/docs/cli/commands/plan.html

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Eltooth
Highly Voted 2 years, 4 months ago
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
upvoted 9 times
...
secdaddy
Highly Voted 1 year, 11 months ago
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
upvoted 5 times
...
Canarys_Automations
Most Recent 10 months, 2 weeks ago
-out=FILEPATH
upvoted 1 times
...
modarov
1 year, 3 months ago
terraform plan -out plan.out
upvoted 1 times
...
Power123
1 year, 7 months ago
terraform plan -out =FILE
upvoted 2 times
...
thor7
1 year, 8 months ago
terraform plan -out=path/to/the/file
upvoted 4 times
...
samkobadev
1 year, 9 months ago
-out=path Write a plan file to the given path. This can be used asinput to the "apply" command.
upvoted 2 times
...
Dsmo
1 year, 11 months ago
Would -out still count as correct?
upvoted 1 times
...
kopper2019
2 years, 3 months ago
terraform plan -out=FILE
upvoted 2 times
...
Honeywealth
2 years, 4 months ago
-out=FILE
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...