- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud

Auditing Resource Compliance with AWS Config
In this hands-on lab, we'll implement AWS Config rules and use AWS Config for compliance auditing and remediation. We will configure compliance rules for evaluating the EC2 instance type, whether S3 versioning is enabled, EC2 instances in a VPC, and whether CloudTrail is enabled. These rules will give us firsthand knowledge of how the AWS Config service works. We will then explore the configuration management aspect of AWS Config.

Lab Info
Table of Contents
-
Challenge
Enable AWS Config
Set up AWS Config so that it uses an existing AWS Config service-linked role. Ensure the delivery method creates an S3 bucket.
-
Challenge
Configure Rules for Resources
- Add an AWS managed rule for
cloudtrail-enabled
. - Add an AWS managed rule for
desired-instance-type
that checks whether your EC2 instances aret2.micro
. - Add an AWS managed rule for
ec2-instances-in-vpc
that checks whether your EC2 instances belong to the VPC provided with the lab. - Add an AWS managed rule for
s3-bucket-versioning-enabled
.
- Add an AWS managed rule for
-
Challenge
Configure the Non-Compliant Resources to Comply
- Open CloudTrail and create a new trail named
ConfigTrail
. Store it in a new S3 bucket. - Open S3 and edit the settings on your buckets to make the
s3-bucket-versioning-enabled
rule compliant.
- Open CloudTrail and create a new trail named
-
Challenge
Reevaluate the Non-Compliant Rules in AWS Config
- Reevaluate the S3 bucket rule.
- Wait for the S3 rule to become compliant.
- Reevaluate the CloudTrail rule.
- Wait for the CloudTrail rule to become compliant.
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.