You write a new Terraform configuration and immediately run terraform apply in the CLI using the local backend.
Why will the apply fail?
You write a new Terraform configuration and immediately run terraform apply in the CLI using the local backend.
Why will the apply fail?
When you write a new Terraform configuration, before you apply any changes, you must first run 'terraform init'. This command initializes your configuration by downloading and installing the necessary provider plugins and setting up the backend for state management. Without running 'terraform init' first, the 'terraform apply' command will fail because Terraform will not have the necessary plugins to understand and provision the defined resources.
Need to run Terraform Init first to install the plugins
B. Terraform needs to install the necessary plugins first. When running terraform apply for a new Terraform configuration, Terraform needs to install the necessary provider plugins and any dependencies before it can create or modify any resources. Without the necessary plugins, Terraform cannot fully understand the resources that are defined in the configuration file.
Answer - B. You need to run 'terraform init' command first to initialize the terraform plugins.
B. You need to run init for required plugins
B is correct answer. You need to run terraform init before running apply.
B for sure.
B is correct
it's B
Answer B. terraform init
First of all: terraform init
init required Terraform needs to install the necessary plugins first
B plugins first
B for sure
Has to run terraform init first
B is the correct, terraform init to download required plugins
it is B
terraform init needs to be run first so it can download required modules and setup backend.