【发布时间】:2020-01-09 15:26:27
【问题描述】:
CloudFormation 包含 Fn::GetAtt 内在函数。我如何知道给定资源有哪些属性可用?
ApiDefault:
Type: "AWS::ApiGateway::RestApi"
Properties:
Name: "poc"
Description: "Public interface for system-to-system order submissions."
FailOnWarnings: true
ApiDefaultDeployment:
Type: AWS::ApiGateway::Deployment
DependsOn:
- "ApiMethodImageSubmitPost"
Properties:
Description: "Production environment supporting version-1 of the interface."
RestApiId: !Ref "ApiDefault"
StageName: "v1"
...
ApiUsagePlan:
Type: "AWS::ApiGateway::UsagePlan"
Properties:
ApiStages:
- ApiId: !Ref "ApiDefault"
Stage: !GetAtt [ "ApiDefaultDeployment", "StageName" ]
在上面,“StageName”不是一个有效的属性。那么,如何找到“AWS::ApiGateway::Deployment”的有效属性?
【问题讨论】:
标签: amazon-web-services amazon-cloudformation