Created
February 26, 2019 16:31
-
-
Save 100daysofdevops/1e1089338f69c6a8a625dbc44dfbffbd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # To get the latest Centos7 AMI | |
| data "aws_ami" "centos" { | |
| owners = ["679593333241"] | |
| most_recent = true | |
| filter { | |
| name = "name" | |
| values = ["CentOS Linux 7 x86_64 HVM EBS *"] | |
| } | |
| filter { | |
| name = "architecture" | |
| values = ["x86_64"] | |
| } | |
| filter { | |
| name = "root-device-type" | |
| values = ["ebs"] | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment