The two steps required to provision new infrastructure in the Terraform workflow are:
B. Apply: This step applies the changes to the infrastructure by creating or modifying resources in accordance with the configuration described in the Terraform code.
D. Init: This step initializes a new or existing Terraform working directory by downloading and installing any required providers and modules, as well as setting up the backend.
The other options are:
A. Destroy: This step destroys the resources that are managed by Terraform in the specified configuration.
C. Import: This step allows the user to import existing infrastructure into Terraform's state.
E. Validate: This step checks the syntax and validity of the Terraform configuration files without actually creating or modifying any resources.
The two required steps to provision new infrastructure in the Terraform workflow are:
B. Apply - This step applies the changes to the infrastructure by creating, modifying, or deleting resources based on the Terraform configuration.
D. Init - This step initializes a new or existing Terraform configuration by downloading the required provider plugins and setting up the backend to store the state of the infrastructure.
Options A, C, and E are not required steps to provision new infrastructure in the Terraform workflow:
Destroy (option A) is used to destroy the resources created by the Terraform configuration, which is not required to provision new infrastructure.
Import (option C) is used to import an existing infrastructure resource into the Terraform state, which is not a required step to provision new infrastructure.
Validate (option E) is used to validate the syntax and structure of the Terraform configuration but is not a required step to provision new infrastructure.
The Terraform workflow consists of several steps for provisioning new infrastructure. The two steps that are required to provision new infrastructure in the Terraform workflow are:
B. Apply: The "terraform apply" command is used to provision new infrastructure. This command takes the Terraform configuration files as input and creates or updates the resources specified in the configuration files.
D. Init: The "terraform init" command is used to initialize a Terraform configuration directory. This command must be run before running the "terraform apply" command to ensure that the required Terraform modules and plugins are installed and available.
Note that other steps in the Terraform workflow, such as "terraform destroy" or "terraform import," may also be used depending on your specific needs and the nature of your infrastructure. However, the "terraform apply" and "terraform init" commands are the two steps that are required to provision new infrastructure in the Terraform workflow.
A- is to destrory
C- is to import an existng resource that was manually created . The question is about provisioning a new resource
E - is sjust to valaidate the command structure
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.
enook
10 months, 3 weeks agohungran91
1 year, 4 months agoJlee7
1 year, 5 months agokarendavtyan
1 year, 6 months agoNi33
1 year, 6 months agoconnecttozee
1 year, 7 months agoPower123
1 year, 7 months agoNunyabiznes
1 year, 8 months agoBilalglg93350
1 year, 8 months agoSilentMilli
1 year, 9 months agoawsguys
1 year, 9 months agoFarziWaliMarzi
1 year, 11 months agoRVivek
2 years, 2 months agocjig
2 years, 4 months agoEltooth
2 years, 5 months agoBlackZeros
2 years, 5 months agojavibadillo
2 years, 5 months ago