How would you output returned values from a child module in the Terraform CLI output?
You have created a main.tf Terraform configuration consisting of an application server, a database and a load balanced. You ran terraform apply and Terraform created all of the resources successfully.
Now you realize that you do not actually need the load balancer, so you run terraform destroy without any flags. What will happen?
Your root module contains a variable namednum_servers. Which is the correct way to pass its value to a child module with an input namedservers?
You can develop a custom provider to manage its resources using Terraform.
Which option cannot be used to keep secrets out of Terraform configuration files?
You have to initialize a Terraform backend before it can be configured.
Which command should you run to check if all code in a Terraform configuration that references multiple modules is properly formatted without making changes?
What is one disadvantage of using dynamic blocks in Terraform?
What does Terraform not reference when running a terraform apply -refresh-only ?
You modified your Terraform configuration to fix a typo in the resource ID by renaming it from photoes to photos. What configuration will you add to update the resource ID in state without destroying the existing resource?
Original configuration:
resource "aws_s3_bucket" "photoes" {
bucket_prefix = "images"
}
Updated configuration:
resource "aws_s3_bucket" "photos" {
bucket_prefix = "images"
}