- Cloud governance and the compliance lifecycle (monitor → assess → detect → remediate)
- AWS Config fundamentals and configuration items (CIs)
- Config Rules: managed vs custom and conformance packs
- Building custom rule evaluations with Lambda
- Remediation framework (SSM Automation, Lambda, EventBridge)
- Multi-account aggregation using AWS Organizations
- Integrating AWS Security Hub as an aggregator and responder
- Troubleshooting common issues


AWS Config fundamentals
AWS Config provides a configuration inventory, change tracking, and a historical timeline of resource configurations. Config acts as a configuration recorder producing configuration items (CIs), storing snapshots, and emitting streams you can route to storage, notifications, and aggregators.
- History: stored snapshots for auditing and drift analysis.
- Streams: near-real-time notifications to SNS, EventBridge, or S3.
- Rules: evaluation constructs that assess CI state and mark COMPLIANT or NON_COMPLIANT.
AWS Config Rules: managed vs custom
Config rules evaluate resource state and determine compliance. Rules can be triggered by configuration changes, periodic evaluations, or manual invocation. There are two primary rule types:
Conformance packs bundle rules (managed and custom) into templates for consistent deployment across accounts and regions (useful for security, operational controls, or regulatory baselines).


- Send notifications via SNS or EventBridge.
- Trigger automated remediation (SSM Automation runbooks, Lambda, or other automation).

Custom Config rules and Lambda-based evaluations
Custom rules receive aconfigurationItem and ruleParameters, run evaluation logic, and return an evaluation result to AWS Config. Most custom rules are implemented as Lambda functions that parse the event, examine the CI, and call PutEvaluations.
Example Lambda evaluation function (Python, simplified):

Remediation targets: SSM Automation, Lambda, and others
Systems Manager Automation runbooks are common remediation targets because they support long-running tasks, step logging, approvals, and role-based execution. SSM Automation is preferable for complex, auditable operational changes.

Lambda execution time and memory limits still apply. For long-running or multi-step remediations prefer SSM Automation; use Lambda for short corrective actions that complete within the runtime limits.
Multi-account governance and aggregators
Large organizations typically centralize Config data into an aggregator account using AWS Organizations. Typical steps:- Enable AWS Organizations and a management account.
- Create a central S3 bucket and ensure proper bucket policy/IAM permissions for delivery.
- Deploy Config recorders, delivery channels, and rule sets via CloudFormation StackSets across OUs/accounts/regions.

Security Hub integration
AWS Security Hub aggregates findings from Config, GuardDuty, Inspector, Macie, and other services, normalizing them into a single view. Benefits:- Correlate Config compliance results with threat and vulnerability findings.
- Trigger automation (EventBridge rules → Lambda / SSM) from Security Hub findings.
- Use Security Hub insights and playbooks to orchestrate investigative and remediation workflows.
Troubleshooting and common challenges
Common failure points and mitigations:
Example CloudWatch Logs entry for a remediation permission failure:
When designing your automation, balance evaluation frequency (continuous vs periodic) against cost and risk. Use periodic evaluations for low-risk resources and continuous monitoring for high-risk assets.
Links and references
- AWS Config User Guide
- AWS Systems Manager Automation
- AWS Security Hub
- AWS Organizations
- EventBridge event patterns