In a Terraform resource block like
resource "aws_instance" "web" { ami = "ami-123" }, what do the two quoted strings after resource represent?- aThe AWS region and the availability zone — inconsistent with the actual semantics of this feature
- bThe resource type and the local name used to reference this resource elsewhere in the configuration✓
- cThe provider name and the Terraform version constraint — not how Terraform actually behaves here
- dThe variable name and its default value — this misdescribes the tool's actual, documented behavior
Explanation:The first string is the resource type (e.g.
aws_instance), which tells Terraform which provider resource to create; the second is the local name (e.g. web), used to reference the resource as aws_instance.web elsewhere in the same module.