IaC Bazaar
Google CloudPlan-validated

Cloud Run Service

Cloud Run v2 service with autoscaling, secret and VPC egress wiring, custom domain and invoker IAM done right.

terraformGCP#gcp

Compare Serverless Containers across clouds →

gcp-cloud-run-serviceterraform v1.7

Verification

Plan-validated

Passed: module logic verified on a mocked plan — inputs, validation rules, conditional creation and outputs resolve (no real provider, no cloud).

Conformance

  • Static validation (fmt · validate · tflint)
  • Security scan clean (Checkov)
  • Plan tests (mocked: validation rules · outputs)

Provenance

  • SHA-256 checksum
  • Signature (pending)

Functional

  • Live test pending (no cloud run yet)

Last verified 2026-06-28 · how we verify

Documentation

gcp-cloud-run-service

Cloud Run v2 service with autoscaling, secret and VPC egress wiring, custom domain and invoker IAM done right. One module call gives you a production revision template: a dedicated runtime service account, Secret Manager env vars/volumes with least-privilege accessor grants wired automatically, direct VPC egress or connector support, a cost-capping max-instance default, and a domain mapping whose DNS records come back as an output. Works with Terraform and OpenTofu (>= 1.6), Google provider >= 7.0, < 8.0.

Secure defaults:

  • Dedicated runtime service account (never the default compute SA)
  • Private by default: no invoker IAM unless you list members; allUsers only via the explicit allow_unauthenticated = true opt-in
  • Secret access granted per referenced secret, not project-wide
  • max_instances = 10 cost cap, gen2 execution environment, startup CPU boost
  • deletion_protection = true

Requirements

RequirementVersion
Terraform / OpenTofu>= 1.6
hashicorp/google>= 7.0, < 8.0

Verification

Static-validated (fmt, validate, tflint). Live apply/destroy testing pending cloud sandbox availability — see catalog status.

License

Commercial — IaC Bazaar EULA. © IaC Bazaar. Original work (not derived from a third-party module).

Usage code & full reference unlock after purchase

The complete copy-paste usage, the full input/output reference, and operational notes ship with your licence — shown here and bundled in the download.

  • Usage
  • Inputs
  • Outputs