При попытке сделать посредством CloudFormation RDS Aurora Cluster с указанием "DeletionPolicy" : "Snapshot" в регионе Oregon стал получать ошибку (при рабочем шаблоне на прошлой же неделе, просто создаем новое окружение):
DeletionPolicy:Snapshot cannot be specified for a cluster instance, use deletion policy on the cluster instead.
Вообщем то явный глюк AWS. Исправить придется как оно того сама же хочет:
В секции ресурсов для DBCluster:
"RDSCluster" : {
"Type" : "AWS::RDS::DBCluster",
"Properties" : {
"MasterUsername" : {"Ref": "DBUser"},
"MasterUserPassword" : {"Ref": "DBPassword"},
"Engine" : "aurora",
"DatabaseName" : {"Ref": "DBNameParam"},
"DBSubnetGroupName": {"Ref": "AuroraDBSubnetGroup"},
"StorageEncrypted" : true,
"VpcSecurityGroupIds" : [{"Ref": "DBSecurityGroup"}],
"Tags" : [
{"Key" : "Environment", "Value" : {"Ref" : "EnvName"}},
{"Key" : "Name", "Value" : {"Fn::Join": ["",[{"Ref" : "DBNameParam"},"-",{"Ref" : "EnvName"}]]}}
]
},
"DeletionPolicy" : "Snapshot"
}
В секции DBInstance придется добавить:
"DBInstance" : {
"Type" : "AWS::RDS::DBInstance",
"DeletionPolicy" : "Delete",
"Properties" : {
......
}
DeletionPolicy:Snapshot cannot be specified for a cluster instance, use deletion policy on the cluster instead.
Вообщем то явный глюк AWS. Исправить придется как оно того сама же хочет:
В секции ресурсов для DBCluster:
"RDSCluster" : {
"Type" : "AWS::RDS::DBCluster",
"Properties" : {
"MasterUsername" : {"Ref": "DBUser"},
"MasterUserPassword" : {"Ref": "DBPassword"},
"Engine" : "aurora",
"DatabaseName" : {"Ref": "DBNameParam"},
"DBSubnetGroupName": {"Ref": "AuroraDBSubnetGroup"},
"StorageEncrypted" : true,
"VpcSecurityGroupIds" : [{"Ref": "DBSecurityGroup"}],
"Tags" : [
{"Key" : "Environment", "Value" : {"Ref" : "EnvName"}},
{"Key" : "Name", "Value" : {"Fn::Join": ["",[{"Ref" : "DBNameParam"},"-",{"Ref" : "EnvName"}]]}}
]
},
"DeletionPolicy" : "Snapshot"
}
В секции DBInstance придется добавить:
"DBInstance" : {
"Type" : "AWS::RDS::DBInstance",
"DeletionPolicy" : "Delete",
"Properties" : {
......
}
Комментариев нет:
Отправить комментарий