You have just developed a new Terraform configuration for two virtual machines with a cloud provider. You would like to create the infrastructure for the first time.
Which Terraform command should you run first?
You have just developed a new Terraform configuration for two virtual machines with a cloud provider. You would like to create the infrastructure for the first time.
Which Terraform command should you run first?
When working with Terraform for the first time, the initial step is to run the 'terraform init' command. This command initializes the working directory containing Terraform configuration files, downloading necessary provider plugins and modules, and setting up the backend configuration. It prepares your environment for the subsequent execution of Terraform commands such as 'terraform plan' and 'terraform apply'.
terraform init if you want to run it for the first time.
I go with D. init
D - init
keyword is for the first time: so terraform init is correct ans option : D
D is correct
If it is first time then Terraform init command.
First we should run terraform init
This will initialize the working directory containing the TF config files
Terraform init
D You need to initialize so all the provider plugin and configurations dependencies get initialized