-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
99 lines (85 loc) · 2.07 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
variable "attach_admin_policy" {
default = false
description = "Attach AdministratorAccess policy"
type = bool
}
variable "attach_read_only_policy" {
default = true
description = "Attach ReadOnly policy"
type = bool
}
variable "create_oidc_provider" {
default = true
description = "Create GitHub OIDC provider"
type = bool
}
variable "enabled" {
default = true
description = "Enable resource creation"
type = bool
}
variable "force_detach_policies" {
default = false
description = "Force detach IAM policies"
type = bool
}
variable "github_organisation" {
description = "GitHub organisation name"
type = string
}
variable "github_repositories" {
type = list(object({
name = string
branches = list(string)
}))
default = [{
branches = null
name = null
}]
description = "GitHub repository names and branches"
}
variable "iam_role_name" {
default = "github-actions"
description = "IAM role name"
type = string
}
variable "iam_role_path" {
default = "/"
description = "IAM role path"
type = string
sensitive = false
}
variable "iam_role_permissions_boundary" {
default = ""
description = "IAM role permissions boundary ARN"
type = string
sensitive = false
}
variable "iam_role_policy_arns" {
default = []
description = "IAM policy ARNs to attach"
type = list(string)
sensitive = false
}
variable "max_session_duration" {
default = 3600
description = "Session duration in seconds"
type = number
sensitive = false
validation {
condition = var.max_session_duration >= 3600 && var.max_session_duration <= 43200
error_message = "Must be between 3600 and 43200 seconds."
}
}
variable "url" {
type = string
description = "Identity provider URL"
default = "token.actions.githubusercontent.com"
sensitive = false
}
variable "tags" {
default = {}
description = "Tags to apply to resources"
type = map(string)
sensitive = false
}