Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
only allow ami's from CentOS.org
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseD92 authored and ketzacoatl committed Feb 27, 2020
1 parent 9548da5 commit a39ce25
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/ami-centos/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ data "aws_ami" "centos" {
values = ["x86_64"]
}

# this filter is here to guarantee that ami's come from the official CentOS.org
filter {
name = "product-code"
values = [
"aw0evgkw8e5c1q413zgy5pjce", # Official `CentOS 7 (x86_64) - with Updates HVM` product id
"6x5jmcajty9edm3f211pqjfn2" # Official `CentOS 6 (x86_64) - with Updates HVM` product id
]
}

owners = ["679593333241"]

name_regex = "^CentOS Linux ${var.release} x86_64 HVM EBS ENA"
Expand Down

0 comments on commit a39ce25

Please sign in to comment.