TERRAFORM-ASSOCIATE-004 · Question #191
What is the provider for the resource shown in the Exhibit? resource "aws_vpc" "main" { name = "test" }
The correct answer is D. aws. Terraform resource type names follow the convention '<provider>_<resource_type>'. In 'aws_vpc', everything before the first underscore is the provider name - 'aws'. The portion after the first underscore ('vpc') identifies the specific resource type within that provider. The labe
Question
Options
- AVPC
- Btest
- Cmain
- Daws
How the community answered
(44 responses)- B5% (2)
- C2% (1)
- D93% (41)
Explanation
Terraform resource type names follow the convention '<provider>_<resource_type>'. In 'aws_vpc', everything before the first underscore is the provider name - 'aws'. The portion after the first underscore ('vpc') identifies the specific resource type within that provider. The label 'main' is the local resource name used to reference this resource elsewhere in configuration. 'test' is just a tag value. Therefore, the provider is 'aws'.
Topics
Community Discussion
No community discussion yet for this question.