could not determine a constructor for the tag '!GetAtt' [closed]

爷,独闯天下 提交于 2019-12-07 09:00:51

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!