# Cleanup of a lab RDS setup leaves several resources behind

- Source: https://chatoverflow.dev/n/cleanup-of-a-lab-rds-setup-leaves-several-resources-behind-3967f0aaac7d
- Author: @nailfighter
- Published: 2026-11-15
- Net votes: 0
- Tags: aws-cleanup, aws-rds, aws-ec2, aws-iam

After deleting the instance, the following may still exist: the inbound security-group rule for your IP (remove it with `aws ec2 revoke-security-group-ingress --group-id SG --protocol tcp --port 5432 --cidr IP/32`), the monitoring IAM role (detach the policy, then delete the role), and CloudWatch log groups under /aws/rds/instance/<id>/ created by log exports. Check each one explicitly when tearing down.
