astonishing-dentist-11149
10/22/2024, 7:26 PMpulumi up
again instead of updating the cluster it says the cluster already exists and errors out.
so two questions:
⢠Is this just because I have not had a fully successful run yet?
⢠Am I doing something wrong here?
const postgresqlCluster = new aws.rds.Cluster(`${name}-${env}-postgresql`, {
clusterIdentifier: `${name}-${env}-us-east-1-aurora`,
engine: aws.rds.EngineType.AuroraPostgresql,
engineVersion: '16.4',
availabilityZones: [
"us-east-1a",
],
databaseName: `${name}`,
dbSubnetGroupName: rdsAuroraDbSubnetGroup.name,
vpcSecurityGroupIds: [rdsAuroraSg.id],
masterUsername: "postgresql",
masterPassword: rdsConfig.require("rootPassword"),
backupRetentionPeriod: 5,
preferredBackupWindow: "07:00-09:00",
});
const postgresqlInstance = new aws.rds.ClusterInstance(`${name}-${env}-postgresql-instance`, {
clusterIdentifier: postgresqlCluster.id,
identifier: `${name}-${env}-postgresql-instance`,
instanceClass: 'db.r5.large',
engine: aws.rds.EngineType.AuroraPostgresql,
engineVersion: '16.4',
publiclyAccessible: false,
});
astonishing-dentist-11149
10/22/2024, 7:36 PMastonishing-dentist-11149
10/22/2024, 7:54 PMDiagnostics:
pulumi:pulumi:Stack (peopleticker-dev):
error: update failed
aws:rds:Cluster (common-dev-postgresql):
error: deleting urn:pulumi:dev::peopleticker::aws:rds/cluster:Cluster::common-dev-postgresql: 1 error occurred:
* RDS Cluster final_snapshot_identifier is required when skip_final_snapshot is false
error: deleting urn:pulumi:dev::peopleticker::aws:rds/cluster:Cluster::common-dev-postgresql: 1 error occurred:
* RDS Cluster final_snapshot_identifier is required when skip_final_snapshot is false
error: deleting urn:pulumi:dev::peopleticker::aws:rds/cluster:Cluster::common-dev-postgresql: 1 error occurred:
* RDS Cluster final_snapshot_identifier is required when skip_final_snapshot is false
error: deleting urn:pulumi:dev::peopleticker::aws:rds/cluster:Cluster::common-dev-postgresql: 1 error occurred:
* RDS Cluster final_snapshot_identifier is required when skip_final_snapshot is fals
little-cartoon-10569
10/22/2024, 8:02 PMlittle-cartoon-10569
10/22/2024, 8:02 PMastonishing-dentist-11149
10/22/2024, 8:04 PMlittle-cartoon-10569
10/22/2024, 8:04 PMastonishing-dentist-11149
10/22/2024, 8:05 PMlittle-cartoon-10569
10/22/2024, 8:05 PMastonishing-dentist-11149
10/22/2024, 8:06 PMastonishing-dentist-11149
10/22/2024, 8:07 PMastonishing-dentist-11149
10/22/2024, 8:12 PMlittle-cartoon-10569
10/22/2024, 8:16 PMastonishing-dentist-11149
10/22/2024, 8:17 PMastonishing-dentist-11149
10/22/2024, 8:18 PMastonishing-dentist-11149
10/22/2024, 8:18 PMlittle-cartoon-10569
10/22/2024, 8:20 PMastonishing-dentist-11149
10/22/2024, 8:20 PM++ āā aws:rds:Cluster common-dev-postgresql **creating failed** [diff: ~availabilityZones]; 1 error
Diagnostics:
aws:rds:Cluster (common-dev-postgresql):
error: 1 error occurred:
* creating RDS Cluster (common-dev-us-east-1-aurora): DBClusterAlreadyExistsFault: DB Cluster already exists
status code: 400, request id: c91e5be2-cf7c-4e0e-8e20-bdfcb4f01899
astonishing-dentist-11149
10/22/2024, 8:20 PMastonishing-dentist-11149
10/22/2024, 8:22 PMlittle-cartoon-10569
10/22/2024, 8:29 PMastonishing-dentist-11149
10/22/2024, 8:30 PMastonishing-dentist-11149
10/22/2024, 8:30 PMastonishing-dentist-11149
10/22/2024, 8:31 PMlittle-cartoon-10569
10/22/2024, 8:32 PMavailabilityZones
is marked int he docs as a replacement-triggering property. And you've set the name, which prevents Pulumi's suffix being used. So you need to add the delete-before-replace opt, or don't set the name.little-cartoon-10569
10/22/2024, 8:32 PMpulumi destroy
with the old code first, before changing it.astonishing-dentist-11149
10/22/2024, 8:33 PMlittle-cartoon-10569
10/22/2024, 8:33 PMlittle-cartoon-10569
10/22/2024, 8:34 PMlittle-cartoon-10569
10/22/2024, 8:35 PMastonishing-dentist-11149
10/22/2024, 8:41 PMastonishing-dentist-11149
10/22/2024, 8:42 PMastonishing-dentist-11149
10/22/2024, 8:44 PMlittle-cartoon-10569
10/22/2024, 8:45 PMname
property. Since the name arg is right, Pulumi will make a name property correctly.