infra.new logo

GCP Pub/Sub with Cloud Run Subscriber

Build an event-driven system with Pub/Sub messaging and Cloud Run subscribers

Blueprint Steps

Expand the steps below to customize

1

Terraform Module

Module Name
Module Source
Public Registry
Custom Module
Requirements
Pub/Sub Topic with DLQ Module
Custom Module
4 requirements
2

Terraform Module

Module Name
Module Source
Public Registry
Custom Module
Requirements
Cloud Run Subscriber Module
Custom Module
4 requirements
3

Terraform Environment

Environment Name
Scale
GCP Project ID GCP project ID not configured
Region
State Backend
State BucketState Prefix
Requirements
Event Processing System
small scale
gcs backend
GCP project ID not configured
4

GitHub Actions

Workflow Name
Workflow Steps
Event Processing CI/CD Pipeline
.github/workflows/deploy-event-processor.yml
6 steps
GCP project ID not configuredPlaceholder values will be used
Attach Source Code (Optional)

Blueprint Overview

Cost
$10-30/month
Setup Time
2-3 minutes
Technologies
Pub/Sub
Cloud Run
IAM
Cloud Monitoring
Terraform
What You'll Build

This blueprint creates a scalable event-driven architecture using Google Cloud Pub/Sub for message queuing and Cloud Run for serverless message processing. Includes topic and subscription configuration, dead letter topic for failed messages, Cloud Run service with Pub/Sub push subscription, automatic scaling, and proper IAM permissions. Perfect for asynchronous processing, event streaming, and decoupled microservices.