Skip to content

Latest commit

 

History

History
65 lines (42 loc) · 2.57 KB

File metadata and controls

65 lines (42 loc) · 2.57 KB

Multi Region Cloud Run Terraform

Build Status

This repository contains the partner codebase for Rob Charlwood's Medium tutorial - "Multi Region Load Balancing with GO and Google Cloud Run - Part 2".

Checkout and setup

To work with this codebase, you will require the below to be setup and configured on your machine.

  • terraform at version 0.13.2

To set this codebase up on your machine, you can run the following commands:

git clone [email protected]:robcharlwood/multi-region-cloud-run-terraform.git
cd multi-region-cloud-run-terraform

Next up, You'll need your terraform service account key from part 1 of the tutorial placed into a .keys directory in the root of this checked out repo.

Then you need to update the terraform.tfvars with details applicable to your project e.g

project       = "multi-region-cloud-run"
region        = "europe-west1"
image_name    = "multi-region-cloud-run"
image_version = "0.0.1"
registry      = "eu.gcr.io"
domain        = "example.com"

Running the terraform

Once all setup above is completed, you can run in the terraform with the below commands to provision all the required infrastructure.

terraform init
terraform plan
terraform apply

For those interested

For people with a curious nature, the main meat of the infrastructure that makes multi region load balancing possible lies here.

Continuous Integration

This project uses Travis CI for continuous integration. This platform runs the project tests automatically when a PR is raised or merged.

Versioning

This project uses git for versioning. For the available versions, see the tags on this repository.

Authors

  • Rob Charlwood - Bitniftee Limited

Changes

Please see the CHANGELOG.md file additions, changes, deletions and fixes between each version.

License

This project is licensed under the CC0-1.0 License - please see the LICENSE.md file for details.