Cloud Run Service
Cloud Run v2 service with autoscaling, secret and VPC egress wiring, custom domain and invoker IAM done right.
Verification
Plan-validatedPassed: 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;
allUsersonly via the explicitallow_unauthenticated = trueopt-in - Secret access granted per referenced secret, not project-wide
max_instances = 10cost cap, gen2 execution environment, startup CPU boostdeletion_protection = true
Requirements
| Requirement | Version |
|---|---|
| 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