问题
I am writing a CFT for a website hosted on S3 - The YML file passes template-validate with no issues however the build agent returns the following error:
yaml.constructor.ConstructorError: could not determine a constructor for the tag '!GetAtt'
Outputs:
WebsiteURL:
Value: !GetAtt RootBucket.WebsiteURL
Description: URL for website hosted on S3
回答1:
Try it without the shorthand version of Fn::GetAtt
Outputs:
WebsiteURL:
Value: Fn::GetAtt: [ RootBucket, WebsiteURL ]
Description: URL for website hosted on S3
来源:https://stackoverflow.com/questions/44786412/could-not-determine-a-constructor-for-the-tag-getatt