-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
51 lines (43 loc) · 1.3 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
variable "account_id" {
description = "AWS account ID"
type = number
}
variable "gh_idp" {
description = "GitHub OIDC provider name"
type = string
default = "token.actions.githubusercontent.com"
}
variable "gh_idp_aud" {
description = "GitHub OIDC provider audience"
type = string
default = "sts.amazonaws.com"
}
variable "owner" {
description = "GitHub user that owns var.repo"
type = string
}
variable "repo" {
description = "GitHub repository the GitHub Actions workflows are running in"
type = string
}
variable "branches" {
description = "Git branches that can access resources in var.account_id"
type = set(string)
default = []
}
variable "environments" {
description = "GitHub environment that can access resources in var.account_id"
type = set(string)
default = []
}
variable "policy_arns" {
description = "ARNs of permissions policies to grant to GitHub Actions workflows"
type = set(string)
default = []
}
variable "inline_policies" {
description = "Inline policies to grant to GitHub Actions workflows"
# See https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role#inline_policy.
type = set(object({ name = string, policy = string }))
default = []
}