如何找到 api 网关阶段的 arn?
How can I find the arn of an api gateway stage?
我正在尝试使用 awscli 将标签添加到我的 api 网关阶段
https://docs.aws.amazon.com/cli/latest/reference/apigateway/tag-resource.html
我需要为舞台提供 --resource-arn
,但我无法确定这个值。
我已尝试同时使用 awscli 和控制台来确定此值,但无法找到 api 网关阶段的 arn 是什么。我也尝试过根据 arn pattern/formats.
进行猜测
我如何确定这个值,或者这个 arn 的格式是什么?
我为我之前的定义复制回答道歉。
既然OP自己找到了答案,我宁愿给一个相关资源,一个30k+ stars github repo:
The Open Guide to Amazon Web Services
This guide is by and for engineers who use AWS. It aims to be a useful, living reference that consolidates links, tips, gotchas, and best practices. It arose from discussion and editing over beers by several engineers who have used AWS extensively.
我终于在 aws docs for set up tags via the API Gateway REST API 找到了 api 网关阶段的格式。
ARN 的格式是 arn:aws:apigateway:{region}::/restapis/{rest_api_id}/stages/{stage_name}
最底部是不同 APIGW 工件的示例,最后一个是阶段。
arn:aws:apigateway:region::/restapis/api-id/stages/stage-name
我正在尝试使用 awscli 将标签添加到我的 api 网关阶段 https://docs.aws.amazon.com/cli/latest/reference/apigateway/tag-resource.html
我需要为舞台提供 --resource-arn
,但我无法确定这个值。
我已尝试同时使用 awscli 和控制台来确定此值,但无法找到 api 网关阶段的 arn 是什么。我也尝试过根据 arn pattern/formats.
进行猜测我如何确定这个值,或者这个 arn 的格式是什么?
我为我之前的定义复制回答道歉。
既然OP自己找到了答案,我宁愿给一个相关资源,一个30k+ stars github repo:
The Open Guide to Amazon Web Services
This guide is by and for engineers who use AWS. It aims to be a useful, living reference that consolidates links, tips, gotchas, and best practices. It arose from discussion and editing over beers by several engineers who have used AWS extensively.
我终于在 aws docs for set up tags via the API Gateway REST API 找到了 api 网关阶段的格式。
ARN 的格式是 arn:aws:apigateway:{region}::/restapis/{rest_api_id}/stages/{stage_name}
最底部是不同 APIGW 工件的示例,最后一个是阶段。
arn:aws:apigateway:region::/restapis/api-id/stages/stage-name