| name | cis-aws-database-2.4 |
| description | Ensure IAM Roles and Policies are Created |
| category | cis-database |
| version | 2.0.0 |
| author | cyberstrike-official |
| tags | ["cis","aws","database","aurora","iam","roles","policies","access-management"] |
| cis_id | 2.4 |
| cis_benchmark | CIS AWS Database Services Benchmark v2.0.0 |
| tech_stack | ["aws"] |
| cwe_ids | [] |
| chains_with | ["cis-aws-database-2.7","cis-aws-database-2.10"] |
| prerequisites | [] |
| severity_boost | {} |
2.4 Ensure IAM Roles and Policies are Created (Manual)
Description
AWS Identity and Access Management (IAM) helps manage access to AWS resources. While you cannot directly associate IAM roles with Amazon Aurora instances, you can use IAM roles and policies to define which AWS IAM users and groups have management permissions for Amazon RDS resources and what actions they can perform. Here is a guide:
Rationale
Individual creates IAM roles and polices that define specific permission given to that role. This determines what the identity or instance can and cannot do.
Impact
If an IAM Role is not created, then it would be challenging to access AWS resources.
Audit Procedure
Using AWS Console
-
Sign in to AWS Management Console
-
Navigate to IAM Dashboard
- Navigate to the IAM service once logged in to the AWS Management Console.
- This is under the
Security, Identity, & Compliance category.
-
Create a New IAM Role
- In the IAM Dashboard, find the
Roles section on the left-side navigation pane and click on it. Then, click on the Create Role button.
-
Select the Service that will Use the Role
- Choose
RDS as the AWS service that will use this new role, then click Next: Permissions.
-
Attach Policy
- In the next screen, you can attach policies defining this role's permissions. You can use the filter to find existing policies like
AmazonRDSFullAccess or AmazonRDSReadOnlyAccess.
- Select the appropriate policy and then click
Next: Tags.
-
Add Tags (Optional)
- You can add metadata to the role by attaching tags as key-value pairs. This is optional, and you can proceed to the next step if you do not wish to add tags.
-
Review
- Provide a name and a description for the role. Review the role and then click
Create Role.
-