-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
54 lines (48 loc) · 1.53 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
variable "github_known_thumbprints" {
type = list(string)
description = "The known intermediary thumbprints for the GitHub OIDC provider"
default = [
"1c58a3a8518e8759bf075b76b750d4f2df264fcd",
"6938fd4d98bab03faadb97b34396831e3780aea1"
]
}
variable "github_repositories" {
type = list(string)
description = "The github repositories, for example [\"ministryofjustice/modernisation-platform-environments:*\"]"
validation {
condition = length(var.github_repositories) > 0
error_message = "At least one repository must be specified."
}
validation {
condition = alltrue([
for repo in var.github_repositories :
can(regex("ministryofjustice", repo))
])
error_message = "Repository must belong to the \"ministryofjustice\" GitHub organisation"
}
}
variable "additional_permissions" {
type = string
description = "accept aws_iam_policy_document with additional permissions to attach to the OIDC-provider role"
}
variable "additional_managed_policies" {
type = list(string)
description = "accept a list of arns for aws managed policies to attach to OIDC-provider role"
default = []
}
## OIDC Role Name
variable "role_name" {
type = string
description = "OIDC Role Name"
default = "github-actions"
}
## Tags / Prefix
variable "tags_common" {
description = "MOJ required tags"
type = map(string)
}
# tflint-ignore: terraform_unused_declarations
variable "tags_prefix" {
description = "prefix for name tags"
type = string
}