我在CloudFormation中得到了lambda支持的Custom Stack,所以我需要获取函数输出并将其放到AWS控制台中,如何处理此问题?
我的堆栈如下所示;
"CreateExistingVPC": {
"Type": "Custom::CreateExistingVPC",
"Properties": {
"ServiceToken": { "Fn::If": ["LambdaAvailable",{ "Fn::GetAtt": [ "CustomLogic", "Outputs.LambdaAttachHostedZoneArn" ] }, { "Ref": "AWS::NoValue" } ] },
"Region": { "Ref": "AWS::Region" },
"HostedZoneId": { "Ref": "InternalHostedZone" },
"VpcId": { "Fn::GetAtt": [ "VPC", "Outputs.VPC" ] }
}
}
},
"Outputs": {
"Route53VPC": {
"Description": "ExistingRoute53VPCStatus",
"Value": { "Fn::GetAtt": [ "CreateExistingVPC", "{ ??????? }" ] }
}
}
准确地说,我找到了一些答案,但是“响应键”在我的情况下不起作用,如何找到响应键?
AWS Cloudformation, Output value from Custom Resource
帮助!谢谢:)