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?
What kind of configuration block will create an infrastructure object with settings specified within the block?
You have never used Terraform before and would like to test it out using a shared team account for a cloud provider. The shared team account already contains 15 virtual machines (VM). You develop a Terraform configuration containing one VM. perform terraform apply, and see that your VM was created successfully. What should you do to delete the newly-created VM with Terraform?
Which of these workflows is only enabled by the use of Infrastructure as Code?
You can configure multiple cloud blocks in your Terraform configuration to connect your workspace to both HCP Terraform and your Terraform Enterprise instance.
If one of your modules uses a local value, you can expose that value to callers of the module by defining a Terraform output in the module’s configuration.