-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
143 lines (119 loc) · 4 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
variable "region" {
type = string
description = "AWS Region for S3 bucket"
}
variable "vpc_id" {
description = "The VPC id where to deploy the worker instances"
type = string
}
variable "subnet_ids" {
type = list(string)
description = "List of subnet ids where to deploy the worker instances"
}
variable "instance_type" {
description = "EC2 instance type for the worker instances"
type = string
default = "t3.medium"
}
variable "ssh_key_name" {
description = "The key name to use for the instance"
type = string
default = ""
}
variable "associate_public_ip_address" {
description = "Boolean flag to enable / disable public IPs for network interfaces"
type = bool
default = false
}
variable "additional_security_group_ids" {
type = list(string)
description = "Additional security group ids to attach to the worker instances"
default = []
}
variable "root_disk_volume_type" {
description = "Volume type of the worker instances root disk"
default = "gp2"
type = string
}
variable "root_disk_volume_size" {
description = "Size of the worker instances root disk"
default = "10"
type = string
}
variable "work_disk_ephemeral" {
description = "Whether to use ephemeral volumes as Concourse worker storage. You must use an [`instance_type` that supports this](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html#InstanceStoreDeviceNames)"
default = false
type = string
}
variable "work_disk_device_name" {
description = "Device name of the external EBS volume to use as Concourse worker storage"
default = "/dev/sdf"
type = string
}
variable "work_disk_internal_device_name" {
description = "Device name of the internal volume as identified by the Linux kernel, which can differ from `work_disk_device_name` depending on used AMI. Make sure this is set according the `instance_type`, eg. `/dev/xvdf` when using an older AMI"
default = "/dev/nvme1n1"
type = string
}
variable "work_disk_volume_type" {
description = "Volume type of the external EBS volume to use as Concourse worker storage"
default = "gp2"
type = string
}
variable "work_disk_volume_size" {
description = "Size of the external EBS volume to use as Concourse worker storage"
default = "100"
type = string
}
variable "concourse_tsa_hostname" {
description = "Hostname where Concourse will be available (NLB)."
type = string
}
variable "worker_tsa_port" {
description = "TSA port that the worker can use to connect to the web"
default = 2222
type = number
}
variable "concourse_worker_min_count" {
description = "Min number of Concourse worker instances"
default = 1
type = number
}
variable "concourse_worker_max_count" {
description = "Min number of Concourse worker instances"
default = 1
type = number
}
variable "concourse_version" {
description = "Concourse CI version to use. Defaults to the latest tested version"
default = "5.8.0"
type = string
}
variable "concourse_worker_dns_servers" {
description = "DNS server list"
default = ["8.8.8.8", "8.8.4.4"]
type = list(string)
}
variable "keys_bucket_id" {
description = "The S3 bucket id which contains the SSH keys to connect to the TSA"
type = string
}
variable "keys_bucket_arn" {
description = "The S3 bucket ARN which contains the SSH keys to connect to the TSA"
type = string
}
variable "concourse_tags" {
description = "List of tags to add to the worker to use for assigning jobs and tasks"
type = list(string)
default = []
}
variable "cross_account_worker_role_arn" {
description = "IAM role ARN to assume to access the Concourse keys bucket in another AWS account"
default = null
type = string
}
variable "cpu_credits" {
description = "The credit option for CPU usage. Can be `standard` or `unlimited`"
default = "standard"
type = string
}