-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
90 lines (75 loc) · 2.84 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
variable "aws_region" {
type = string
description = "AWS region"
}
variable "aws_tags" {
type = map(string)
default = {}
description = "AWS default tags for all resources"
}
variable "public_ssh_key" {
type = string
default = ""
description = "Public SSH key used for accessing your AWS Lightsail instance(s)"
}
variable "num_machines" {
type = number
default = 1
description = "Fleet size (number of instances)"
}
variable "runner_resource_class" {
type = string
description = "CircleCI Runner resource-class name (e.g., acmeorg/machine-runner-aws-lightsail)"
validation {
condition = can(regex("^.+/.+", var.runner_resource_class))
error_message = "The Runner resource-class name must match <namespace>/<resource-class>."
}
}
variable "runner_resource_class_desc" {
type = string
default = ""
description = "Description for CircleCI Runner resource-class"
}
variable "runner_token" {
type = string
default = ""
sensitive = true
description = "CircleCI Runner resource-class token, if already created"
}
variable "lightsail_bundle_id" {
type = string
description = "AWS Lightsail bundle ID. See https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lightsail/get-bundles.html"
}
variable "lightsail_blueprint_id" {
type = string
description = "The ID for a virtual private server image. See https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lightsail/get-blueprints.html"
}
variable "lightsail_instance_name" {
type = string
description = "Name (identifier) for the AWS Lightsail instance"
}
variable "circleci_hostname" {
type = string
default = "runner.circleci.com"
description = "Set this to your CircleCI Server (>= 4.4.x) domain if for Server"
}
variable "user_data" {
type = string
default = "echo \"replace me\"\necho \"Check custom_config input for this module.\n\""
description = "Custom configuration (Bash) used as part of the user-data (provisioning script). Script will be run before starting the CircleCI runner agent."
}
variable "working_directory" {
type = string
default = "/tmp/circleci-runner"
description = "Working directory for job. See https://circleci.com/docs/machine-runner-3-configuration-reference/#runner-working-directory"
}
variable "cleanup_working_directory" {
type = bool
default = true
description = "true if cleanup of working directory after each run is required. See https://circleci.com/docs/machine-runner-3-configuration-reference/#runner-cleanup-working-directory"
}
variable "command_prefix" {
type = list(string)
default = [""]
description = "Command prefix used to invoke job. See https://circleci.com/docs/machine-runner-3-configuration-reference/#runner-command-prefix"
}