Terraform

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

You run a local-exec provisioner in a null resource called null_resource.run_script and realize that you need to rerun the script. Which of the following commands would you use first?

Terraform taint null_resource.run_script

What command does Terraform require the first time you run it within a configuration directory?

Terraform init

One remote backend configuration always maps to a single remote workspace.

False

The terraform.tfstate file always matches your currently built infrastructure.

False

How is the Terraform remote backend different than other state backends such as S3, Consul, etc.?

It can execute Terraform runs on dedicated infrastructure on premises or in Terraform Cloud.

Which of the following is not true of Terraform providers?

None of the above

Which provisioner invokes a process on the resource created by Terraform?

Remote-exec

You have deployed a new webapp with a public IP address on a cloud provider. However, you did not create any outputs for your code. What is the best method to quickly find the IP address of the resource you deployed?

Run terraform state list to find the name of the resource, then terraform state show to find the attributes including public IP address

A provider configuration block is required in every Terraform configuration. ● Example: Provider "provider_name" { ... }

True

What is the workflow for deploying new infrastructure with Terraform?

Write a Terraform configuration, run terraform init, run terraform plan to view planned infrastructure changes, and terraform apply to create new infrastructure


Ensembles d'études connexes

Chapter 7 - Project Cost Management

View Set

Ch8: Network Configuration Concepts

View Set

LIFE ONLY_Chapter 3- Life Insurance Basics

View Set

HLTH 1100 | HILLMAN | CHAPTER 5 QUIZ

View Set

Exam 4- Principles of Pharmacology

View Set

NE 106-Spring 2021- Test 3-Practice Questions-Newborn

View Set