Hard
Consider the following block of code:
resource "aws_instance" "web" {
count = var.high_availability ? 3 : 1
tags = {
Name = count.index == 0 ? "web-primary" : "web-secondary-${count.index}"
}
}
Which statement(s) about this code are true? (choose 2 answers)
Author: Julien WITTOUCKStatus: PublishedQuestion passed 3 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
Similar QuestionsMore questions about Terraform
1
How to use a local variable in a Terraform resource declaration?0
What Terraform command line parameter controls the number of operations performed simultaneously during a `terraform apply`?0
What are the valid type statements in Terraform?0
How to check which resources will be deleted by Terraform before actually deleting them?0
What is the purpose of the `terraform taint` command?