Skip to content

Files

Latest commit

c1c5164 · Oct 25, 2023

History

History
20 lines (14 loc) · 800 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 800 Bytes

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] .