Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

What is wrong with this api gateway ARN?

When I try to use boto3 to update a tag value on an api gateway endpoint, I get the following error:

BadRequestException: An error occurred (BadRequestException) when calling the TagResource operation: Invalid ARN specified in the request

Here is the ARN I am passing to the script:
arn:aws:execute-api:us-east-1:111111111111:5yojn7poz0/*/GET/test

Can you help me spot the problem?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Not all resources types support tagging. For a list of allowed resources, see https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-tagging-supported-resources.html.

If you intended to tag the api as a whole, the arn structure is arn:<partition>:apigateway:<region>::/restapis/<api-id>. For a complete list see https://docs.aws.amazon.com/apigateway/latest/developerguide/arn-format-reference.html.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading