This project shows how to create BigQuery Datasets with tables using Pulumi and elegant/scalable Json configuration.
This use cas was previously created with Terraform and the goal is to rewrite it with Pulumi and the Python SDK.
The link to the article with the use case created with Terraform :
export PROJECT_ID={{your_project_id}}
export LOCATION={{your_location}}
gcloud builds submit \
--project=$PROJECT_ID \
--region=$LOCATION \
--config pulumi-preview-infra.yaml \
--verbosity="debug" .
gcloud builds submit \
--project=$PROJECT_ID \
--region=$LOCATION \
--config pulumi-update-infra.yaml \
--verbosity="debug" .
gcloud builds submit \
--project=$PROJECT_ID \
--region=$LOCATION \
--config pulumi-destroy-infra.yaml \
--verbosity="debug" .
gcloud beta builds triggers create manual \
--project=$PROJECT_ID \
--region=$LOCATION \
--name="datasets-tables-pulumi-preview" \
--repo="https://github.com/tosun-si/datasets-tables-bq-pulumi" \
--repo-type="GITHUB" \
--branch="main" \
--build-config="pulumi-preview-infra.yaml" \
--verbosity="debug"
gcloud beta builds triggers create manual \
--project=$PROJECT_ID \
--region=$LOCATION \
--name="datasets-tables-pulumi-update" \
--repo="https://github.com/tosun-si/datasets-tables-bq-pulumi" \
--repo-type="GITHUB" \
--branch="main" \
--build-config="pulumi-update-infra.yaml" \
--verbosity="debug"
gcloud beta builds triggers create manual \
--project=$PROJECT_ID \
--region=$LOCATION \
--name="datasets-tables-pulumi-destroy" \
--repo="https://github.com/tosun-si/datasets-tables-bq-pulumi" \
--repo-type="GITHUB" \
--branch="main" \
--build-config="pulumi-destroy-infra.yaml" \
--verbosity="debug"