4.1 - PaulDuvall/aws-compliance-workshop GitHub Wiki
4.1 Describe Custom Config Rules
You can develop custom rules and add them to AWS Config. You associate each custom rule with an AWS Lambda function that contains the logic that evaluates whether your AWS resources comply with the rule.
You associate this function with your rule, and the rule invokes the function either in response to configuration changes or periodically. The function then evaluates whether your resources comply with your rule and sends its evaluation results to AWS Config.
Custom Config Rule Workflow
Launch a Custom Config Rule
- Launch the AWS Config Console.
- Click Rules.
- Click Add rule.
- Click Add custom rule.
- Give the Config Rule name:
ccoa-custom-configrule
. - Click on Create AWS Lambda function.
- Choose the
config-rule-change-triggered
blueprint. - Enter a function name:
ccoa-config-rule-function
. - Click Create function.
- Copy the Lambda ARN and paste into AWS Lambda function ARN* in the Custom Config Rule.
- Choose the Periodic trigger.
- Click Save.
- Go to the AWS Config Dashboard and refresh the results to see the
ccoa-custom-configrule
rule.