-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.tf
35 lines (28 loc) · 1.54 KB
/
config.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# All declared variables. If you wan't to set custom value for any of variables,
# it's better to create file `terraform.tfvars` and put there custom configuration,
# format: `VARIABLE_NAME="variable value"`
# Access to AWS API. Create new user with `AmazonEC2FullAccess` permissions
# here `https://console.aws.amazon.com/iam/home?#/users` and put user's AWS_ACCESS_KEY_ID and
# AWS_SECRET_ACCESS_KEY to the `terraform.tfvars` file
variable "AWS_ACCESS_KEY_ID" {}
variable "AWS_SECRET_ACCESS_KEY" {}
# SSH key pair to manage and install software to EC2 instances. Don't forget to generate
# keys first: `$ ssh-keygen -f .ssh/ec2_key -N ''`
variable "KEY_PAIR_NAME" { default = "ec2_key" }
variable "PUBLIC_KEY_PATH" { default = ".ssh/ec2_key.pub" }
variable "PRIVATE_KEY_PATH" { default = ".ssh/ec2_key" }
# How many proxy servers to create
variable "AWS_INSTANCES_COUNT" { default = 5 }
# Settings for EC2 instances. It's better to change AWS_INSTANCE_TYPE to
# `t2.nano` if AWS Free Tier is not available for you
variable "AWS_INSTANCE_TYPE" { default = "t2.micro" }
variable "AWS_DEFAULT_REGION" { default = "us-east-1" }
variable "AWS_INSTANCE_AMI" { default = "ami-a4dc46db" }
variable "AWS_INSTANCE_USER_NAME" { default = "ubuntu" }
# Proxy server type. Available options: `socks` (socks5) and `http` (http/https)
variable "PROXY_TYPE" { default = "socks" }
# Proxy server port
variable "PROXY_PORT" { default = 46642 }
# Auth for proxy server. None by default
variable "PROXY_USER" { default="" }
variable "PROXY_PASSWORD" { default="" }