What happens on Linux-based operating systems when you run terraform plan command and confirm by typing yes?

Experience Level: Junior
Tags: Terraform

Answer

The terraform plan command does not require confirmation. The confirmation is requested in terraform apply.

When you run terraform plan command, it display a speculative execution plan and then returns back to the command-line. When you then type yes and hit enter, the yes command will be executed from the command-line. This behaves as though you were typing "y" and hitting Enter, over and over. It will carry on doing so until you press Ctrl+C to interrupt it.

This is a frequent mistake that happens when you don't pay attention what Terraform command you execute.

Comments

No Comments Yet.
Be the first to tell us what you think.
Terraform CLI
Terraform CLI

Are you learning Terraform ? Try our test we designed to help you progress faster.

Test yourself

Chat

Oh, the operator is not available. Leave us your comments. We will answer all your questions as soon as possible.

Comments

Anonymous
Καλησπέρα.
Anonymous
the infinteis -3/15 so 1triition / infinet
Anonymous
e
Anonymous
<a href="https://inspirum.pl "
Anonymous
[url]https://inspirum.pl[/url]
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e