云形成 RDS "Specified OptionGroupName: devrdsoptiongroup not found"

Cloud Formation RDS "Specified OptionGroupName: devrdsoptiongroup not found"

我正在使用 Cloud Formation 模板来恢复看起来像这样的现有数据库快照:

    "devDatabaseService" : {
       "Type" : "AWS::RDS::DBInstance",
       "Properties" : {
          "AllocatedStorage" : "200" ,
          "DBInstanceClass" : "db.m3.medium",
          "DBSnapshotIdentifier" : "snapshot-to-restor",
          "Iops" : 1000,
        "DBSubnetGroupName" : { "Ref" : "devDBSubnetGroup" },
          "Engine" : "sqlserver-se",
          "EngineVersion" : "11.00.2100.60.v1",
          "LicenseModel" : "license-included",
          "MasterUsername" : "admin",
          "MasterUserPassword" : { "Ref" : "DbPassword" },
          "StorageEncrypted" : "true",
          "Tags" : [ { "Key" : "Name", "Value" : "devDatabase" } ],
            "PubliclyAccessible" : true,
          "VPCSecurityGroups" : [ { "Fn::GetAtt": [ "devDBSecurityGroup", "GroupId" ] } ],
            "OptionGroupName": "devRDSOptionGroup"}
        }
        "DependsOn": "devRDSOptionGroup"
    },
    "devRDSOptionGroup" : {
      "Type" : "AWS::RDS::OptionGroup",
      "Properties" : {
        "EngineName" : "sqlserver-se",
        "MajorEngineVersion" : "11.00",
        "OptionGroupDescription" : "devRDSOptionGroup",
        "OptionConfigurations" : [],
        "Tags" : [ {"Key" : "Name", "Value" : "devRDSOptionGroup"} ]
      }
    }

遗憾的是,堆栈创建失败并出现错误:"Specified OptionGroupName: devrdsoptiongroup not found"

如果我创建并引用一个 OptionGroup "manually"(例如通过控制台),它工作得很好。我还注意到在尝试创建 DBInstance 之前创建了 OptionGroup。

我做错了什么?

尝试更改

"OptionGroupName": "devRDSOptionGroup"

"OptionGroupName": {"Ref" : "devRDSOptionGroup" }

我相信您尝试放在 devRDSOptionGroup 资源上的名称标签实际上没有做任何事情 - 而如果您引用创建的资源,它应该根据 AWS 文档提供您的 OptionGroup 的名称.