[英]Unable to resolve cloudformation template using !Sub
I am trying to keep apigateway DNS values in ssm parameter section.我试图在 ssm 参数部分保留 apigateway DNS 值。 The way I used the function Select it is just printing in SSM.
我使用 function Select 的方式只是在 SSM 中打印。 apiEndpoint is another resources which is working fine.
apiEndpoint 是另一个工作正常的资源。
I need to change something in Value section so that I can keep the DNS name in ssm parameter.我需要更改值部分中的某些内容,以便我可以在 ssm 参数中保留 DNS 名称。
APIGWEndpointSSM:
Type: AWS::SSM::Parameter
Properties :
Description : vpc endpoint for the nextgen apigateway.
Name : /vpc/apigwvpcendpoint
Type : String
Value : https://!Sub(!Select [1, !Split [":", !Select [ 0, !GetAtt apiEndpoint.DnsEntries ]]])
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.