Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions deployment.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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"]
Expand Down
4 changes: 3 additions & 1 deletion submit.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down