-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
80 lines (66 loc) · 1.9 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
// Required
variable "connection-id" {
type = string
description = "ID for the Depot connection (provided in the Depot console)"
}
variable "connection-token" {
type = string
description = "API token for the Depot connection (provided in the Depot console)"
sensitive = true
}
variable "subnets" {
type = list(object({ availability-zone = string, cidr-block = string }))
description = "Subnets to use for the VPC"
}
// Optional
variable "cloud-agent-version" {
type = string
description = "Version tag for ghcr.io/depot/cloud-agent container"
default = "2"
}
variable "cloud-agent-log-retention" {
type = number
description = "Number of days to keep cloudwatch logs for the cloud-agent"
default = 7
}
variable "create" {
type = bool
description = "Controls if Depot connection resources should be created"
default = true
}
variable "tags" {
type = map(string)
description = "A map of tags to apply to all resources"
default = {}
}
variable "instance-types" {
type = object({ x86 = string, arm = string })
description = "Instance types to use for the builder instances"
default = { x86 = "c6i.xlarge", arm = "c6g.xlarge" }
}
variable "cidr-block" {
type = string
description = "VPC CIDR block"
default = "10.0.0.0/16"
}
variable "allow-ssm-access" {
type = bool
description = "Controls if SSM access should be allowed for the builder instances"
default = false
}
variable "extra-env" {
type = list(object({ key = string, value = string }))
description = "Extra environment variables to set on the cloud-agent"
default = []
}
variable "ceph-config" {
type = string
description = "Ceph configuration file"
default = ""
}
variable "ceph-key" {
type = string
description = "Ceph key file"
default = "none"
sensitive = true
}