https://pulumi.com logo
#aws
Title
# aws
b

big-house-59728

04/12/2023, 6:48 PM
Howdy all, I was trying to use AWS Native to manage an RDS cluster but for some reason when I try to delete the cluster instance I get the following error:
Copy code
aws-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:
Copy code
// 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"] });
b

billowy-army-68599

04/12/2023, 6:59 PM
sounds like a bug, could you file an issue in the aws-native repo
you might need to add
skipFinalSnapshot
b

big-house-59728

04/12/2023, 7:25 PM
Ctrl-F for "skip" on the DBCluster and DBInstance docs turned up nothing, so I'll just file an issue I guess