Cloudformation BackupRetentionPeriod 对 RDS Aurora 集群没有任何影响
Cloudformation BackupRetentionPeriod is not taking any effect on the RDS Aurora cluster
我在我的 cloudformation 模板中设置了 BackupRetentionPeriod: 15
。
DatabaseCluster:
DeletionPolicy: Retain
DependsOn:
- MyDBEnhancedMonitoringRole
Properties:
BackupRetentionPeriod: 15
DBClusterIdentifier: AppName-Test-database000001
DBClusterParameterGroupName: default.aurora-postgresql10
DatabaseName: !Ref 'DBName'
Engine: aurora-postgresql
EngineVersion: '10.11'
但是,它对实际实例没有任何影响。
PS:
我尝试在 DBInstance 级别设置 BackupRetentionPeriod
但它不允许我这样做,因为它是一个集群。
实际上它在工作!
aws-cli describe-db-clusters
显示修改生效
$ aws rds describe-db-clusters --db-cluster-identifier appname-test-database000001
{
"DBClusters": [
{
"AllocatedStorage": 1,
"AvailabilityZones": [
"eu-central-1a",
"eu-central-1b",
"eu-central-1c"
],
"BackupRetentionPeriod": 15,
"DatabaseName": "database000001",
"DBClusterIdentifier": "appname-test-database000001",
"DBClusterParameterGroup": "default.aurora-postgresql10",
.....
}
混淆是因为 UI,它显示 PerformanceInsights
而不是 Backup
的保留期
我在我的 cloudformation 模板中设置了 BackupRetentionPeriod: 15
。
DatabaseCluster:
DeletionPolicy: Retain
DependsOn:
- MyDBEnhancedMonitoringRole
Properties:
BackupRetentionPeriod: 15
DBClusterIdentifier: AppName-Test-database000001
DBClusterParameterGroupName: default.aurora-postgresql10
DatabaseName: !Ref 'DBName'
Engine: aurora-postgresql
EngineVersion: '10.11'
但是,它对实际实例没有任何影响。
PS:
我尝试在 DBInstance 级别设置 BackupRetentionPeriod
但它不允许我这样做,因为它是一个集群。
实际上它在工作!
aws-cli describe-db-clusters
显示修改生效
$ aws rds describe-db-clusters --db-cluster-identifier appname-test-database000001
{
"DBClusters": [
{
"AllocatedStorage": 1,
"AvailabilityZones": [
"eu-central-1a",
"eu-central-1b",
"eu-central-1c"
],
"BackupRetentionPeriod": 15,
"DatabaseName": "database000001",
"DBClusterIdentifier": "appname-test-database000001",
"DBClusterParameterGroup": "default.aurora-postgresql10",
.....
}
混淆是因为 UI,它显示 PerformanceInsights
而不是 Backup