-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
48 lines (40 loc) · 1.13 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
locals {
tags = merge(var.tags, var.default_tags)
}
variable "name_parts" {
description = "Parts of ssm variable name"
type = list(string)
}
variable "env_object" {
description = "Map with ssm variable name and its value"
type = map(string)
}
variable "description" {
description = "Description that will be passed to each variable"
default = ""
}
variable "type" {
description = "Available (String, StringList, SecureString)"
default = "String"
validation {
condition = contains(["String", "StringList", "SecureString"], var.type)
error_message = "Allowed values for var.type are \"String\", \"StringList\", or \"SecureString\"."
}
}
variable "key_id" {
description = "Key id that will be passed to each variable"
default = null
}
variable "tags" {
description = "Tags of resource. Provided values will be merged with default_tags"
type = map(string)
default = {}
}
variable "default_tags" {
description = "Default tags that will be merged with var.tags"
type = map(string)
default = {
ManagedBy = "terraform"
Module = "ssm-key-group"
}
}