-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathvariables.tf
80 lines (68 loc) · 2.98 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
# ------------------------------------------------------------------------------
# ENVIRONMENT VARIABLES
# Define these secrets as environment variables.
# ------------------------------------------------------------------------------
# AWS_ACCESS_KEY_ID
# AWS_SECRET_ACCESS_KEY
# ------------------------------------------------------------------------------
# REQUIRED PARAMETERS
# These variables must be set when using this module.
# ------------------------------------------------------------------------------
variable "names" {
type = set(string)
description = "(Required) A set of names. Every name must consist of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: '=,.@-_'. User names are not distinguished by case."
}
# ------------------------------------------------------------------------------
# OPTIONAL PARAMETERS
# These variables have defaults, but may be overridden.
# ------------------------------------------------------------------------------
variable "path" {
type = string
description = "(Optional) Path in which to create the user. Default is \"/\"."
default = "/"
}
variable "permissions_boundary" {
type = string
description = "(Optional) The ARN of the policy that is used to set the permissions boundary for the user."
default = null
}
variable "force_destroy" {
type = bool
description = "(Optional) When destroying this user, destroy even if it has non-Terraform-managed IAM access keys, login profile or MFA devices. Without force_destroy a user with non-Terraform-managed access keys and login profile will fail to be destroyed. Default is false."
default = false
}
variable "tags" {
type = map(string)
description = "(Optional) Key-value map of tags for the IAM user."
default = {}
}
variable "policy_statements" {
type = any
description = "(Optional) List of IAM policy statements to attach to the User as an inline policy."
default = []
}
variable "policy_arns" {
type = set(string)
description = "(Optional) Set of IAM custom or managed policies ARNs to attach to the User."
default = []
}
variable "groups" {
type = list(string)
description = "(Optional) List of IAM groups to add the User to."
default = []
}
# ------------------------------------------------------------------------------
# MODULE CONFIGURATION PARAMETERS
# These variables are used to configure the module.
# See https://medium.com/mineiros/the-ultimate-guide-on-how-to-write-terraform-modules-part-1-81f86d31f024
# ------------------------------------------------------------------------------
variable "module_enabled" {
type = bool
description = "(Optional) Whether to create resources within the module or not. Default is true."
default = true
}
variable "module_depends_on" {
type = any
description = "(Optional) A list of external resources the module depends_on. Default is []."
default = []
}