An open API service indexing awesome lists of open source software.

https://github.com/pacovk/terraform-cloud-run

Full CI/CD for GCP Cloud Run with Terraform
https://github.com/pacovk/terraform-cloud-run

Last synced: 6 months ago
JSON representation

Full CI/CD for GCP Cloud Run with Terraform

Awesome Lists containing this project

README

          

# README #

### Overview ###

This repo is a sample for this [post](https://pascal-euhus.medium.com/ci-cd-for-cloud-run-with-terraform-f0a359d7f052) about how to setup Terraform Cloud and GCP Cloud Run and the CI/CD integration.

### Requirements ###

This repo uses Terraform cloud, hence you must setup a workspace described [here](https://pascal-euhus.medium.com/ci-cd-for-cloud-run-with-terraform-f0a359d7f052)
Example for CI/CD integration with GitHub Actions under `.github/workflows/build.yml`

### Terraform - Google Cloud ###

#### Create ####

```
cd gcp
terraform init
terraform apply
```

##### Output #####
Terraform will output a `api_url` to access the deployed webservice.

#### Remove ####

```
cd gcp
terraform destroy
```
:warning: the registry backup storage won't be deleted, you'll need to delete it manually