小编Mik*_*nko的帖子

Fn :: GetAtt中的AWS Cloudformation Fn :: ImportValue

是否可以在Fn :: GetAtt中使用Fn :: ImportValue。目前,我正在尝试执行以下操作

    "ParentId": {
       "Fn::GetAtt": [
          {
            "Fn::ImportValue": {
               "Fn::Sub": "${ParentStack}:RestApi"
             }
          },
          "RootResourceId"
       ]
    }
Run Code Online (Sandbox Code Playgroud)

但是我面临一个错误。“模板错误:每个Fn :: GetAtt对象都需要两个非空参数,即资源名称和资源属性”。

amazon-web-services aws-cloudformation

5
推荐指数
2
解决办法
3401
查看次数