QuestionQ19Verified/Core Terraform workflowCopy linkReport a problemAsk AstroTutorSave questionWhat is the correct workflow for deploying new infrastructure using Terraform?A Write Terraform configuration.2. Run terraform apply to create infrastructure.3. Use terraform validate to confirm Terraform deployed resources correctly. B Write Terraform configuration.2. Run terraform init to initialize the working directory or workspace.3. Run terraform apply. C Write Terraform configuration.2. Run terraform plan to initialize the working directory or workspace.3. Run terraform apply to create the infrastructure. D Write Terraform configuration.2. Run terraform show to view proposed changes.3. Run terraform apply to create new infrastructure. Show AnswerAnswerExplanationA Terraform configuration’s working directory must be initialized with terraform init before provisioning operations. terraform init prepares the directory, including backend setup and provider/module installation; terraform apply then creates the infrastructure described by the configuration. Initialize the Terraform working directoryLearn moreInitialize the Terraform working directoryTerraform workflow for provisioning infrastructureShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion