From dc034d74f730c6a5cfd54d7d9cdf62580c8574a2 Mon Sep 17 00:00:00 2001 From: lcaggio Date: Sun, 5 Mar 2023 22:24:16 +0100 Subject: [PATCH] Variables. --- blueprints/data-solutions/bq-ml/README.md | 15 ++++++++------- blueprints/data-solutions/bq-ml/variables.tf | 20 ++++++++++---------- 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/blueprints/data-solutions/bq-ml/README.md b/blueprints/data-solutions/bq-ml/README.md index 3efa457e..39402b91 100644 --- a/blueprints/data-solutions/bq-ml/README.md +++ b/blueprints/data-solutions/bq-ml/README.md @@ -45,7 +45,6 @@ To run the demo: - Connect to the Vertex AI workbench instance - Clone this repository - Run the and run [`demo/bmql_pipeline.ipynb`](demo/bmql_pipeline.ipynb) Jupyter Notebook. - ## Files @@ -59,17 +58,19 @@ To run the demo: | [vertex.tf](./vertex.tf) | Vertex resources. | iam-service-account | google_notebooks_instance · google_vertex_ai_metadata_store | | [vpc.tf](./vpc.tf) | VPC resources. | net-cloudnat · net-vpc · net-vpc-firewall | google_project_iam_member | + + ## Variables | name | description | type | required | default | |---|---|:---:|:---:|:---:| -| [prefix](variables.tf#L33) | Prefix used for resource names. | string | ✓ | | -| [project_id](variables.tf#L51) | Project id references existing project if `project_create` is null. | string | ✓ | | +| [prefix](variables.tf#L23) | Prefix used for resource names. | string | ✓ | | +| [project_id](variables.tf#L41) | Project id references existing project if `project_create` is null. | string | ✓ | | | [location](variables.tf#L17) | The location where resources will be deployed. | string | | "US" | -| [project_create](variables.tf#L42) | Provide values if project creation is needed, use existing project if null. Parent format: folders/folder_id or organizations/org_id. | object({…}) | | null | -| [region](variables.tf#L56) | The region where resources will be deployed. | string | | "us-central1" | -| [service_encryption_keys](variables.tf#L62) | Cloud KMS to use to encrypt different services. The key location should match the service region. | object({…}) | | null | -| [vpc_config](variables.tf#L23) | Shared VPC network configurations to use. If null networks will be created in projects with pre-configured values. | object({…}) | | null | +| [project_create](variables.tf#L32) | Provide values if project creation is needed, use existing project if null. Parent format: folders/folder_id or organizations/org_id. | object({…}) | | null | +| [region](variables.tf#L46) | The region where resources will be deployed. | string | | "us-central1" | +| [service_encryption_keys](variables.tf#L52) | Cloud KMS to use to encrypt different services. The key location should match the service region. | object({…}) | | null | +| [vpc_config](variables.tf#L62) | Shared VPC network configurations to use. If null networks will be created in projects with pre-configured values. | object({…}) | | null | ## Outputs diff --git a/blueprints/data-solutions/bq-ml/variables.tf b/blueprints/data-solutions/bq-ml/variables.tf index 058284ee..3106fb10 100644 --- a/blueprints/data-solutions/bq-ml/variables.tf +++ b/blueprints/data-solutions/bq-ml/variables.tf @@ -20,16 +20,6 @@ variable "location" { default = "US" } -variable "vpc_config" { - description = "Shared VPC network configurations to use. If null networks will be created in projects with pre-configured values." - type = object({ - host_project = string - network_self_link = string - subnet_self_link = string - }) - default = null -} - variable "prefix" { description = "Prefix used for resource names." type = string @@ -68,3 +58,13 @@ variable "service_encryption_keys" { }) default = null } + +variable "vpc_config" { + description = "Shared VPC network configurations to use. If null networks will be created in projects with pre-configured values." + type = object({ + host_project = string + network_self_link = string + subnet_self_link = string + }) + default = null +}