This repository has been archived by the owner on Oct 25, 2023. It is now read-only.
generated from TechNative-B-V/terraform-aws-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
50 lines (46 loc) · 1.62 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
variable "role_name" {
description = "Role name for new role. Required value."
type = string
}
variable "role_path" {
description = "Path for new role. Defaults to \"/\"."
type = string
default = "/"
}
variable "customer_managed_policies" {
description = "Optional map of customer managed policy names. Key is policyname and value is policy object in HCL."
type = any # activate below when optional() is ready for GA
# type = map(object({
# Version = string
# Sid = optional(string)
# Statement = list(object({
# Sid = optional(string)
# Effect = string
# Action = list(string)
# Resource = list(string)
# Condition = optional(any)
# }))
# }))
default = {}
}
variable "aws_managed_policies" {
description = "Optional list of AWS managed policies. We assume that these policies already exist."
type = list(string)
default = []
}
variable "trust_relationship" {
description = <<EOT
Defines trust relationships on this role.
About prevent_account_confuseddeputy see https://docs.aws.amazon.com/IAM/latest/UserGuide/confused-deputy.html .
TODO: It would be best to remove this parameter and have a list of affected principals within our terraform-aws-module-iam-policy-helper with an override to disable if necessary.
EOT
type = map(object({
identifier = string
identifier_type = string # either AWS or Service
enforce_mfa = bool
enforce_userprincipal = bool
external_id = string
prevent_account_confuseddeputy = bool
}))
default = {}
}