/gcp-sql-export-poc

This a study case project to manage GCP resources using Terraform, populate a Cloud SQL database, then extract the data to Cloud Storage

Primary LanguagePythonApache License 2.0Apache-2.0

gcp-sql-export-poc

This a study case project to manage GCP resources using Terraform, populate a Cloud SQL database, then extract the data to Cloud Storage

Requirements

  1. Install Docker
  2. Install Terraform
  3. Install Google Cloud CLI
    • After authenticate with gcloud, run the gcloud auth configure-docker

Commands

Inside the repository folder run terraform init to initialize the Terraform project. Then run the following commands to build and push the docker image to GCP.

$ docker build -t gcr.io/[PROJECT_ID]/[IMAGE_NAME]:[TAG] .
$ docker push gcr.io/[PROJECT_ID]/[IMAGE_NAME]:[TAG] .