Add GCP Cloud Run support with managed services orchestration#9
Draft
Copilot wants to merge 3 commits intocopilot/add-cloud-resource-provisioningfrom
Draft
Add GCP Cloud Run support with managed services orchestration#9Copilot wants to merge 3 commits intocopilot/add-cloud-resource-provisioningfrom
Copilot wants to merge 3 commits intocopilot/add-cloud-resource-provisioningfrom
Conversation
Co-authored-by: Karthik777 <7102951+Karthik777@users.noreply.github.com>
Co-authored-by: Karthik777 <7102951+Karthik777@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add Google Cloud Platform compute support to fastops
Add GCP Cloud Run support with managed services orchestration
Feb 25, 2026
This was referenced Feb 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Google Cloud Platform compute via Cloud Run (serverless containers), mirroring the existing Azure and AWS implementations.
Implementation
fastops/gcp.py- New CLI wrapper and orchestratorGcp(Cli)class withgcloudsingleton followingAz/Awspatterncallgcloud()helper appends--format=jsonfor structured outputgcp_stack()orchestrates Cloud Run + optional Cloud SQL (PostgreSQL) and Memorystore (Redis)DATABASE_URLandREDIS_URLenvironment variablesfastops/ship.py- GCP deployment integration**kwto function signature for extensibilityto='gcp'branch with lazy import andkw.get()parameter patternfastops/teardown.py- Resource cleanup utilitiesdestroy_cloud_run(),destroy_cloud_sql(),destroy_memorystore()teardown_gcp()orchestrator for full application cleanupUsage
Cloud Run defaults: serverless scaling (0-10 instances), 512Mi memory, 1 CPU, public ingress.
Original prompt
Overview
fastops currently has compute support for Docker (local), Hetzner VPS, Azure (
azure_stack()), and AWS (aws_stack()), but no GCP compute. This PR addsfastops/gcp.pywith agcloudCLI wrapper andgcp_stack()orchestrator, plusship(to='gcp')support.Branch off
copilot/add-cloud-resource-provisioning.File 1:
fastops/gcp.pyModule docstring
"""Google Cloud Platform CLI wrapper and opinionated resource builders."""__all__['Gcp', 'gcloud', 'gcp_stack']Imports
Class:
Gcp(Cli)Follow the exact same pattern as
Azinazure.pyandAwsinaws.py. TheClibase class (fromcore.py) uses__getattr__to dispatch subcommands.Create a module-level singleton:
gcloud = Gcp()Helper:
callgcloud(*args)Function:
gcp_stack(name, *, image=None, port=8080, region='us-central1', project=None, postgres=False, redis=False, domain=None, min_instances=0, max_instances=10, memory='512Mi', cpu='1', env=None, service_account=None)High-level GCP orchestrator using Cloud Run (serverless containers — the GCP equivalent of Azure Container Instances / AWS ECS Fargate).