Skip to content

Commit

Permalink
chore: update examples to use registry (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
bharathkkb authored Dec 21, 2023
1 parent 90ffaeb commit 13698cd
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 13 deletions.
4 changes: 3 additions & 1 deletion build/int.cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@

timeout: 10800s
steps:

- id: swap-module-refs
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
args: ['module-swapper']
- id: prepare
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && prepare_environment']
Expand Down
3 changes: 2 additions & 1 deletion examples/de-identification-template/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
*/

module "de_identification_template_example" {
source = "../..//modules/de-identification-template"
source = "GoogleCloudPlatform/secured-data-warehouse/google//modules/de-identification-template"
version = "~> 0.2"

project_id = var.project_id
terraform_service_account = var.terraform_service_account
Expand Down
10 changes: 7 additions & 3 deletions examples/regional-dlp/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ locals {
}

module "data_ingestion" {
source = "../.."
source = "GoogleCloudPlatform/secured-data-warehouse/google"
version = "~> 0.2"

org_id = var.org_id
labels = { environment = "dev" }
data_governance_project_id = var.data_governance_project_id
Expand All @@ -45,7 +47,8 @@ module "data_ingestion" {
}

module "de_identification_template_example" {
source = "../..//modules/de-identification-template"
source = "GoogleCloudPlatform/secured-data-warehouse/google//modules/de-identification-template"
version = "~> 0.2"

project_id = var.data_governance_project_id
terraform_service_account = var.terraform_service_account
Expand Down Expand Up @@ -89,7 +92,8 @@ resource "google_artifact_registry_repository_iam_member" "python_reader" {
}

module "regional_dlp" {
source = "../../modules/dataflow-flex-job"
source = "GoogleCloudPlatform/secured-data-warehouse/google//modules/dataflow-flex-job"
version = "~> 0.2"

project_id = var.data_ingestion_project_id
name = "regional-flex-python-pubsub-dlp-bq"
Expand Down
4 changes: 3 additions & 1 deletion examples/simple-example/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
*/

module "secured_data_warehouse" {
source = "../.."
source = "GoogleCloudPlatform/secured-data-warehouse/google"
version = "~> 0.2"

org_id = var.org_id
labels = { environment = "dev" }
data_governance_project_id = var.data_governance_project_id
Expand Down
3 changes: 2 additions & 1 deletion examples/standalone-enhanced-org-policy/harness.tf
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ module "non_confidential_data_project_id" {
}

module "centralized_logging" {
source = "../../modules/centralized-logging"
source = "GoogleCloudPlatform/secured-data-warehouse/google//modules/centralized-logging"
version = "~> 0.2"
projects_ids = local.projects_ids
logging_project_id = var.data_governance_project_id
kms_project_id = var.data_governance_project_id
Expand Down
4 changes: 3 additions & 1 deletion examples/standalone-enhanced-org-policy/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ locals {
}

module "secured_data_warehouse" {
source = "../.."
source = "GoogleCloudPlatform/secured-data-warehouse/google"
version = "~> 0.2"

org_id = var.org_id
data_governance_project_id = var.data_governance_project_id
confidential_data_project_id = var.confidential_data_project_id
Expand Down
3 changes: 2 additions & 1 deletion examples/standalone/harness.tf
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ data "google_secret_manager_secret_version" "wrapped_key" {
}

module "centralized_logging" {
source = "../../modules/centralized-logging"
source = "GoogleCloudPlatform/secured-data-warehouse/google//modules/centralized-logging"
version = "~> 0.2"
projects_ids = local.projects_ids
labels = { environment = "dev" }
logging_project_id = module.base_projects.data_governance_project_id
Expand Down
12 changes: 8 additions & 4 deletions examples/standalone/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ resource "random_id" "suffix" {
}

module "secured_data_warehouse" {
source = "../.."
source = "GoogleCloudPlatform/secured-data-warehouse/google"
version = "~> 0.2"

org_id = var.org_id
labels = { environment = "dev" }
Expand Down Expand Up @@ -97,7 +98,8 @@ module "secured_data_warehouse" {
}

module "de_identification_template" {
source = "../..//modules/de-identification-template"
source = "GoogleCloudPlatform/secured-data-warehouse/google//modules/de-identification-template"
version = "~> 0.2"

project_id = module.base_projects.data_governance_project_id
terraform_service_account = var.terraform_service_account
Expand Down Expand Up @@ -154,7 +156,8 @@ resource "google_artifact_registry_repository_iam_member" "confidential_python_r
// that provides the public with financial information about a nonprofit organization
// (https://console.cloud.google.com/marketplace/product/internal-revenue-service/irs-990?project=bigquery-public-data)
module "regional_deid_pipeline" {
source = "../../modules/dataflow-flex-job"
source = "GoogleCloudPlatform/secured-data-warehouse/google//modules/dataflow-flex-job"
version = "~> 0.2"

project_id = module.base_projects.data_ingestion_project_id
name = "dataflow-flex-regional-dlp-deid-job-python-query"
Expand Down Expand Up @@ -189,7 +192,8 @@ resource "time_sleep" "wait_de_identify_job_execution" {
}

module "regional_reid_pipeline" {
source = "../../modules/dataflow-flex-job"
source = "GoogleCloudPlatform/secured-data-warehouse/google//modules/dataflow-flex-job"
version = "~> 0.2"

project_id = module.base_projects.confidential_data_project_id
name = "dataflow-flex-regional-dlp-reid-job-python-query"
Expand Down

0 comments on commit 13698cd

Please sign in to comment.