gcp-deployment-preflight

Validate GCP infrastructure templates and clean stale deployment state before deploy.

1|Updated Jun 24, 2026
One-click install
npx skills add https://github.com/eric-sabe/engsys --skill gcp-deployment-preflight
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gcp-deployment-preflight
Source: https://github.com/eric-sabe/engsys/tree/main/stacks/cloud/gcp/skills/gcp-deployment-preflight
Command: npx skills add https://github.com/eric-sabe/engsys --skill gcp-deployment-preflight

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

GCP infrastructure deployments frequently fail late in CI pipelines due to uncaught issues like invalid IaC templates, stale failed deployments, globally unique naming conflicts, or exhausted resource quotas, wasting engineering time and delaying release cycles.

Core Features & Use Cases

  • Multi-IaC Validation: Validates Terraform, gcloud Deployment Manager, and Config Connector GCP infrastructure templates locally before deploy.
  • Stale Resource Cleanup: Cleans up failed deployments and stuck resources left by prior incomplete deploys to unblock new deployment attempts.
  • Pre-Deploy Safety Checks: Catches globally unique naming conflicts for GCS buckets, project IDs, and Artifact Registry repos, verifies quota and capacity limits, and checks for in-flight CI deploys to avoid race conditions.
  • Use Case: An engineer preparing a Terraform-based GCP infrastructure update can run this preflight check to catch a planned Cloud SQL instance replacement and a missing enabled API before pushing, avoiding a failed CI deploy and hours of troubleshooting.

Quick Start

Invoke the gcp-deployment-preflight skill to run a complete preflight validation of your GCP infrastructure deployment, clean up any stale failed resources, check for naming conflicts and quota limits, and confirm it is safe to deploy.

Frequently Asked Questions about gcp-deployment-preflight

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent GCP deployment failures in my CI pipeline?

Prevent GCP deployment failures by running preflight checks to validate IaC templates, clear stale resources, and verify quotas locally before triggering CI, catching configuration and state issues early.

Why does my Terraform deployment fail late in the CI pipeline?

Terraform deployments fail late in CI due to uncaught issues like invalid templates, stale failed deployments, naming conflicts, or exhausted quotas; preflight validation catches these configuration and state errors locally before pushing.

Can I validate GCP infrastructure templates locally before deploying?

Validate GCP infrastructure templates locally before deploying by running preflight checks that support Terraform, gcloud Deployment Manager, and Config Connector formats to confirm configurations are safe.

How do I clean up stale failed deployments and stuck resources in GCP?

Clean up stale failed deployments and stuck resources in GCP by running preflight checks that clear prior incomplete deployment states, unblocking new deployment attempts before executing infrastructure updates.

Does preflight validation work with gcloud Deployment Manager and Cloud Run?

Preflight validation works with gcloud Deployment Manager and Cloud Run service deploys, applying to all GCP infrastructure deployment workflows including Terraform and Config Connector template validation.

What causes globally unique naming conflicts during GCP infrastructure updates?

Globally unique naming conflicts during GCP infrastructure updates occur when GCS buckets, project IDs, or Artifact Registry repos clash; preflight safety checks identify these conflicts before deployment attempts.