How to use Sub and GetAtt functions at the same time in CloudFormation template?

前端 未结 4 2042
忘了有多久
忘了有多久 2021-01-01 10:40

I create CloudFormation yaml template and I need to use !GetAtt \"TestLambda.Arn\" as part of !Sub function in \"AWS::ApiGateway::Method\" Integrat

4条回答
  •  悲哀的现实
    2021-01-01 11:16

    We can use Fn:: for the nested intrinsic functions if using the ! short form first. So

    !Sub "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/$(Fn::GetAtt:[TestLambda, Arn])/invocations"
    

提交回复
热议问题