Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
AWS Config Rule for approved AMIs
Ec2ApprovedAmiRule:
Type: AWS::Config::ConfigRule
Properties:
ConfigRuleName: Ec2ApprovedAmiRule
InputParameters: !Sub '{ "amiIds" : "${AllowedAmi}" }'
Scope:
ComplianceResourceTypes:
- "AWS::EC2::Instance"
Source:
Owner: AWS
SourceIdentifier: APPROVED_AMIS_BY_ID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment