Creating Amazon Config Custom Lambda Rules - Amazon Config
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Creating Amazon Config Custom Lambda Rules

You can develop custom rules and add them to Amazon Config with Amazon Lambda functions. You associate each custom rule with an Lambda function, which contains the logic that evaluates whether your Amazon 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 Amazon Config.

The example in Custom Lambda Rules (Amazon EC2 Example) guides you through creating a Custom Lambda rule for the first time that evaluates whether each of your EC2 instances is the t2.micro type. It includes an example Lambda function that you can add to Amazon Lambda with no modification. The example in Custom Lambda Rules (General Example) provides a more general example for creating Custom Lambda rule.

To learn how Amazon Lambda functions work and how to develop them, see the Amazon Lambda Developer Guide.