如何将parameter passing到Amazon CloudFormation中的嵌套堆栈?
我正在使用CloudFormation来pipe理Amazon API网关堆栈,并尝试(重新)使用嵌套堆栈来为每个HTTP端点方法添加一个OPTIONS方法,以便我可以使用CORS头进行响应。 以下是引用嵌套堆栈的CloudFormation片段: { "AWSTemplateFormatVersion": "2010-09-09", "Description": "AWS CloudFormation template for example HTTP endpoint", "Resources": { "MyRestApi": { "Type": "AWS::ApiGateway::RestApi", "Properties": { "Name": "api.example.com" } }, "HelloResource": { "Type": "AWS::ApiGateway::Resource", "Properties": { "RestApiId": { "Ref": "MyRestApi" }, "ParentId": { "Fn::GetAtt": [ "MyRestApi", "RootResourceId" ] }, "PathPart": "hello" } }, "GETHello": { "Type": "AWS::ApiGateway::Method", "Properties": { […]