fix variables
This commit is contained in:
parent
889c456458
commit
b1d8c06422
|
@ -43,6 +43,7 @@ Once done testing, you can clean up resources by running `terraform destroy`.
|
|||
| *prefix* | Prefix used to generate project id and name. | <code title="">string</code> | | <code title="">null</code> |
|
||||
| *project_names* | Override this variable if you need non-standard names. | <code title="object({ datamart = string dwh = string landing = string services = string transformation = string })">object({...})</code> | | <code title="{ datamart = "datamart" dwh = "datawh" landing = "landing" services = "services" transformation = "transformation" }">...</code> |
|
||||
| *service_account_names* | Override this variable if you need non-standard names. | <code title="object({ main = string })">object({...})</code> | | <code title="{ main = "data-platform-main" }">...</code> |
|
||||
| *service_encryption_key_ids* | Cloud KMS encryption key in {LOCATION => [KEY_URL]} format. Keys belong to existing project. | <code title="object({ regional = string multiregional = string global = string })">object({...})</code> | | <code title="{ regional = null multiregional = null global = null }">...</code> |
|
||||
|
||||
## Outputs
|
||||
|
||||
|
@ -50,4 +51,5 @@ Once done testing, you can clean up resources by running `terraform destroy`.
|
|||
|---|---|:---:|
|
||||
| project_ids | Project ids for created projects. | |
|
||||
| service_account | Main service account. | |
|
||||
| service_encryption_key_ids | Cloud KMS encryption keys in {LOCATION => [KEY_URL]} format. | |
|
||||
<!-- END TFDOC -->
|
||||
|
|
|
@ -30,6 +30,7 @@ module "project-datamart" {
|
|||
"bigquery.googleapis.com",
|
||||
"bigquerystorage.googleapis.com",
|
||||
"bigqueryreservation.googleapis.com",
|
||||
"storage.googleapis.com",
|
||||
"storage-component.googleapis.com",
|
||||
]
|
||||
iam = {
|
||||
|
|
|
@ -26,12 +26,8 @@ output "project_ids" {
|
|||
}
|
||||
|
||||
output "service_encryption_key_ids" {
|
||||
description = "Project ids for created projects."
|
||||
value = {
|
||||
regional = var.service_encryption_key_ids.regional
|
||||
multiregional = var.service_encryption_key_ids.multiregional
|
||||
global = var.service_encryption_key_ids.global
|
||||
}
|
||||
description = "Cloud KMS encryption keys in {LOCATION => [KEY_URL]} format."
|
||||
value = var.service_encryption_key_ids
|
||||
}
|
||||
|
||||
output "service_account" {
|
||||
|
|
|
@ -56,14 +56,8 @@ variable "service_account_names" {
|
|||
}
|
||||
}
|
||||
|
||||
variable "create_encryption_keys" {
|
||||
description = "Cloud KMS encryption key will be created in the Service Project."
|
||||
type = bool
|
||||
default = false
|
||||
}
|
||||
|
||||
variable "service_encryption_key_ids" {
|
||||
description = "Cloud KMS encryption key in {SERVICE => [KEY_URL]} format. Keys belong to existing project."
|
||||
description = "Cloud KMS encryption key in {LOCATION => [KEY_URL]} format. Keys belong to existing project."
|
||||
type = object({
|
||||
regional = string
|
||||
multiregional = string
|
||||
|
|
|
@ -61,6 +61,7 @@ Once done testing, you can clean up resources by running `terraform destroy`.
|
|||
| *landing_pubsub* | List of landing pubsub topics and subscriptions to create | <code title="map(map(object({ iam = map(list(string)) labels = map(string) options = object({ ack_deadline_seconds = number message_retention_duration = number retain_acked_messages = bool expiration_policy_ttl = number }) })))">map(map(object({...})))</code> | | <code title="{ landing-1 = { sub1 = { iam = { } labels = {} options = null } sub2 = { iam = {} labels = {}, options = null }, } }">...</code> |
|
||||
| *landing_service_account* | landing service accounts list. | <code title="">string</code> | | <code title="">sa-landing</code> |
|
||||
| *service_account_names* | Project service accounts list. | <code title="object({ datamart = string dwh = string landing = string services = string transformation = string })">object({...})</code> | | <code title="{ datamart = "sa-datamart" dwh = "sa-datawh" landing = "sa-landing" services = "sa-services" transformation = "sa-transformation" }">...</code> |
|
||||
| *service_encryption_key_ids* | Cloud KMS encryption key in {LOCATION => [KEY_URL]} format. Keys belong to existing project. | <code title="object({ regional = string multiregional = string global = string })">object({...})</code> | | <code title="{ regional = null multiregional = null global = null }">...</code> |
|
||||
| *transformation_buckets* | List of transformation buckets to create | <code title="map(object({ location = string name = string }))">map(object({...}))</code> | | <code title="{ temp = { location = "EU" name = "temp" }, templates = { location = "EU" name = "templates" }, }">...</code> |
|
||||
| *transformation_subnets* | List of subnets to create in the transformation Project. | <code title="list(object({ ip_cidr_range = string name = string region = string secondary_ip_range = map(string) }))">list(object({...}))</code> | | <code title="[ { ip_cidr_range = "10.1.0.0/20" name = "transformation-subnet" region = "europe-west3" secondary_ip_range = {} }, ]">...</code> |
|
||||
| *transformation_vpc_name* | Name of the VPC created in the transformation Project. | <code title="">string</code> | | <code title="">transformation-vpc</code> |
|
||||
|
|
|
@ -171,7 +171,7 @@ variable "transformation_vpc_name" {
|
|||
}
|
||||
|
||||
variable "service_encryption_key_ids" {
|
||||
description = "Cloud KMS encryption key in {SERVICE => [KEY_URL]} format."
|
||||
description = "Cloud KMS encryption key in {LOCATION => [KEY_URL]} format. Keys belong to existing project."
|
||||
type = object({
|
||||
regional = string
|
||||
multiregional = string
|
||||
|
|
Loading…
Reference in New Issue