В блоке #Outputs #CloudFormation #templates нельзя сделать:
т.к. в #GetAtt нельзя использовать функции. Потому нужно использовать обратную конструкцию:
dns1:
Value: !GetAtt [ !If [ IsPrivate, esDomainVpc, esDomainPublic ], 'DomainEndpoint']т.к. в #GetAtt нельзя использовать функции. Потому нужно использовать обратную конструкцию:
Value: !If [ IsPrivate, !GetAtt [esDomainVpc, 'DomainEndpoint'], !GetAtt [esDomain, 'DomainEndpoint'] ]Amazon
Fn::GetAtt - AWS CloudFormation
Learn how to return the value of an attribute from a resource in your CloudFormation template by using the Fn::GetAtt intrinsic function.