TERRAFORM-ASSOCIATE-004 · Question #254
You need to deploy resources into two different regions in the same Terraform configuration. To do this, you declare multiple provider configurations as shown in the Exhibit space on this page. What…
The correct answer is A. provider = aws.west. When multiple provider configurations are defined using an alias, Terraform requires the provider meta-argument inside the resource block to explicitly reference the aliased provider. In this case, the provider is defined as aws with alias = "west", so resources targeting…
Question
Exhibit
Options
- Aprovider = aws.west
- Balias = aws.west
- Cprovider = west
- Dalias = west
How the community answered
(42 responses)- A88% (37)
- B2% (1)
- C7% (3)
- D2% (1)
Explanation
When multiple provider configurations are defined using an alias, Terraform requires the provider meta-argument inside the resource block to explicitly reference the aliased provider. In this case, the provider is defined as aws with alias = "west", so resources targeting us-west-2 must specify: provider = aws.west This tells Terraform exactly which provider configuration to use.
Topics
Community Discussion
No community discussion yet for this question.
