AWS API Gateway资源:无效或未知密钥:标签

时间:2019-01-21 12:17:54

标签: terraform terraform-provider-aws

当我运行以下Terraform模板时:

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"
))}"
}

我遇到以下错误:

Error: aws_api_gateway_resource.api_method_resource: : invalid or unknown key: tags

将标签添加到AWS API Gateway资源会有什么问题?

1 个答案:

答案 0 :(得分:1)

您当前无法标记API网关资源,因此aws_api_gateway_resource resource中不支持tags参数。