This a study case project to manage GCP resources using Terraform, populate a Cloud SQL database, then extract the data to Cloud Storage
- Install Docker
- Install Terraform
- Install Google Cloud CLI
- After authenticate with
gcloud
, run thegcloud auth configure-docker
- After authenticate with
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] .