-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
50 lines (44 loc) · 1.62 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
#------------------------------------------------------------------------------------------------------------------------
#
# Generic variables
#
#------------------------------------------------------------------------------------------------------------------------
variable "owner" {
description = "Company owner name"
type = string
}
variable "project" {
description = "Company project name"
type = string
}
variable "environment" {
description = "Company environment for which the resources are created (e.g. dev, tst, dmo, stg, prd, all)."
type = string
}
variable "gcp_project" {
description = "GCP Project ID override - this is normally not needed and should only be used in specific cases."
type = string
default = null
}
#------------------------------------------------------------------------------------------------------------------------
#
# Service account variables
#
#------------------------------------------------------------------------------------------------------------------------
variable "service_accounts" {
description = "Map of accounts to be created. The key will be used for the SA name so it should describe the SA purpose. A list of roles can be provided to set an authoritive iam policy for the service account."
type = map(object({
description = optional(string, null)
roles = optional(map(object({
members = map(object({
email = string
type = string
}))
condition = optional(object({
expression = string
title = string
description = optional(string, null)
}))
})), {})
}))
}