Prevents the deletion of RDS database instances, providing an additional layer of protection for your critical database infrastructure.
What this SCP does
This Service Control Policy (SCP) prevents the deletion of RDS database instances, providing an additional layer of protection for your critical database infrastructure. This helps prevent accidental or unauthorized deletion of database resources.
The policy blocks all RDS deletion operations across the organization, ensuring that database resources cannot be removed without explicitly removing this protection. This is particularly valuable for protecting production databases from accidental deletion.
How to test this SCP works
To validate this SCP, try to create a test database instance and then attempt to delete it.
We expect the deletion operation to be denied with an AccessDenied error. Note that if the policy works as intended, you will need to temporarily remove or modify the SCP to clean up the test database instance.