Skip to Content
Asterrr's Handbook
1 · Detection

AWS Config

Records resource configuration, evaluates it with rules and conformance packs, and remediates with SSM Automation.

Exam tasks: 1.1 (skill 1.1.5: automate recurring assessments)

The decision: how do you keep configuration compliance checked and corrected across every account without people remembering to run assessments?

Config records the configuration of supported resources and evaluates it against rules. It answers "is this resource configured the way policy says" and "what did it look like last Tuesday". It is Regional, and it detects. It does not block a change (except through proactive checks before deployment, which also do not block).

AWS account (one Region)config changeremediatecompliance eventrespondnotifyVPC without flowlogsConfig ruleSSM AutomationEventBridgeLambda fixSNS alert
Config evaluates a changed resource. Non-compliance triggers SSM Automation directly or an EventBridge rule.

Rules

ItemWhat to remember
Managed rulesPrebuilt by AWS. Examples approved-amis-by-id, restricted-ssh, encrypted-volumes, iam-password-policy, access-keys-rotated
Custom Lambda rulesYour function decides COMPLIANT or NON_COMPLIANT. Scope them to resource types or the function runs for every resource
Custom policy rulesWritten in the Guard policy language, no Lambda to maintain
ResultsCOMPLIANT, NON_COMPLIANT, ERROR, NOT_APPLICABLE
TriggersConfiguration change (scoped by type, ID or tag), periodic (you choose the frequency), or both
Detective modeEvaluates deployed resources
Proactive modeEvaluates proposed resource properties before deployment. Does not prevent or fix anything
Organization rulesDeploy a rule across accounts from the management or delegated administrator account

Remediation

  • Config remediates with SSM Automation runbooks. Use an AWS runbook or your own.
  • Manual or automatic per rule. Automatic can retry, for example 5 attempts within 300 seconds. Retries cost money.
  • Automatic remediation works on the last compliance snapshot, so it can fire on a resource that was just fixed.
  • Remediation cannot be attached to service-linked rules.
  • Alternative path. Config compliance change events go to EventBridge, which starts Lambda, SNS or Step Functions.

Conformance packs

ItemWhat to remember
WhatA YAML template of rules plus remediation actions deployed as one unit
ScopeOne account and Region, or an organization through the management or delegated administrator account
TemplatesAWS sample packs for best practices and frameworks, or write your own. Can be stored as SSM documents
DashboardCompliance score is the share of compliant rule and resource pairs

Recurring assessments and automation

Skill 1.1.5 asks you to keep assessments running without people remembering to run them.

NeedMechanism
Continuous configuration compliance across the organizationAWS Config rules and conformance packs deployed org-wide from a delegated admin
Benchmark against CIS, PCI DSS, NIST, FSBPSecurity Hub CSPM standards via central configuration
Keep the SSM Agent, CloudWatch agent or a hardening baseline in place on every instanceSystems Manager State Manager associations on a schedule
Continuous vulnerability scanningInspector, activated org-wide
Weekly proof that buckets hold no sensitive dataMacie scheduled discovery job
Evidence collection for auditorsAWS Audit Manager (see Compliance evaluation)
  • Conformance packs bundle Config rules (and optional remediation actions) into one deployable unit, and give a compliance score per pack.
  • A State Manager association re-applies its document on a schedule, so drift gets corrected rather than just reported. Pair it with Config for the reporting side.

Which one to use

NeedPick
Continuous check of your own resources against your rules, with historyConfig
Predefined AWS best practice adviceTrusted Advisor
Benchmark scores such as CISSecurity Hub CSPM (it runs on Config rules)
Enforce guardrails before the API callSCPs, IAM, or CloudFormation Guard and hooks

Example. Every VPC needs flow logs to a central bucket. A Config rule flags VPCs without flow logs. Remediation is an SSM Automation runbook or an EventBridge rule calling Lambda that creates the flow log.

Exam trap

Config does not stop a noncompliant resource from being created. Pick SCPs or IAM conditions for prevention. Config is the detect-and-fix answer.

Exam signal

"Only approved AMIs may run": the managed rule approved-amis-by-id plus remediation. "Apply the same compliance rules to every account": organization conformance pack.

Security Hub, Trusted Advisor and Health, Systems Manager. Security Hub CSPM controls show no data when Config is not recording, see Troubleshooting the monitoring pipeline. Config compliance covers the governance view.

Further reading

On this page