This repository has been archived by the owner on Jan 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
variables.tf
83 lines (68 loc) · 2.64 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
variable "aggregation_dimensions" {
description = "Specifies the dimensions that collected metrics are to be aggregated on."
type = "list"
default = [
["InstanceId"],
["AutoScalingGroupName"],
]
}
variable "cpu_resources" {
description = "Specifies that per-cpu metrics are to be collected. The only allowed value is *. If you include this field and value, per-cpu metrics are collected."
type = "string"
default = "\"resources\": [\"*\"],"
}
variable "disk_resources" {
description = "Specifies an array of disk mount points. This field limits CloudWatch to collect metrics from only the listed mount points. You can specify * as the value to collect metrics from all mount points. Defaults to the root / mountpount."
type = "list"
default = ["/"]
}
variable "userdata_part_content" {
description = "The user data that should be passed along from the caller of the module."
type = "string"
default = ""
}
variable "userdata_part_content_type" {
description = "What format is userdata_part_content in - eg 'text/cloud-config' or 'text/x-shellscript'."
type = "string"
default = "text/cloud-config"
}
variable "userdata_part_merge_type" {
description = "Control how cloud-init merges user-data sections."
type = "string"
default = "list(append)+dict(recurse_array)+str()"
}
variable "namespace" {
description = "Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp'."
type = "string"
}
variable "stage" {
description = "Stage, e.g. 'prod', 'staging', 'dev', or 'test'."
type = "string"
default = ""
}
variable "name" {
description = "Solution name, e.g. 'app'."
type = "string"
}
variable "metrics_config" {
description = <<EOF
"Which metrics should we send to cloudwatch, the default is standard. Setting this variable to advanced will send all the available metrics that are provided by the agent.
You can find more information here https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/create-cloudwatch-agent-configuration-file-wizard.html."
EOF
type = "string"
default = "standard"
}
variable "metrics_collection_interval" {
description = <<EOF
Specifies how often to collect the cpu metrics, overriding the global metrics_collection_interval specified in the agent section of the configuration file. If you set this value below 60 seconds, each metric is collected as a high-resolution metric.
EOF
type = "string"
default = 60
}
variable "attributes" {
description = "Add a suffix to the resource names."
type = "list"
default = [
"cloudwatch-agent",
]
}