This commit is contained in:
Edward Viaene
2016-10-13 08:29:54 +00:00
parent 763a1674a8
commit 694bfbfb48
3 changed files with 137 additions and 0 deletions
+6
View File
@@ -2,6 +2,12 @@ resource "aws_instance" "example" {
ami = "${lookup(var.AMIS, var.AWS_REGION)}"
instance_type = "t2.micro"
# the VPC subnet
subnet_id = "${aws_subnet.main-public-1.id}"
# the security group
vpc_security_group_ids = ["${aws_security_group.allow-ssh.id}"]
# the public SSH key
key_name = "${aws_key_pair.mykeypair.key_name}"
}