-
Notifications
You must be signed in to change notification settings - Fork 3
/
variables.tf
46 lines (39 loc) · 1.02 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
variable "enabled" {
description = "Set to false to prevent the module from creating any resources"
type = bool
default = true
}
variable "name" {
description = "Name of the role"
}
variable "tags" {
description = "Tags applied to the resources"
type = map(string)
default = {}
}
variable "inline_policies" {
description = "Policies applied to the assuming role"
default = []
type = list(object({
name = string
statements = list(object({
actions = list(string)
resources = list(string)
}))
}))
}
variable "attach_policy_arns" {
description = "Policy arns attacherd to the assuming role"
type = list(string)
default = []
}
variable "iam_role_principals_arns" {
description = "Other IAM Principals which can assume the role"
type = list(string)
default = []
}
variable "service_principals" {
description = "IAM service Principals which can assume the role"
type = list(string)
default = ["ec2.amazonaws.com"]
}