Which type of block fetches or computes information for use elsewhere in a Terraform configuration?
If you manually destroy infrastructure, what is the best practice reflecting this change in Terraform?
A developer on your team is going to leaf down an existing deployment managed by Terraform and deploy a new one. However, there is a server resource named aws instant.ubuntu[l] they would like to keep. What command should they use to tell Terraform to stop managing that specific resource?
You want to create a string that combines a generated random_id and a variable and reuse that string several times in your configuration. What is the simplest correct way to implement this without repeating the random_id and variable?
When a check block’s assertion fails, Terraform blocks the current operation from executing.
Exhibit:
data " aws_ami " " web " {
most_recent = true
owners = [ " self " ]
tags = {
Name = " web-server "
}
}
A data source is shown in the exhibit. How do you reference the id attribute of this data source?
A senior admin accidentally deleted some of your cloud instances. What will Terraform do when you run terraform apply?