https://pulumi.com logo
Title
r

rhythmic-lion-28423

11/21/2022, 10:46 AM
I have a RDS cluster created via Pulumi. I have two postgres db created inside the rds. Now if I want to just destroy one db, Is there any way to do it without destroying the entire cluster .
s

stocky-restaurant-98004

11/22/2022, 4:24 PM
If the DBs are managed by Pulumi, they would work as any other Pulumi-managed resource: remove it from the code, and it will be deleted. If they are managed outside of Pulumi, then Pulumi can't control their lifecycle unless you use
pulumi import
. We do have a Postgres provider, so you could import your existing DBs - just note that imported resources, by default, have delete protection for safety. You can change this in the generated code. Links below: https://www.pulumi.com/docs/guides/adopting/import/ https://www.pulumi.com/registry/packages/postgresql/