-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvariables.tf
56 lines (48 loc) · 1.32 KB
/
variables.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Region where you want to run the dev machine
variable "dev_machine_region" {
type = string
default = null
}
# We choose EFS One Zone Storage for cheaper option
variable "dev_efs_az" {
type = string
default = null
}
# Max EC2 spot price
variable "dev_spot_price" {
type = string
default = "0.004"
}
# Type of the EC2 instance you want to launch
variable "dev_instance_type" {
type = string
default = "t3.micro"
}
# You can use this S3 bucket to store your development files
variable "dev_bucket_name" {
type = string
default = ""
}
# EC2 will fetch and run script on this url after boot
variable "dev_user_data_url" {
type = string
default = "https://raw.githubusercontent.com/rioastamal/spot-dev-machine/master/scripts/user-data.sh"
}
# Used in Security Group for accessing EC2
# You can set the value as environment variable `export TF_VAR_dev_my_ip=YOUR_IP/32`
variable "dev_my_ip" {
type = string
default = null
}
# This ips should be list of AWS Cloud9 IPs according to your selected region
# See https://docs.aws.amazon.com/cloud9/latest/user-guide/ip-ranges.html
# This default uses ap-southeast-1 Cloud9 IP address range
variable "dev_cloud9_ips" {
type = list
default = ["13.250.186.128/27", "13.250.186.160/27"]
}
# Your SSH public key
variable "dev_ssh_public_key" {
type = string
default = null
}