This repository has been archived by the owner on Jul 21, 2022. It is now read-only.
forked from cloudposse/terraform-aws-iam-role
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
71 lines (59 loc) · 1.82 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
variable "namespace" {
type = "string"
description = "Namespace (e.g. `cp` or `cloudposse`)"
}
variable "stage" {
type = "string"
description = "Stage (e.g. `prod`, `dev`, `staging`)"
}
variable "name" {
type = "string"
description = "Name (e.g. `app` or `chamber`)"
}
variable "use_fullname" {
type = "string"
default = "true"
description = "Set 'true' to use `namespace-stage-name` for ecr repository name, else `name`"
}
variable "delimiter" {
type = "string"
default = "-"
description = "Delimiter to be used between `namespace`, `stage`, `name` and `attributes`"
}
variable "attributes" {
type = "list"
default = []
description = "Additional attributes (e.g. `1`)"
}
variable "tags" {
type = "map"
default = {}
description = "Additional tags (e.g. map(`BusinessUnit`,`XYZ`)"
}
variable "principals" {
type = "map"
description = "Map of service name as key and a list of ARNs to allow assuming the role as value. (e.g. map(`AWS`, list(`arn:aws:iam:::role/admin`)))"
default = {}
}
variable "policy_documents" {
type = "list"
description = "List of JSON IAM policy documents"
default = []
}
variable "max_session_duration" {
default = 3600
description = "The maximum session duration (in seconds) for the role. Can have a value from 1 hour to 12 hours"
}
variable "enabled" {
type = "string"
description = "Set to `false` to prevent the module from creating any resources"
default = "true"
}
variable "role_description" {
type = "string"
description = "The description of the IAM role that is visible in the IAM role manager"
}
variable "policy_description" {
type = "string"
description = "The description of the IAM policy that is visible in the IAM policy manager"
}