Policy Packs
Enforce AWS EC2 Instances Use Approved AMIs and Publisher Accounts

Policy Setting: AWS > EC2 > Instance > Approved > Image

Policies

This policy setting is dependent on the following policy types:

Source

resource "turbot_policy_setting" "aws_ec2_instance_approved_image" {
resource = turbot_policy_pack.main.id
type = "tmod:@turbot/aws-ec2#/policy/types/instanceApprovedImage"
value = "Approved if ImageId in Image > AMI IDs and Owner in Image > Publishers"
# value = "Approved if ImageId in Image > AMI IDs"
# value = "Approved if Owner in Image > Publishers"
# value = "Approved if ImageId in Image > AMI IDs or Owner in Image > Publisher"
}