I am trying to create an RDS cluster and an aurora instance using the cloud information template below:
{ "AWSTemplateFormatVersion" : "2010-09-09", "Description" : "example setup", "Parameters" : { "DBInstanceIdentifier" : { "Type": "String", "Description": "Name for the DB instance." }, "DBUser" : { "Type": "String", "Description": "Master user" }, "DBPassword" : { "Type": "String", "Description": "Pass" }, "DBModel" : { "Type": "String", "Description": "Instance model to be used for the DB." } }, "Resources": { "RDSCluster": { "Type": "AWS::RDS::DBCluster", "Properties": { "MasterUsername": { "Ref" : "DBUser" }, "MasterUserPassword": { "Ref" : "DBPassword" }, "Engine": "aurora", "DBClusterParameterGroupName": "default.aurora5.6", "VpcSecurityGroupIds": [{"Fn::GetAtt" : [ "DBFromSiteSecurityGroup" , "GroupId" ]}] } }, "AuroraInstance": { "Type": "AWS::RDS::DBInstance", "Properties": { "DBInstanceIdentifier": { "Ref" : "DBInstanceIdentifier" }, "DBParameterGroupName": "default.aurora5.6", "Engine": "aurora", "DBClusterIdentifier": { "Ref": "RDSCluster" }, "PubliclyAccessible": "true", "DBInstanceClass": { "Ref" : "DBModel" } } }, "DBFromSiteSecurityGroup" : { "Type" : "AWS::EC2::SecurityGroup", "Properties" : { "GroupDescription" : "Enable MySQL", "SecurityGroupIngress" : [ {"IpProtocol" : "tcp", "FromPort" : "3306", "ToPort" : "3306", "CidrIp" : "195.171.102.98/32"} ] } }, "DBFromSiteSecurityGroupIngress1" : { "Type" : "AWS::EC2::SecurityGroupIngress", "Properties" : { "GroupName" : { "Ref" : "DBFromSiteSecurityGroup" }, "IpProtocol" : "tcp", "ToPort" : "3306", "FromPort" : "3306", "SourceSecurityGroupName" : { "Ref" : "DBFromSiteSecurityGroup" } } } } }
The db_model parameter that I pass is "db.t2.medium". The cluster is created successfully in the cloudformation console, but creating AWS :: RDS :: DBInstance fails with the following error
"DeletionPolicy:Snapshot cannot be specified for a cluster instance, use deletion policy on the cluster instead."
What's even weirder, when I try to run the same CF template in the "eu london" section, it works great! Is there something wrong with the ireland and aurora of the EU?