【发布时间】:2019-05-19 11:58:19
【问题描述】:
目标
获取在 Cloudformation 堆栈中创建的 API GW 的名称。如果尝试获取 API GW 指标,则需要 API 名称,因为它们存在 By Api Name
.yaml 示例
TESTAPI:
Type: AWS::ApiGateway::RestApi
Properties:
Description: 'test api'
EndpointConfiguration:
Types:
- REGIONAL
问题
如果我调用!Ref TESTAPI,我会得到API ID,如果我调用!GetAtt TESTAPI.Name,错误是:“无效资源属性”
docs 不显示任何返回值。
【问题讨论】:
标签: amazon-web-services amazon-cloudformation aws-api-gateway