- A Cloud Guru
Continuous Compliance and Automated Incident Response with AWS CodePipeline and AWS Config
AWS Config is a service that enables you to assess, audit, and evaluate the configurations of your AWS resources. Config continuously monitors and records your AWS resource configurations and allows you to automate the evaluation of recorded configurations against desired configurations. In this hands-on lab, we will leverage AWS Config to monitor resources deployed from our AWS CodePipeline to ensure they meet our company's compliance standards. If AWS Config finds any violations, it will notify us by email through Amazon Simple Notification Service.
Table of Contents
Create an AWS Config Rule
- Navigate to AWS Config.
- Create an AWS Config rule.
- Select the s3-bucket-level-public-access-prohibited rule.
Create an AWS Simple Notification Service Subscription
- Navigate to Simple Notification Service.
- Create a subscription to existing topic.
- Confirm subscription.
Create an AWS IAM Role
- Navigate to Identity and Access Management.
- Create an IAM role.
- Select AWS CloudFormation.
- Choose permissions.
- Name role.
Create an AWS CodeCommit Repository
- Navigate to CodeCommit.
- Create an AWS CodeCommit repository.
- In a terminal session, run the command
git clone https://github.com/ACloudGuru-Resources/content-aws-continous-complianceto clone the repo to your local workstation or laptop.
s3.jsonto AWS CodeCommit repository and commit changes.
Create an AWS CodePipeline
- Navigate to CodePipeline.
- Create a pipeline.
- Name the pipeline.
- Select the AWS CodeCommit repository you previously created.
- Skip Build.
- Select AWS CloudFormation for deployment type.
- Create or update stack.
- Name the stack.
- Enter the service role name you previously created.
What's a lab?
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.