小编the*_*ake的帖子

Cloudformation 模板错误:每个 Ref 对象必须具有单个字符串值

我在验证我的 cfn 时收到此错误。

'Template error: every Ref object must have a single String value.`
Run Code Online (Sandbox Code Playgroud)

谁能告诉我我的 cfn 模板哪里出了问题。

我无法判断它指的是哪个 Ref,因为我已经检查了它们并且可以看到所有引用都被定义为参数。

    CloudFormation {

  #Script Parameters
  Parameter ("region") {
    Type String
    Default region
  }

  Parameter ("environment") {
    Type String
    Default environment.capitalize
  }

  Parameter ("vpcId") {
    Type String
    Default vpcId
  }

  Parameter ("vpcCidr") {
      Type String
      Default vpcCidr
  }

  Parameter ("keyName") {
      Type String
      Default keyName
  }

  Parameter ("pubSub1") {
      Type String
      Default pubSub1
  }

  Parameter ("pubSub2") {
      Type String
      Default pubSub2
  }

  Parameter …
Run Code Online (Sandbox Code Playgroud)

amazon-web-services aws-cloudformation

1
推荐指数
1
解决办法
5533
查看次数