0

我在使用自定义配置创建 AmazonMQ 时遇到问题。我以某种方式遵循了文档中的aws complex 示例:

  amazonMq:
    Type: "AWS::AmazonMQ::Broker"
    Properties:
      Configuration:
        Id: !GetAtt amazonMqConf.Id
        Revision: !GetAtt amazonMqConf.Revision
      # ... the rest of Broker attributes ... #

  amazonMqConf:
    Type: AWS::AmazonMQ::Configuration
    Properties:
      Data: ""
      # ... the rest of Config attributes ... #

我最终得到了错误:

属性“Id”不存在

我错过了什么?

4

1 回答 1

0

After a bit of trial-error it showed up that return values documentation is not correct and there is no such attribute at Id. What helped is replacing

!GetAtt amazonMqConf.Id

with

!Ref amazonMqConf

since default (Ref) returns same value as Id does.

于 2019-06-10T13:41:43.737 回答