Skip to content

Commit

Permalink
fix: transform 1-data-ingestion into module base-data-ingestion (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-cit authored Jul 29, 2021
1 parent 12bb160 commit a6e0af0
Show file tree
Hide file tree
Showing 20 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions build/int.cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,17 @@ steps:
- 'TF_VAR_org_id=$_ORG_ID'
- id: create-data-ingestion
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 && export TF_VAR_access_context_manager_policy_id=$(gcloud access-context-manager policies list --organization="${TF_VAR_org_id:?}" --format="value(name)") && kitchen_do create 1-data-ingestion']
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && export TF_VAR_access_context_manager_policy_id=$(gcloud access-context-manager policies list --organization="${TF_VAR_org_id:?}" --format="value(name)") && kitchen_do create base-data-ingestion']
env:
- 'TF_VAR_org_id=$_ORG_ID'
- id: converge-data-ingestion
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 && export TF_VAR_access_context_manager_policy_id=$(gcloud access-context-manager policies list --organization="${TF_VAR_org_id:?}" --format="value(name)") && kitchen_do converge 1-data-ingestion']
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && export TF_VAR_access_context_manager_policy_id=$(gcloud access-context-manager policies list --organization="${TF_VAR_org_id:?}" --format="value(name)") && kitchen_do converge base-data-ingestion']
env:
- 'TF_VAR_org_id=$_ORG_ID'
- id: verify-data-ingestion
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 && export TF_VAR_access_context_manager_policy_id=$(gcloud access-context-manager policies list --organization="${TF_VAR_org_id:?}" --format="value(name)") && kitchen_do verify 1-data-ingestion']
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && export TF_VAR_access_context_manager_policy_id=$(gcloud access-context-manager policies list --organization="${TF_VAR_org_id:?}" --format="value(name)") && kitchen_do verify base-data-ingestion']
env:
- 'TF_VAR_org_id=$_ORG_ID'
- id: create-de-identification-template
Expand Down Expand Up @@ -112,7 +112,7 @@ steps:
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do destroy de-identification-template']
- id: destroy-data-ingestion
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 && export TF_VAR_access_context_manager_policy_id=$(gcloud access-context-manager policies list --organization="${TF_VAR_org_id:?}" --format="value(name)") && kitchen_do destroy 1-data-ingestion']
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && export TF_VAR_access_context_manager_policy_id=$(gcloud access-context-manager policies list --organization="${TF_VAR_org_id:?}" --format="value(name)") && kitchen_do destroy base-data-ingestion']
env:
- 'TF_VAR_org_id=$_ORG_ID'
- id: create-org-policies
Expand Down
4 changes: 2 additions & 2 deletions examples/batch-data-ingestion/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Dataflow with DLP de-identification

This example illustrates how to run a Dataflow job that uses the `de_identification_template` submodule with the `1-data-ingestion` step.
This example illustrates how to run a Dataflow job that uses the `de_identification_template` submodule with the `base-data-ingestion` submodule.

## Prerequisites

1. 1-data-ingestion executed successfully.
1. base-data-ingestion executed successfully.
2. A `crypto_key` and `wrapped_key` pair. Contact your Security Team to obtain the pair. The `crypto_key` location must be the same location used for the `dlp_location`.

<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
Expand Down
4 changes: 2 additions & 2 deletions examples/dataflow-with-dlp/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Dataflow with DLP de-identification

This example illustrates how to run a Dataflow job that uses the `de_identification_template` submodule with the `1-data-ingestion` step.
This example illustrates how to run a Dataflow job that uses the `de_identification_template` submodule with the `base-data-ingestion` submodule.

## Prerequisites

1. 1-data-ingestion executed successfully.
1. base-data-ingestion executed successfully.
2. A `crypto_key` and `wrapped_key` pair. Contact your Security Team to obtain the pair. The `crypto_key` location must be the same location used for the `dlp_location`.

<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
Expand Down
6 changes: 3 additions & 3 deletions kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ platforms:
- name: default

suites:
- name: 1-data-ingestion
- name: base-data-ingestion
driver:
root_module_directory: test/fixtures/1-data-ingestion/
root_module_directory: test/fixtures/base-data-ingestion/
verifier:
color: false
systems:
- name: 1-data_ingestion gcp
- name: base_data_ingestion gcp
backend: gcp
controls:
- gcp
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ locals {

// vpc service controls
module "vpc_service_controls" {
source = "..//modules/vpc_service_controls"
source = "../..//modules/vpc_service_controls"

org_id = var.org_id
project_id = var.project_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


module "data_ingestion" {
source = "../../../1-data-ingestion"
source = "../../..//modules/base-data-ingestion"
bucket_name = var.bucket_name
dataset_id = var.dataset_id
org_id = var.org_id
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 1-data-ingestion
name: base-data-ingestion
depends:
- name: inspec-gcp
git: https://github.com/inspec/inspec-gcp.git
Expand Down

0 comments on commit a6e0af0

Please sign in to comment.