https://pulumi.com logo
#general
Title
# general
w

white-rain-67342

10/21/2022, 4:36 PM
Running into an error when trying to bring down my stack. How do I tell Pulumi to delete the
kable-db-rdsf41604a
before deleting the subnet group?
Copy code
Diagnostics:
  aws:rds:SubnetGroup (kable-db-sng):
    error: deleting urn:pulumi:staging::kable-infrastructure::custom:resource:DB$aws:rds/subnetGroup:SubnetGroup::kable-db-sng: 1 error occurred:
        * deleting RDS Subnet Group (kable-db-sng-9841ed7): InvalidDBSubnetGroupStateFault: Cannot delete the subnet group 'kable-db-sng-9841ed7' because at least one database instance: kable-db-rdsf41604a is still using it.
        status code: 400, request id: 4a24205a-a1d9-4586-a4a5-a1aa1e13173f
 
  pulumi:pulumi:Stack (kable-infrastructure-staging):
    error: update failed
l

little-cartoon-10569

10/21/2022, 7:15 PM
Add a dependsOn opt to the database, referring to the subnet group id.
2 Views