AWS Cloudformation VPC Endpoint DNS名 取得
・GetAttでVPCendpointのDNS名(アベイラビリティーゾーンなし)を取得する
・VPC Endpoint例
TestEndpoint:
Type: AWS::EC2::VPCEndpoint
Properties:
SecurityGroupIds:
- !Ref VPCEndpointSecurityGroup
ServiceName: !Sub com.amazonaws.${AWS::Region}.ssm
SubnetIds:
- !Ref Subnet001
VpcEndpointType: Interface
VpcId: !Ref VPC
・以下で取得できる。
Value: !Select ['1', !Split [':', !Select ['0', !GetAtt TestEndpoint.DnsEntries]]]
参考
コメント
コメントを投稿