无法确定标签“!GetAtt”的构造函数 [英] could not determine a constructor for the tag '!GetAtt'

查看:161
本文介绍了无法确定标签“!GetAtt”的构造函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为S3上托管的网站编写CFT-YML文件顺利通过模板验证,但是构建代理返回以下错误:

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:无法确定标记'!GetAtt'

Outputs:
  WebsiteURL:
    Value: !GetAtt RootBucket.WebsiteURL
    Description: URL for website hosted on S3

推荐答案

尝试不使用Fn :: GetAtt的简写版本

Try it without the shorthand version of Fn::GetAtt

Outputs:
  WebsiteURL:
    Value: Fn::GetAtt: [ RootBucket, WebsiteURL ]
    Description: URL for website hosted on S3

这篇关于无法确定标签“!GetAtt”的构造函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆