Articles → AWS → AWS Config

AWS Config






Purpose




  1. Configuration based → This type of trigger runs the evaluation when a resource is created, changed, or deleted. For example, s3-bucket-replication-enabled (Checks if the replication is enabled for S3 bucket or not)
  2. Periodic → This type of trigger runs the evaluation on a certain interval of time. For example, ec2-stopped-instance (Checks if the ec2 is stopped more than allowed number of times)

Steps




  1. Create a S3 bucket
  2. Create a new role
  3. Create a rule
  4. Reevaluate rules
  5. Remediation
  6. Output



Create A S3 Bucket




Picture showing the S3 bucket created in AWS console
Click to Enlarge


Create A New Role




Picture showing the use case as Systems Manager while creating the role
Click to Enlarge



Picture showing adding the permission AmazonS3FullAccess while creating the role
Click to Enlarge



Picture showing specifying the role name
Click to Enlarge


Create A Rule




Picture showing the Rules menu in AWS config for creating the new rule
Click to Enlarge



Picture showing the Add rule button for creating the new rule
Click to Enlarge



Picture showing the section of rule screen to specify rule type
Click to Enlarge



Picture showing the section of screen to select the predefined rule
Click to Enlarge



Picture showing the section of Configure rule screen to enter the rule name
Click to Enlarge



Picture showing the section of Configure rule screen to specify the trigger
Click to Enlarge



Picture showing the review and create screen of rule in AWS config
Click to Enlarge




Reevaluate Rules




Picture showing the Re-evaluate menu option to reevaluate the AWS config rule
Click to Enlarge



Picture showing the non-compliance message when the rule is evaluated
Click to Enlarge


Remediation




Picture showing the Manage remediation menu for non-compliance remediation
Click to Enlarge



Picture showing the Edit Remediation screen for selecting the remediation method
Click to Enlarge



Picture showing setting the Resource ID parameter as BucketName
Click to Enlarge



Picture showing setting the other parameters while editing the remediation
Click to Enlarge



Picture showing the confirmation message when remediation is updated
Click to Enlarge



Picture showing the list of non-compliance resources
Click to Enlarge



Picture showing the status of resource when remediation is run on non-compliance resources
Click to Enlarge


Output




Picture showing the encryption enabled on S3 bucket
Click to Enlarge




Posted By  -  Karan Gupta
 
Posted On  -  Monday, September 20, 2021
 
Updated On  -  Monday, September 19, 2022

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250