diff --git a/deployment.tf b/deployment.tf index 400e3a4..de649ba 100644 --- a/deployment.tf +++ b/deployment.tf @@ -9,9 +9,11 @@ provider "aws" { resource "aws_eip" "submit_ip" { instance = "${aws_instance.submit_http.id}" + vpc = true } resource "aws_instance" "submit_http" { + subnet_id = "subnet-867638dd" ami = "${var.ami}" instance_type = "t2.micro" key_name = "${var.key_name}" @@ -21,6 +23,7 @@ resource "aws_instance" "submit_http" { # Access the instances over SSH and HTTP resource "aws_security_group" "submit_http" { description = "Provides ssh and http access" + vpc_id = "vpc-a95532cf" # Access everything egress { cidr_blocks = ["0.0.0.0/0"] diff --git a/submit.json b/submit.json index a932489..12cdcf0 100644 --- a/submit.json +++ b/submit.json @@ -7,7 +7,9 @@ "source_ami": "ami-0b33d91d", "ssh_username": "ec2-user", "region": "us-east-1", - "type": "amazon-ebs" + "type": "amazon-ebs", + "subnet_id": "subnet-867638dd", + "vpc_id": "vpc-a95532cf" } ], "provisioners": [