【问题标题】:could not determine a constructor for the tag '!GetAtt' [closed]无法确定标签“!GetAtt”的构造函数[关闭]
【发布时间】:2017-11-30 20:51:49
【问题描述】:

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

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

【问题讨论】:

  • 这个问题可能已经回答了here

标签: amazon-cloudformation


【解决方案1】:

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

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-01-01
    • 1970-01-01
    • 2021-12-17
    • 2021-06-11
    • 2019-12-19
    • 1970-01-01
    • 2017-07-27
    • 1970-01-01
    相关资源
    最近更新 更多