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
4 changes: 2 additions & 2 deletions nodes/aws/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ provider "aws" {
}

resource "aws_instance" "exit-node" {
ami = "ami-0f65671a86f061fcd"
instance_type = "t2.micro"
ami = "${var.ami}"
instance_type = "${var.size}"
key_name = "proxycannon"
vpc_security_group_ids = ["${aws_security_group.exit-node-sec-group.id}"]
subnet_id = "${var.subnet_id}"
Expand Down
10 changes: 10 additions & 0 deletions nodes/aws/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ variable "count" {
default = 2
}

# AMI image to use for exit nodes
variable "ami" {
default = "ami-0f65671a86f061fcd"
}

# Size of EC2 VM to spin up for exit nodes
variable "size" {
default = "t2.micro"
}

# launch all exit nodes in the same subnet id
# this should be the same subnet id that your control server is in
# you can get this value from the AWS console when viewing the details of the control-server instance
Expand Down