-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
111 lines (88 loc) · 3.12 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# General
variable "aws_region" {
description = "AWS region to launch servers."
default = "us-west-2"
type = "string"
}
variable "environment" {
description = "Name given to the enviroment in which Runnable is being deployed. This can be any name. It is used in multiple places to name resources."
default = "runnable-on-prem"
type = "string"
}
variable "domain" {
description = "Main domain for your Runnable installation. You should already own this domain and have certs for it."
type = "string"
}
# S3 Buckets
variable "force_destroy_s3_buckets" {
description = "Forces destroy of S3 buckets and deletes all their content. Default to false. Use this only when tearing down an environment. Before running `terraform destroy`, `terraform apply` must be run to updates buckets."
type = "string"
default = "false" # https://www.terraform.io/docs/configuration/variables.html#booleans
}
# Databases
variable "db_username" {
description = "Username for RDS Postgres instance"
type = "string"
}
variable "db_password" {
description = "Password for RDS Postgres instance"
type = "string"
}
variable "db_port" {
description = "Port for RDS Postgres instance"
default = 5432
type = "string"
}
variable "db_subnet_group_name" {
description = "Subnet in which database will be created"
type = "string"
}
variable "db_instance_class" {
description = "Type of instance that will be used for database"
type = "string"
default = "db.t2.small"
}
# EC2 Instances
variable "main_host_vpc_id" {
description = "VPC in which security groups and instance for main host will be created."
type = "string"
}
variable "main_host_subnet_id" {
description = "Subnet in which main host EC2 instance will be created. Subnet must be part of VPC in `main_host_vpc_id`"
type = "string"
}
variable "bastion_sg_id" {
description = "Security group id for bastion instance"
type = "string"
}
variable "main_host_private_ip" {
description = "Private IP address in VPC for main-host. This is important because ip address is encoded in launch configuration for docks."
default = "10.4.0.100"
type = "string"
}
variable "main_host_instance_type" {
description = "Type of instance that will be used for the main host"
type = "string"
default = "m4.2xlarge"
}
variable "dock_subnet_id" {
description = "Subnet in which dock EC2 instance will be created. Subnet must be part of VPC in `main_host_vpc_id`"
type = "string"
}
variable "dock_instance_type" {
description = "Type of instance that will be used for all docks"
type = "string"
default = "m4.large"
}
variable "github_org_id" {
description = "Github organization id for which ASG will be created"
type = "string"
}
variable "lc_user_data_file_location" {
description = "Location for file generated for launch configuration. This file needs to have correct IPs, ports, and files"
type = "string"
}
variable "key_name" {
description = "Name of ssh key to be used for accessing all instances"
type = "string"
}