Skip to content

Instantly share code, notes, and snippets.

@gezza-b
Last active April 26, 2020 07:15
Show Gist options
  • Save gezza-b/0d9cd1b2a7489508ee672dc4fa3efc18 to your computer and use it in GitHub Desktop.
Save gezza-b/0d9cd1b2a7489508ee672dc4fa3efc18 to your computer and use it in GitHub Desktop.
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