Which of the following is not an action performed by terraform init?
Which of the following is not an action performed by terraform init?
The 'terraform init' command is used to initialize a working directory containing Terraform configuration files. It initializes a configured backend, retrieves the source code for all referenced modules, and loads required provider plugins. However, it does not create a sample main.tf file. A main.tf file must be created by the user or provided by other means. Therefore, the correct answer is that 'terraform init' does not create a sample main.tf file.
Of options, only A is correct answer : Create a sample main.tf file B. Initialize a configured backend : https://www.terraform.io/cli/commands/init#backend-initialization C. Retrieve the source code for all referenced modules : https://www.terraform.io/cli/commands/init#child-module-installation D. Load required provider plugins : https://www.terraform.io/cli/commands/init#plugin-installation
init doen't create an main.tf file.
Correct answer is A
A of course :')