big-house-59728
04/12/2023, 6:48 PMaws-native:rds:DBInstance (rdsInstance):
error: operation DELETE failed with "InvalidRequest": FinalDBSnapshotIdentifier can not be specified when deleting a cluster instance (Service: Rds, Status Code: 400, Request ID: a477dccc-baed-4cbc-94c0-878e5ed8f3af)
I do not have any reference to a final snapshot identifier in the configuration, so I'm confused as to why it is complaining about there being one. For reference, here is the configuration for the cluster and instance:
// Create the cluster
const rdsCluster = new awsn.rds.DBCluster(`${applicationName}-pg`, {
dBClusterIdentifier: applicationName,
engine: aws.rds.AuroraPostgresqlEngine,
engineVersion: "14.6",
databaseName: "wagtail",
masterUserPassword: dbPass,
masterUsername: "mcpgadmin",
dBSubnetGroupName: subnetGroup.name,
serverlessV2ScalingConfiguration: {
maxCapacity: maxDBCapacity,
minCapacity: 0.5,
},
vpcSecurityGroupIds: [sg_rds.id],
});
// Create the instance
const rdsInstance = new awsn.rds.DBInstance("rdsInstance", {
dBClusterIdentifier: rdsCluster.id,
dBInstanceClass: "db.serverless",
engine: aws.rds.AuroraPostgresqlEngine,
engineVersion: "14.6",
port: "5432"
}, { replaceOnChanges: ["port"] });
billowy-army-68599
04/12/2023, 6:59 PMskipFinalSnapshot
big-house-59728
04/12/2023, 7:25 PM