-
Notifications
You must be signed in to change notification settings - Fork 5
/
vars.tf
111 lines (89 loc) · 2.49 KB
/
vars.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
variable "aws_access_key" {
description = "AWS Access Key"
}
variable "aws_secret_key" {
description = "AWS Secret Key"
}
variable "aws_region" {
description = "AWS Region"
default = "eu-west-1"
}
variable "keys_bucket_name" {
description = "S3 bucket to store keys in"
default = "concourse-keys"
}
variable "vpc_cidr" {
description = "CIDR for the whole VPC"
default = "10.0.0.0/16"
}
variable "public_subnet_cidr" {
type = "list"
description = "CIDR for the Public Subnet"
default = ["10.0.1.0/24"]
// default = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
}
variable "private_subnet_cidr" {
type = "list"
description = "CIDR for the Private Subnet"
default = ["10.0.4.0/24", "10.0.5.0/24", "10.0.6.0/24"]
}
variable "availability_zones" {
type = "list"
description = "The availability zones"
default = ["eu-west-1a", "eu-west-1b", "eu-west-1c"]
}
variable "whitelist_ips" {
type = "list"
description = "IPs that are able to access Concourse"
default = ["0.0.0.0/0"]
}
variable "private_workers" {
description = "Should be workers be placed in a private sebnet with a NAT gateway"
default = true
}
variable "key_name" {
description = "Key pair name"
}
variable "github_auth_client_id" {
description = "GitHub Client Id"
}
variable "github_auth_client_secret" {
description = "GitHub Client Secret"
}
variable "github_auth_team" {
description = "GitHub Team Name"
}
# DNS
variable "dns_zone_name" {
description = "Amazon Route53 DNS zone name. (Don't include trailing dot)"
}
# Concourse
variable "concourse_version" {
description = "The version on concourse to deploy"
default = "v3.3.3"
}
variable "concourse_web_instance_type" {
description = "The EC2 instance type to run as a web instance"
default = "t2.small"
}
# Workers
variable "concourse_workers_instance_type" {
description = "The EC2 instance type to run as a worker"
default = "t3.xlarge"
}
variable "concourse_workers_volume_size" {
description = "The amount of starage space for the Worker"
default = 100
}
variable "concourse_workers_spot_request_max_price" {
description = "The Max price for the EC2 Spot Request"
default = "0.4"
}
variable "concourse_workers_min_instances" {
description = "The Minimum number of Concourse Workers to run"
default = 2
}
variable "concourse_workers_max_instances" {
description = "The Maximum number of Concourse Workers to run"
default = 10
}