Service · Management and Governance · Builds on CLF-C02
AWS Config
Rules, conformance packs, automatic remediation and multi-account views, and how Config differs from CloudTrail and CloudWatch.
You know from Cloud Practitioner
- AWS Config records resource configurations over time and checks them against rules.
- Remediation can fix noncompliant resources through Systems Manager Automation.
- An aggregator collects data from many accounts and Regions.
What was this security group’s setting last month?
Config
Who deleted it?
Is CPU use high right now?
Are all volumes encrypted?
- Config rule
Fix a noncompliant resource automatically
- Config remediation
| Question | Service |
|---|---|
| What was this security group’s setting last month? | |
| Who deleted it? | |
| Is CPU use high right now? | |
| Are all volumes encrypted? | Config rule |
| Fix a noncompliant resource automatically | Config remediation |
1 / 2
What was this security group’s setting last month?
Config
Who deleted it?
Is CPU use high right now?
Are all volumes encrypted?
- Config rule
| Question | Service |
|---|---|
| What was this security group’s setting last month? | |
| Who deleted it? | |
| Is CPU use high right now? | |
| Are all volumes encrypted? | Config rule |
2 / 2
Fix a noncompliant resource automatically
- Config remediation
| Question | Service |
|---|---|
| Fix a noncompliant resource automatically | Config remediation |
- 1A resource is created or changed.
- 2A Config rule evaluates it and finds it noncompliant.
- 3A Systems Manager Automation runbook fixes it.
Step by step
- 1A resource is created or changed.
- 2A Config rule evaluates it and finds it noncompliant.
- 3A Systems Manager Automation runbook fixes it.
Automatic remediation.
What it is
Managed rules are ready-made checks, such as encrypted volumes or no public S3 buckets. Custom rules run your own logic in AWS Lambda or in Guard, a policy-as-code language. A rule runs when a resource changes, on a schedule, or both, and marks resources compliant or noncompliant. A remediation action runs a Systems Manager Automation runbook to fix a resource, automatically or after approval.
A conformance pack bundles rules and remediations in one template, and it can be deployed to every account of an organization. An aggregator in one account shows configuration and compliance from many accounts and Regions.
What it is
The three tools answer different questions. Config answers what a resource looks like and whether it follows the rules. CloudTrail answers who made which API call. Amazon CloudWatch answers how a resource performs, with metrics, logs and alarms.
Remember
- Managed rules from AWS. Custom rules with Lambda or Guard.
- Rules trigger on change, on a schedule, or both.
- Auto-remediation runs a Systems Manager Automation runbook.
- Conformance packs deploy rule sets across an organization.
- An aggregator gives one view of many accounts and Regions.
Remember
- Config = what and whether compliant. CloudTrail = who. CloudWatch = how it performs.
On the exam
- “Check that every EBS volume is encrypted and fix the ones that are not” points to a Config rule with auto-remediation.
- “See the configuration of a security group last month” points to AWS Config.
- “Who deleted the security group” points to AWS CloudTrail.
Do not mix it up with
AWS CloudTrailEvent types, organization trails, tamper-proof logs and CloudTrail Lake.
AWS Security HubOne dashboard for security findings and standards checks across accounts.
Amazon CloudWatchChoose metrics from business needs, build alarms and composite alarms, search logs, and auto-recover instances.