Skip to content

A Terraform module for Google Cloud that simplifies the creation and management of a Cloud Run service. This project also utilizes CI/CD for Cloud Run with GitlabCI.

Notifications You must be signed in to change notification settings

bhatt-deep/Terraform-infrastructure-google-cloudrun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Infrastructure: Google Cloud Run

This Project enables implementation of google cloud run and cloud sql in terraform.

There are few requirements to setup this project.

  1. APIs which need to be enabled:
  • Cloud Run API
  • Cloud SQL Admin API
  • Container Registry API
  1. Credentials folder needs the JSON key for a service account. or you can set it as environment variable.

  2. environment variables needs to be setup:

  • db_user
  • db_pass
  • SERVICEACCOUNT
  1. Manually Build a docker image and push it to Google Container Registry and note that URL.

  2. Change Project ID and gcr.io URL accordingly.

Now Project is ready to deploy. you can run the project Manually by the below commands.

terraform init

terraform validate

terraform plan

terraform apply

Or you can use the gitlab CI to deploy the Infrastructure.

About

A Terraform module for Google Cloud that simplifies the creation and management of a Cloud Run service. This project also utilizes CI/CD for Cloud Run with GitlabCI.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages