forked from monte-carlo-data/terraform-aws-mcd-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
49 lines (42 loc) · 1.95 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
variable "image" {
description = "URI of the Agent container image (ECR Repo). Note that the region is automatically derived from the region variable."
type = string
default = "590183797493.dkr.ecr.*.amazonaws.com/mcd-agent:latest"
}
variable "cloud_account_id" {
description = <<EOF
For deployments on the V2 Platform, use 590183797493. Accounts created after April 24th, 2024,
will automatically be on the V2 platform or newer. If you are using an older version of the platform,
please contact your Monte Carlo representative for the ID.
EOF
type = string
default = "190812797848"
validation {
condition = contains(["190812797848", "799135046351", "682816785079", "637423407294", "590183797493"], var.cloud_account_id)
error_message = "Valid value is one of the following: 190812797848, 799135046351, 682816785079, 637423407294, 590183797493."
}
}
variable "private_subnets" {
description = "Optionally connect the agent to a VPC by specifying at least two private subnet IDs in that VPC."
type = list(string)
default = []
validation {
condition = length(var.private_subnets) == 0 || length(var.private_subnets) >= 2
error_message = "At least two subnets are required if connecting to a VPC."
}
}
variable "region" {
description = "The AWS region to deploy the agent into."
type = string
default = "us-east-1" # Northern Virginia
}
variable "remote_upgradable" {
description = <<EOF
Allow the agent image and configuration to be remotely upgraded by Monte Carlo.
Note that this sets a lifecycle to ignore any changes in Terraform to the image used after the initial deployment.
If not set to 'true' you will be responsible for upgrading the image (e.g. specifying a new tag) for any bug fixes and improvements.
Changing this value after initial deployment might replace your agent and require (re)registration.
EOF
type = bool
default = true
}