amazon rds - Cloud Formation RDS "Specified OptionGroupName: devrdsoptiongroup not found" -
i'm working on cloud formation template restore existing db snapshot looks this:
"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"} ] } }
sadly, stack creation fails error: "specified optiongroupname: devrdsoptiongroup not found"
if create , reference optiongroup "manually" (e.g. through console) works fine. have noticed optiongroup being created prior attempting create dbinstance.
what doing wrong?
try changing
"optiongroupname": "devrdsoptiongroup"
to
"optiongroupname": {"ref" : "devrdsoptiongroup" }
i believe name tag you're trying put on devrdsoptiongroup resource doesn't - whereas if reference created resource, should provide name of optiongroup, per aws docs.
Comments
Post a Comment