Created
January 19, 2020 17:29
-
-
Save felipteixeira/3d1e875d6eb959f2f759954fd0383f47 to your computer and use it in GitHub Desktop.
ec2.tf
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
| data "aws_ami" "ubuntu" { | |
| most_recent = true | |
| filter { | |
| name = "name" | |
| values = ["IaaSWeek-${var.hash_commit}"] | |
| } | |
| owners = ["486576470157"] # My User | |
| } | |
| resource "aws_instance" "web" { | |
| ami = "data.aws_ami.ubuntu.id" | |
| instance_type = "t2.micro" | |
| tags = { | |
| Name = "HelloWorld" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment