make project creation optional in gcs to bq example
This commit is contained in:
parent
4f79e12365
commit
a7a0a15931
|
@ -29,6 +29,7 @@ module "project-service" {
|
||||||
name = var.project_service_name
|
name = var.project_service_name
|
||||||
parent = var.root_node
|
parent = var.root_node
|
||||||
billing_account = var.billing_account
|
billing_account = var.billing_account
|
||||||
|
project_create = var.project_create
|
||||||
services = [
|
services = [
|
||||||
"bigquery.googleapis.com",
|
"bigquery.googleapis.com",
|
||||||
"bigqueryreservation.googleapis.com",
|
"bigqueryreservation.googleapis.com",
|
||||||
|
@ -47,6 +48,7 @@ module "project-kms" {
|
||||||
name = var.project_kms_name
|
name = var.project_kms_name
|
||||||
parent = var.root_node
|
parent = var.root_node
|
||||||
billing_account = var.billing_account
|
billing_account = var.billing_account
|
||||||
|
project_create = var.project_create
|
||||||
services = [
|
services = [
|
||||||
"cloudkms.googleapis.com",
|
"cloudkms.googleapis.com",
|
||||||
]
|
]
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
variable "billing_account" {
|
variable "billing_account" {
|
||||||
description = "Billing account id used as default for new projects."
|
description = "Billing account id used as default for new projects."
|
||||||
type = string
|
type = string
|
||||||
|
default = null
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "location" {
|
variable "location" {
|
||||||
|
@ -24,6 +25,12 @@ variable "location" {
|
||||||
default = "europe"
|
default = "europe"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "project_create" {
|
||||||
|
description = "Set to true to create projects, will use existing ones by default."
|
||||||
|
type = bool
|
||||||
|
default = false
|
||||||
|
}
|
||||||
|
|
||||||
variable "project_kms_name" {
|
variable "project_kms_name" {
|
||||||
description = "Name for the new KMS Project."
|
description = "Name for the new KMS Project."
|
||||||
type = string
|
type = string
|
||||||
|
@ -43,6 +50,7 @@ variable "region" {
|
||||||
variable "root_node" {
|
variable "root_node" {
|
||||||
description = "The resource name of the parent Folder or Organization. Must be of the form folders/folder_id or organizations/org_id."
|
description = "The resource name of the parent Folder or Organization. Must be of the form folders/folder_id or organizations/org_id."
|
||||||
type = string
|
type = string
|
||||||
|
default = null
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "ssh_source_ranges" {
|
variable "ssh_source_ranges" {
|
||||||
|
|
Loading…
Reference in New Issue