AWS RDS DB Approved
In this guide, you will configure Guardrails to check new and existing RDS database instances for approved instance types and database engines. Any instance not in compliance generates an alarm.
Organizations want to give flexibility to developers, but this can often lead to over-provisioned resources. The Approved policy family lets you define which database engines and instance classes are allowed, then have Guardrails check (or enforce) compliance across all RDS instances in scope.
[!TIP] This configuration can also be deployed using Terraform. See the Guardrails Samples Repo for policy pack examples.
Prerequisites
- Access to the Turbot Guardrails console with
Turbot/Adminpermissions or higher. - The
aws-rdsmod installed.
Step 1: Configure Approved Database Engines
Click New Policy Setting in the top right of the Policies page to open the Create Policy Setting form.
For the Policy Type, search for database engines and select Database Engines (AWS > RDS > DB Instance > Approved > Database Engines). For the Resource, select the AWS account or folder where the setting will live. The setting affects all resources at this level and below in the policy hierarchy.
Because this policy expects an array, the Setting shows a YAML editor with Edit and Preview tabs. Enter a YAML list of allowed engines. A full list of engine types is in the AWS Documentation. In this example, approve Aurora, MariaDB, and PostgreSQL:
- aurora
- mariadb
- postgresql
Click Create.

Step 2: Configure Approved Instance Classes
Click New Policy Setting again. For the Policy Type, search for instance classes and select Instance Classes (AWS > RDS > DB Instance > Approved > Instance Classes). Select the same Resource scope.
This policy is also an array. Enter a YAML list of allowed instance classes. A full list is in the AWS RDS Documentation. You can specify exact instance classes or use the wildcard character (*). In this example, allow db.m5.2xlarge and the entire db.t3 family:
- db.m5.2xlarge
- db.t3.*
Click Create.

Step 3: Enable the Approved Check
The previous two steps defined what is considered approved, but they don't tell Guardrails how to handle unapproved instances. To do that, configure the AWS > RDS > DB Instance > Approved policy.
[!TIP] When configuring compound policies, set the child policies (Database Engines, Instance Classes) first, then set the primary policy (Approved) last. This way the control won't start evaluating until the criteria are fully defined.
Click New Policy Setting. For the Policy Type, search for rds db instance approved and select Approved (AWS > RDS > DB Instance). Select the same Resource scope. This policy is an enum, so the Setting shows radio buttons; choose Check: Approved, then click Create.

Step 4: Review the Results
Once the Approved policy is set, Guardrails automatically checks all AWS RDS instances that inherit the setting. One AWS > RDS > DB Instance > Approved control is created per RDS DB instance. If the instance configuration matches the approved engines and instance classes, the control goes to OK. If it does not match, an alarm is generated.
Navigate to Controls in the left sidebar. Use the Control filter to select AWS > RDS > DB Instance > Approved to see the results across all instances in scope.
Next Steps
- Write YAML Policies: Learn more about YAML policy value syntax including wildcards.
- Policy Settings: Understand the policy hierarchy and how settings inherit.
- AWS S3 Access Logs: Another policy configuration example.