Suppose you are part of a company that has developed an organization-wide policy that no EBS volume can be created without encryption. This would be the perfect opportunity for automatic remediation. First, you would create a rule to check whether a volume was encrypted and would be triggered when the resource was created. If the resource failed to meet these standards, you could create a custom System Manager Automation runbook that would instantly destroy that EBS volume before it even had the chance to be attached to an instance and have any data placed on it.
If you didn’t want to delete the volume, you could choose the predefined automation rule of AWS EBS DetachVolume. Whenever someone tried to attach that volume, it would instantly be detached from the instance and thus become unavailable. In the latter case, the volume would still be an active resource and incur charges for the account.
Having reviewed how to remediate non-compliant resources in your account with AWS Config, you can now learn how to use Config across multiple Regions and multiple accounts.
Many companies and organizations have moved past a single account structure and have multiple accounts and organizational units powered by AWS Organizations. You can collect all the compliance data and account configurations using an aggregator.
An aggregator in AWS Config is a type of resource that allows you to collect compliance data and configurations in any of the following scenarios:
You can see from Figure 5.6 how the data would flow from either a separate Region or a separate account and then be presented in the aggregated view.
Figure 5.6: Flow of AWS Config data into the aggregator
Once the aggregator has collected the data, a dashboard on the Aggregators page displays all the configuration data, an overview of your rules, and your compliance packs, along with their compliance status.
The Aggregators dashboard also provides a combined count of all the resources and source accounts, which are then ranked by the highest number of resources.
As you have now reviewed all the functionality of the AWS Config service, having a vital understanding of the following concepts will be relevant when you take your AWS Certified Security Specialty exam: