scottslowe-learning-tools/terraform/aws/simple-ec2/main.tf
Scott Lowe 43ab5524a2
Reorganize repository contents
Move contents into new folder structure based on primary technology

Signed-off-by: Scott Lowe <scott.lowe@scottlowe.org>
2017-02-23 16:12:37 -07:00

11 lines
452 B
HCL

# Create a new Ubuntu 14.04 instance using values from vars.tf and data.tf
resource "aws_instance" "test-01" {
ami = "${data.aws_ami.ubuntu-1404-ami.id}"
instance_type = "${var.flavor}"
key_name = "${var.keypair}"
vpc_security_group_ids = ["${var.sec-group}"]
subnet_id = "${data.aws_subnet.default-subnet.id}"
tags {
Name = "terraform"
}
}