In this lesson, we'll create a custom AWS Config rule to find outdated EC2 instance types. Moving off these old instance types can help us reduce costs and improve performance.
Create a role called "LambdaCheckInstanceTypeRole" and specify AWS Config Rules permissions as the policy template.
Create the Lambda function CheckInstanceType. Note the ARN for the next steps.
Example Events for AWS Config: https://docs.aws.amazon.com/config/latest/developerguide/evaluate-config_develop-rules_example-events.html