Hard
Consider the following block of code:
resource "google_storage_bucket" "this" {
count = 3
name = "test-bucket-${count.index}"
location = "EU"
}
How do you reference the name attribute of the second instance of this resource?
Author: Julien WITTOUCKStatus: PublishedQuestion passed 63 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
2
How to check which resources will be deleted by Terraform before actually deleting them?1
Which commands are used to download and update modules in Terraform?1
What Terraform command line parameter controls the number of operations performed simultaneously during a `terraform apply`?2
What are the valid type statements in Terraform?1
Which provider versions is Terraform allowed to install?1
What does the "terraform init" command do?2
How to use a local variable in a Terraform resource declaration?