AWS Builder Center
AWS Config: Tracking Configuration Changes for Compliance

AWS Config: Tracking Configuration Changes for Compliance

How AWS Config keeps a history of your resource settings and flags risky changes.

Series: AWS Security 30 Days, 30 Articles Challenge (31 articles)

  1. …
  2. 17
    AWS Config: Tracking Configuration Changes for Compliance This article
Welcome to Day 16 of the 30 Days AWS Security Challenge. Yesterday we covered GuardDuty, which watches for suspicious activity. Today we look at a different kind of monitoring: AWS Config, which tracks how your resources are configured over time and flags when something drifts away from the rules you've set.

The Difference Between Threats and Drift

GuardDuty answers "is something malicious happening right now." AWS Config answers a quieter but equally important question: "does this resource look the way it's supposed to look, and has that changed?" A security group getting opened up to the world is not necessarily an attack, it might just be a well meaning engineer troubleshooting something at 11pm and forgetting to revert it. Config is built to catch exactly that kind of drift.

What AWS Config Actually Records

Config continuously records the configuration state of your AWS resources, and every time something changes, whether that's a security group rule, an S3 bucket setting, or an IAM policy attachment, Config captures a snapshot of the change, along with a timestamp and, thanks to its CloudTrail integration, often who made it.
This gives you something CloudTrail alone doesn't provide as clearly: a timeline of exactly how a resource's configuration evolved, not just a log of API calls. You can look at any resource and see precisely what it looked like on any given day.

Config Rules: Defining What "Correct" Looks Like

The real security value comes from Config Rules, which define the configuration state you actually want, and continuously check your resources against it. AWS provides a large library of managed rules ready to use, and you can also write custom ones for anything specific to your environment.
Some genuinely useful managed rules to know about:
  •  s3-bucket-public-read-prohibited , which flags any S3 bucket allowing public read access
  •  restricted-ssh , which flags any security group allowing unrestricted inbound SSH from the internet
  •  iam-user-mfa-enabled , which flags any IAM user without MFA turned on
  •  encrypted-volumes , which flags any EBS volume that is not encrypted
When a resource violates a rule, Config marks it as noncompliant, and you can see this clearly under Config > Rules, with each rule showing exactly which resources are passing and which are not.

Setting It Up

To get started, go to Config > Get Started, choose which resource types to record (or record everything, which is the simplest starting point), and point it at an S3 bucket for storing configuration history. From there, head to Rules > Add rule, and add a handful of managed rules relevant to your environment, starting with things like public S3 access and MFA enforcement, since these map directly to mistakes we've already covered earlier in this challenge.

Turning Findings Into Action

Like GuardDuty, Config findings only help if someone actually sees them. You can connect noncompliant findings to EventBridge and route them to a notification channel, so a security group opened to the world gets flagged to your team within minutes instead of being discovered during a quarterly audit.
For a more hands off approach, some Config rules support automatic remediation, where AWS can trigger a predefined action, like automatically re-enabling Block Public Access on a bucket the moment it drifts out of compliance. This is worth using carefully, since automatic changes to production resources need to be well tested, but for clear cut cases like accidental public exposure, it can close a dangerous gap in minutes rather than hours.

Why This Matters for Compliance

If your organization needs to demonstrate compliance with a framework like SOC 2, HIPAA, or PCI DSS (we'll cover these on Day 29), auditors frequently ask for evidence that specific controls were actually in place over time, not just today. Config's historical timeline gives you exactly that kind of evidence, showing that encryption was enabled, MFA was enforced, or public access was blocked, consistently, across the audit period.

Key Takeaways

  • AWS Config tracks how resource configurations change over time, not just what actions were taken
  • Config Rules define your desired state and continuously flag resources that drift out of compliance
  • Start with a small set of high value managed rules, like public S3 access and MFA enforcement
  • Route noncompliant findings to a notification channel so drift gets caught quickly
  • Config's historical record is valuable evidence for compliance audits down the line
Tomorrow we bring GuardDuty, Config, and other findings together into a single view with AWS Security Hub.

Series: AWS Security 30 Days, 30 Articles Challenge (31 articles)

  1. …
  2. 17
    AWS Config: Tracking Configuration Changes for Compliance This article
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article