-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathvariables.tf
63 lines (53 loc) · 1.58 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
variable "namespace" {
type = string
description = "Namespace (e.g. `cp` or `cloudposse`)"
}
variable "enabled" {
type = string
description = "Set to false to prevent the module from creating any resources"
default = "true"
}
variable "stage" {
type = string
description = "Stage (e.g. `prod`, `dev`, `staging`)"
}
variable "delimiter" {
type = string
default = "-"
description = "Delimiter to be used between `namespace`, `stage`, `name`, and `attributes`"
}
variable "attributes" {
type = list(string)
default = []
description = "Additional attributes (e.g. `policy` or `role`)"
}
variable "tags" {
type = map(string)
default = {}
description = "Additional tags (e.g. map(`BusinessUnit`,`XYZ`)"
}
variable "admin_name" {
type = string
default = "admin"
description = "Name for the admin group and role (e.g. `admin`)"
}
variable "readonly_name" {
type = string
default = "readonly"
description = "Name for the readonly group and role (e.g. `readonly`)"
}
variable "admin_user_names" {
type = list(string)
default = []
description = "Optional list of IAM user names to add to the admin group"
}
variable "readonly_user_names" {
type = list(string)
default = []
description = "Optional list of IAM user names to add to the readonly group"
}
variable "switchrole_url" {
type = string
description = "URL to the IAM console to switch to a role"
default = "https://signin.aws.amazon.com/switchrole?account=%s&roleName=%s&displayName=%s"
}