CloudFormation自定义资源responseKey

时间:2019-03-12 09:05:38

标签: amazon-web-services lambda amazon-cloudformation devops infrastructure-as-a-code

我在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

帮助!谢谢:)

0 个答案:

没有答案
相关问题