generated from hadenlabs/terraform-module-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
90 lines (76 loc) · 2.23 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 "namespace" {
type = string
default = null
description = "ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp', to help ensure generated IDs are globally unique"
}
variable "stage" {
type = string
default = null
description = "ID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'build', 'test', 'deploy', 'release'"
}
variable "name" {
type = string
description = "name"
}
variable "tags" {
type = map(string)
description = "Additional tags (e.g. `map('BusinessUnit','XYZ')`"
default = {}
}
variable "enabled" {
type = bool
default = true
description = "Set to false to prevent the module from creating any resources"
}
variable "force_destroy" {
type = bool
description = "Destroy the user even if it has non-Terraform-managed IAM access keys, login profile or MFA devices"
default = false
}
variable "path" {
type = string
description = "Path in which to create the user"
default = "/system/"
}
variable "inline_policies" {
type = list(string)
description = "Inline policies to attach to our created user"
default = []
}
variable "inline_policies_map" {
type = map(string)
description = "Inline policies to attach (descriptive key => policy)"
default = {}
}
variable "policy_arns" {
type = list(string)
description = "Policy ARNs to attach to our created user"
default = []
}
variable "policy_arns_map" {
type = map(string)
description = "Policy ARNs to attach (descriptive key => arn)"
default = {}
}
variable "permissions_boundary" {
type = string
description = "Permissions Boundary ARN to attach to our created user"
default = null
}
variable "create_iam_access_key" {
type = bool
description = "Whether or not to create IAM access keys"
default = true
}
variable "use_fullname" {
type = bool
default = false
description = <<-EOT
If set to 'true' then the full ID for the IAM user name (e.g. `[var.namespace]-[var.stage]-[var.name]`) will be used.
EOT
}
variable "prefix" {
type = string
description = "prefix name for user"
default = "system"
}