Lesson 4 of 5 Data Governance and SageMaker Unified Studio

Proving Data Governance Continuously with AWS Config

This lesson explains how AWS Config records resource configurations over time and evaluates them against rules, providing continuous evidence that data resources are configured as required.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe what AWS Config records and evaluates.
  • Identify the managed rules relevant to data platforms.
  • Remediate non-compliant resources automatically.

What Config provides

Governance policies, such as "all buckets are encrypted" or "no warehouse is publicly accessible", need evidence that they are actually followed. AWS Config provides that evidence. It records the configuration of supported resources every time they change, building a timeline for each resource, so a team can see how a bucket or a Glue connection was configured at any point in the past and, combined with AWS CloudTrail, who changed it.

Config rules evaluate those configurations against requirements and mark each resource compliant or non-compliant, continuously rather than only at audit time. Conformance packs group many rules into a single deployable package, for example for a compliance framework, and can be deployed across all accounts in an organisation. Aggregators collect configuration and compliance data from many accounts and Regions into one view.

Match the pairs

AWS Config features

Exam skills 4.5.4

Match each requirement with the AWS Config feature.

Log in to try this activity Interactive activities are free with an account.

Rules relevant to data platforms

AWS provides many managed Config rules, and several apply directly to data platforms. They check the controls that matter most for data: that storage is encrypted, that buckets and warehouses are not publicly accessible, and that activity is being logged. Rules evaluate resources whenever their configuration changes, so a bucket that someone makes public is reported within minutes rather than at the next audit. The following table gives examples.

RuleChecks
s3-bucket-server-side-encryption-enabledBuckets are encrypted
s3-bucket-public-read-prohibitedBuckets are not publicly readable
redshift-cluster-public-access-checkRedshift clusters are not public
rds-storage-encryptedRDS storage is encrypted
cloudtrail-enabledActivity is being logged

The following diagram shows the AWS Config rules that check data lake buckets, their remediation and the evidence they produce.

The evidence for the auditors. A conformance pack deployed to every account runs three rules on the lake buckets: encryption and Block Public Access are remediated automatically through Systems Manager Automation, and versioning raises a ticket to the owner. An aggregator in the security account shows compliance for all accounts, and each bucket's configuration timeline shows when it was non-compliant and for how long.
Remediation runs Systems Manager Automation documents.

Remediation

Detecting a non-compliant resource is only the first step. AWS Config remediation actions fix non-compliant resources by running AWS Systems Manager Automation documents, for example to turn on default encryption for a bucket or to block its public access. Remediation can run automatically as soon as a resource becomes non-compliant, or manually when someone chooses to apply it.

Automatic remediation suits changes that cannot break a workload, such as enabling encryption on a bucket. Changes that might disrupt an application, such as making a database private when an application connects to it publicly, are better handled by creating a ticket or notifying the owner, who can plan the change.

Sort into groups

Automatic or manual remediation?

Exam skills 4.5.4

Decide whether each fix should be remediated automatically.

Log in to try this activity Interactive activities are free with an account.
Worked example

Proving that buckets stay encrypted and private

Auditors ask for evidence that every data lake bucket has been encrypted and private throughout the year. The team deploys a conformance pack across all accounts with the rules shown in the following table.

RuleRemediation
s3-bucket-server-side-encryption-enabledAutomatic: enable default encryption
s3-bucket-public-read-prohibitedAutomatic: enable Block Public Access
s3-bucket-versioning-enabledTicket to the owner

An aggregator in the security account shows compliance for every account, and the configuration timeline shows, for any bucket, when it was non-compliant and for how long, which is the evidence auditors need.

Check yourself

How can rules be deployed across many accounts at once?

Show answer

With AWS Config conformance packs.

Exam Tips

Remember for the exam

  • To see how a resource was configured last month, use the AWS Config timeline.
  • To check continuously that all buckets are encrypted, use an AWS Config rule.
  • Conformance packs deploy sets of rules across accounts.
  • An aggregator gives an organisation-wide compliance view.
  • Config remediation runs Systems Manager Automation documents.