Skip to main content
This lesson covers using AWS Config Rules to enforce compliance for AWS resources. AWS Config Rules are automated checks that codify the configuration requirements you want resources to meet. AWS Config evaluates resources against those rules and reports compliance as either Compliant or Noncompliant. We’ll apply AWS Managed Rules to S3 buckets as examples—verifying versioning and public-read settings—and then review where to view evaluation results. Prerequisite: enable AWS Config recording Before creating rules, ensure AWS Config is recording configuration changes for the target account and region. If recording is not enabled, Config cannot evaluate resources.
A screenshot of the AWS Config console with a "Start recording" confirmation dialog explaining that AWS Config will begin recording resource configuration changes. The dialog shows Cancel and a highlighted Confirm button.
Make sure the recorder is enabled before creating rules. AWS Config only evaluates resources after configuration recording is active, and initial evaluations can take several minutes.
Check the Resource inventory on the Config dashboard to confirm which resource types are being tracked (for example, S3 Buckets). If you haven’t yet added rules, resource entries will be present but have no compliance status. Create and evaluate a versioning rule (managed)
  1. In the AWS Config console, go to Rules → Add rule.
  2. Choose “AWS managed rule” and search for s3-bucket-versioning-enabled.
  3. Select the rule — it verifies that S3 bucket versioning is enabled.
  4. Keep the default parameters and evaluation frequency unless you need custom settings, then proceed and save the rule.
You’ll see the Configure rule screen while adding the managed rule:
A screenshot of the AWS Config console on the "Add rule" page showing the "Configure rule" step with a rule named "s3-bucket-versioning-enabled." The left pane shows the step progress and the main pane displays rule details and description fields.
Wait a few minutes after saving for AWS Config to perform its initial evaluation. Evaluations may take longer depending on the number of resources and region. Where to monitor compliance Use these views in the AWS Config console to track evaluation progress and outcomes: If versioning isn’t enabled on a bucket, the s3-bucket-versioning-enabled rule will mark that bucket Noncompliant. Create a public-read prohibition rule (managed) Next, add the managed rule that prevents publicly readable buckets:
  1. Go to Rules → Add rule.
  2. Search for s3-bucket-public-read-prohibited.
  3. Select the rule. It evaluates bucket-level Block Public Access settings, bucket policy, and ACLs to detect public read access.
  4. Keep defaults and save.
Allow a few minutes for evaluations. After both rules run, you might observe:
  • s3-bucket-public-read-prohibited — Compliant (if buckets are properly blocked from public read).
  • s3-bucket-versioning-enabled — Noncompliant (if versioning isn’t enabled on one or more buckets).
Understand rule-level vs resource-level compliance Rule-level compliance is an aggregate of the resources evaluated by that rule. A rule can be Compliant overall while some resources may be Noncompliant under other rules. When investigating, always inspect both the rule details and the per-resource findings to determine remediation steps. Inspecting rules and remediations Open Rules and click a specific rule to view:
  • Parameters and descriptions (for example, isMfaDeleteEnabled on the versioning rule)
  • Resources in scope and their current compliance state
  • Actions such as View details and Remediate
A screenshot of the AWS Config console showing the "s3-bucket-versioning-enabled" rule details, including a Parameters row for "isMfaDeleteEnabled" with the description "MFA delete is enabled for your S3 buckets." The page also shows resources in scope marked Noncompliant and action buttons like "View details" and "Remediate."
Rule and control ARNs You may encounter rule or control ARNs in reports and controls. Example format:
Summary and best practices
  • AWS Config Rules let you codify compliance requirements and automatically evaluate resources.
  • Prefer AWS Managed Rules (for example, s3-bucket-versioning-enabled and s3-bucket-public-read-prohibited) when they meet your needs—these are maintained by AWS and save time.
  • Ensure the Config recorder is enabled before expecting evaluations; initial evaluations can take several minutes to run.
  • Use the Rules page for rule-level status and the Resources view for resource-level findings.
  • When a resource is Noncompliant, inspect the rule details for remediation options or configure automated remediation where appropriate.
Links and references

Watch Video