Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS API Gateway resource: invalid or unknown key: tags #7218

Closed
MohamedWaly opened this issue Jan 21, 2019 · 5 comments
Closed

AWS API Gateway resource: invalid or unknown key: tags #7218

MohamedWaly opened this issue Jan 21, 2019 · 5 comments
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/apigateway Issues and PRs that pertain to the apigateway service.
Milestone

Comments

@MohamedWaly
Copy link

MohamedWaly commented Jan 21, 2019

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

@bflad bflad added the service/apigateway Issues and PRs that pertain to the apigateway service. label Jan 25, 2019
@aeschright aeschright added the needs-triage Waiting for first response or review from a maintainer. label Jun 24, 2019
@ewbankkit
Copy link
Contributor

ewbankkit commented Oct 20, 2019

@MohamedWaly aws_api_gateway_resource resources cannot be tagged directly but will inherit tags from the associated aws_api_gateway_rest_api resource.
See https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-tagging-supported-resources.html.

@ewbankkit
Copy link
Contributor

@bflad bflad added enhancement Requests to existing resources that expand the functionality or scope. and removed needs-triage Waiting for first response or review from a maintainer. labels Nov 15, 2019
@bflad bflad added this to the v2.37.0 milestone Nov 15, 2019
@bflad
Copy link
Contributor

bflad commented Nov 15, 2019

Support for aws_api_gateway_rest_api resource tagging has been merged and will release with version 2.37.0 of the Terraform AWS Provider, by Thursday next week. 👍

@bflad bflad closed this as completed Nov 15, 2019
@ghost
Copy link

ghost commented Nov 18, 2019

This has been released in version 2.37.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented Dec 15, 2019

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Dec 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/apigateway Issues and PRs that pertain to the apigateway service.
Projects
None yet
Development

No branches or pull requests

4 participants