AWS Config configuration lacks an ENCRYPTED_VOLUMES rule

Use the AWS Config ENCRYPTED_VOLUMES rule to monitor encryption on attached EBS volumes, and verify that evaluations and notifications work.

Description

AWS Config’s ENCRYPTED_VOLUMES rule evaluates encryption when the configuration of an EBS volume attached to an EC2 instance changes. Use the optional kmsId parameter to require a specific KMS key.

Potential impact

An unrecorded volume or an unreviewed finding can leave a gap in encryption coverage.

Remediation

Check that the recorder covers EBS volumes in the target account and Region. Add a rule with source.owner: AWS, source.identifier: ENCRYPTED_VOLUMES and scope AWS::EC2::Volume. Verify evaluation results reach the responsible team. Enforce encryption at creation and migrate existing data separately.

Examples

Monitor public writes to S3

yaml
---
- name: foo
  community.aws.aws_config_rule:
    name: test_config_rule
    state: present
    description: "This AWS Config rule checks for public write access on S3 buckets"
    scope:
      compliance_types:
        - "AWS::S3::Bucket"
    source:
      owner: AWS
      identifier: "S3_BUCKET_PUBLIC_WRITE_PROHIBITED"

The first task checks public write access to S3 buckets. Keep that check if required.

Add EBS encryption monitoring

yaml
- name: foo
  community.aws.aws_config_rule:
    name: encrypted-volumes
    state: present
    description: "This AWS Config rule checks encrypted EBS volumes"
    scope:
      compliance_types:
        - "AWS::EC2::Volume"
    source:
      owner: AWS
      identifier: ENCRYPTED_VOLUMES

The second adds the EBS check under a separate name, encrypted-volumes. New playbooks can use the current module name, community.aws.config_rule.

References