AWS API Gateway resource: invalid or unknown key: tags #7218
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/apigateway
Issues and PRs that pertain to the apigateway service.
Milestone
Terraform Version
Terraform v0.11.11
provider.aws v1.9.0
Affected Resource(s)
aws_api_gateway_resource
Terraform Configuration Files
resource "aws_api_gateway_resource" "api_method_resource" {
rest_api_id = "${var.api_id}"
parent_id = "${var.resource_id}"
path_part = "${var.url_path}"
tags = "${merge(
local.common_tags,
map(
"Name", "${var.env}_api_method_resource"
))}"
}
Debug Output
$ terraform validate
Error: aws_api_gateway_resource.api_method_resource: : invalid or unknown key: tags
Expected Behavior
Terraform should apply tags to API Gateway resource
Actual Behavior
Error appears showing "tags" is unsupported key
Steps to Reproduce
terraform validate
The text was updated successfully, but these errors were encountered: