-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
variables.tf
108 lines (93 loc) · 2.48 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
variable "attach_admin_policy" {
default = false
description = "Enable attachment of the AdministratorAccess policy"
type = bool
}
variable "attach_read_only_policy" {
default = true
description = "Enable attachment of the ReadOnly policy"
type = bool
}
variable "create_oidc_provider" {
default = true
description = "Enable creation of the OIDC provider"
type = bool
}
variable "enabled" {
default = true
description = "Enable creation of resources"
type = bool
}
variable "force_detach_policies" {
default = false
description = "Force detachment of policies attached to the IAM role"
type = string
}
variable "organisation" {
description = "Terraform Cloud Organisation name"
type = string
}
variable "projects" {
type = list(object({
project = string
run_phase = string
workspaces = list(string)
}))
default = [{
project = null
run_phase = null
workspaces = null
}]
description = "List of Workspaces and run_phase or patterns"
}
variable "iam_role_name" {
default = "terraform-cloud"
description = "Name of the IAM role"
type = string
}
variable "iam_role_path" {
default = "/"
description = "Path to the IAM role"
type = string
sensitive = false
}
variable "iam_role_permissions_boundary" {
default = ""
description = "ARN of the permissions boundary to be used by the IAM role"
type = string
sensitive = false
}
variable "iam_role_policy_arns" {
default = []
description = "List of IAM policy ARNs to attach to the IAM role"
type = list(string)
sensitive = false
}
variable "max_session_duration" {
default = 3600
description = "Maximum session duration in seconds"
type = number
sensitive = false
validation {
condition = var.max_session_duration >= 3600 && var.max_session_duration <= 43200
error_message = "Session duration must be between 3600 and 43200 seconds."
}
}
variable "provider_client_id_list" {
default = ["aws.workload.identity"]
type = list(string)
description = "A list of client IDs (also known as audiences)"
sensitive = false
}
variable "url" {
type = string
description = "URL of identity provider"
default = "app.terraform.io"
sensitive = false
}
variable "tags" {
default = {}
description = "Map of tags to be applied to all resources"
type = map(string)
sensitive = false
}