diff --git a/terraform/modules/fourkeys-cloud-build-parser/README.md b/terraform/modules/fourkeys-cloud-build-parser/README.md index 47c58574..216ce62d 100644 --- a/terraform/modules/fourkeys-cloud-build-parser/README.md +++ b/terraform/modules/fourkeys-cloud-build-parser/README.md @@ -1,3 +1,8 @@ +This module creates the pubsub topic and parser for Cloud Build. The name of the pubsub topic is important! + +Cloud Build is designed so that if a topic exists named `cloud-builds`, build events are automatically written to it. But that topic is not created by default, [it has to be deliberately created](https://cloud.google.com/build/docs/subscribe-build-notifications#receiving_build_notifications). + + ## Requirements diff --git a/terraform/modules/fourkeys-cloud-build-parser/main.tf b/terraform/modules/fourkeys-cloud-build-parser/main.tf index 36f68f37..eb91303d 100644 --- a/terraform/modules/fourkeys-cloud-build-parser/main.tf +++ b/terraform/modules/fourkeys-cloud-build-parser/main.tf @@ -46,7 +46,7 @@ resource "google_cloud_run_service" "cloudbuild_parser" { resource "google_pubsub_topic" "cloudbuild" { project = var.project_id - name = "cloudbuild" + name = "cloud-builds" } resource "google_pubsub_topic_iam_member" "service_account_editor" {