awslabs / aws-config-rules

[Node, Python, Java] Repository of sample Custom Rules for AWS Config.
http://aws.amazon.com/config/
Creative Commons Zero v1.0 Universal
1.58k stars 851 forks source link

Add AMI_DEPRECATED_CHECK rdklib rule #375

Closed code-eg closed 2 years ago

code-eg commented 2 years ago

I confirm these files are made available under CC0 1.0 Universal (https://creativecommons.org/publicdomain/zero/1.0/legalcode)

Issue #, if available:

Description of changes:

This PR contains a Config rule for detecting EC2 instances using deprecated AMIs. This rule uses RDK and RDKlib.

Deprecated AMIs were released as a feature in June 2021: https://aws.amazon.com/about-aws/whats-new/2021/06/amazon-ec2-adds-new-ami-property-to-flag-outdated-amis/