📖 Scenario: You are working as a cloud engineer for a company that needs to ensure its AWS resources comply with internal security policies. You will create an AWS Config setup to track compliance of EC2 instances and S3 buckets.
🎯 Goal: Build an AWS Config setup that records configuration changes for EC2 instances and S3 buckets, and creates a compliance rule to check if S3 buckets have versioning enabled.
📋 What You'll Learn
Create an AWS Config recorder that records EC2 instances and S3 buckets
Create an S3 bucket to store AWS Config logs
Create an AWS Config delivery channel to deliver configuration snapshots and notifications
Create an AWS Config managed rule to check S3 bucket versioning compliance
💡 Why This Matters
🌍 Real World
AWS Config helps organizations continuously monitor and record their AWS resource configurations to ensure compliance with security and operational policies.
💼 Career
Cloud engineers and security professionals use AWS Config to automate compliance auditing and improve cloud governance.
Progress0 / 4 steps
1
Create the AWS Config recorder
Create an AWS Config recorder named configRecorder that records the resource types AWS::EC2::Instance and AWS::S3::Bucket.
AWS
Hint
Remember to create an IAM role with a trust policy for AWS Config service and attach the AWS managed policy AWSConfigRole.
2
Create the S3 bucket for AWS Config logs
Create an S3 bucket named config-logs-bucket to store AWS Config logs. Enable versioning on this bucket.
AWS
Hint
Enable versioning on the S3 bucket to keep track of changes to the logs.
3
Create the AWS Config delivery channel
Create an AWS Config delivery channel named configDeliveryChannel that delivers configuration snapshots and notifications to the S3 bucket config-logs-bucket.
AWS
Hint
The delivery channel sends configuration snapshots to the S3 bucket you created.
4
Create AWS Config rule for S3 bucket versioning compliance
Create an AWS Config managed rule named s3-bucket-versioning-enabled that checks if S3 buckets have versioning enabled.
AWS
Hint
Use the AWS managed rule identifier S3_BUCKET_VERSIONING_ENABLED to check bucket versioning compliance.
Practice
(1/5)
1. What is the primary purpose of AWS Config in cloud management?
easy
A. To deploy applications automatically
B. To track changes in AWS resource configurations and check compliance
C. To monitor network traffic in real-time
D. To manage user permissions and roles
Solution
Step 1: Understand AWS Config's role
AWS Config records configuration changes and evaluates compliance of AWS resources.
Step 2: Compare with other options
Other options describe different AWS services like deployment, monitoring, or IAM, not AWS Config.
Final Answer:
To track changes in AWS resource configurations and check compliance -> Option B