/idp-skills:complete-idp-deployment-on-gcp-from-scratchfrom idp-skills
Sequences a complete Internal Developer Platform deployment on GCP from scratch: landing zone, GKE cluster, Helm-deployed Backstage with Cloud SQL PostgreSQL, golden-path templates, self-service provisioning, and scorecards.
Ships in idp-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A GCP-hosted Internal Developer Platform touches a folder/project hierarchy, a GKE cluster, a Backstage instance, a managed Postgres catalog database, a scaffolding template, a provisioning API, and a scorecard model — each already covered by its own skill in this repo. What isn't covered elsewhere is the order these phases must happen in on GCP specifically, and the handoffs between them: which project hosts platform tooling, how the GKE cluster's Workload Identity Federation pool is carried into both the Backstage backend and the self-service provisioning layer, and where teams get stuck wiring these together for the first time. This skill is that integration runbook, not a restatement of Organization Policy, GKE, or Backstage mechanics.
gcloud/Deployment Manager scripts and a manually
maintained service inventory into a Backstage-based platform.gcloud commands.kubectl, helm ≥ 3.8, and gcloud container clusters access for
cluster provisioning.fldr-platform folder or shares a project
with early workloads — dedicated is assumed below.Phase 1 — GCP landing zone. Design the Resource Manager folder
hierarchy (an fldr-platform folder alongside fldr-workloads and
fldr-sandbox), apply Organization Policy constraints at the folder level,
and vend the platform-tooling project and a first tenant project through a
project factory rather than manual gcloud projects create, per
gcp-landing-zone-setup.
Validate with that skill's canary-project step before continuing — a
GKE cluster built in a project whose Organization Policy or VPC Service
Controls perimeter changes later forces avoidable rework in Phase 2 and
Phase 3.
Phase 2 — GKE cluster with Workload Identity Federation. Provision
the platform project's GKE cluster with a pinned Kubernetes version, node
pools sized for Backstage's steady backend load, and Workload Identity
Federation enabled on the cluster before any workload is deployed. Record
the cluster's workload identity pool
(<PROJECT_ID>.svc.id.goog) — Phase 3 and Phase 6 both bind Kubernetes
ServiceAccounts to Google service accounts against this pool. See
managed-kubernetes-eks-aks-gke
for GKE provisioning, node pool design, and the Workload Identity
Federation walkthrough specifically.
Phase 3 — Backstage on GKE, backed by Cloud SQL for PostgreSQL.
Package Backstage as a Helm chart and deploy it against a Cloud SQL for
PostgreSQL instance (regional/HA beyond a pilot) as the catalog database,
connecting via the Cloud SQL Auth Proxy sidecar rather than a public IP
and static password. The Backstage backend's Kubernetes ServiceAccount is
bound (via Workload Identity Federation from Phase 2) to a Google service
account holding only cloudsql.client and secretmanager.secretAccessor
on the specific catalog-DB secret. Chart packaging follows
helm-chart-authoring;
custom backend/frontend logic follows
backstage-plugin-development.
Phase 4 — Golden-path template design. Author the first golden-path
template producing a Dockerfile, a CI workflow (GitHub Actions or Cloud
Build), catalog registration, and — GCP-specific — a scaffolded
ServiceAccount manifest with the
iam.gke.io/gcp-service-account annotation pre-filled for the service's
own Google service account. Tier by complexity. See
golden-path-template-design-for-developer-platforms.
Phase 5 — Validate the golden path end-to-end. Run the Phase 4 template through a pipeline that scaffolds a real instance, builds, deploys to an ephemeral GKE namespace, smoke-tests, and tears everything down on both success and failure, before publishing it as the org default. See golden-path-template-validation-and-testing.
Phase 6 — Self-service API wired to GCP provisioning. Build the
Scaffolder custom actions that let a developer request a Cloud SQL
instance or a new Workload Identity Federation binding through the
catalog. Model the request as an explicit state machine, gate
production-tier Cloud SQL machine types and any IAM binding broader than
namespace-scoped behind human approval, and keep policy/budget rules
external. The GCP-specific provisioning call — creating the Cloud SQL
instance via the Cloud SQL Admin API or a Config Connector SQLInstance
custom resource, and binding
roles/iam.workloadIdentityUser on the target Google service account
scoped to exactly
serviceAccount:<PROJECT_ID>.svc.id.goog[<namespace>/<ksa-name>] — is
unique to this phase; teams already using Crossplane elsewhere may prefer
its Kubernetes-native Claim model for this instead of a bespoke API call,
per
crossplane-kubernetes-native-provisioning.
The approval-gate pattern itself is generic; see
platform-self-service-api-and-workflow-design.
Phase 7 — Scorecards. Define checks including GCP-specific ones: is the service's identity Workload-Identity-Federation-bound rather than a downloaded service account key anywhere, does the Cloud SQL instance have automated backups and (production tier) regional HA enabled, is the project labeled per the Phase 1 labeling policy. See service-scorecards-and-maturity-model-design.
Phase 8 — Multi-tenancy. If more than one team shares the Phase 2 cluster, decide namespace-per-team vs. project-per-team (GCP's project factory from Phase 1 makes project-per-team cheap to vend, so weigh it seriously alongside a shared-cluster model), scope each Workload Identity Federation binding to its namespace/ServiceAccount, and enforce ResourceQuotas before onboarding a second team. See multi-tenancy-and-team-workspace-design-for-idp.
Phase 9 — Rollout, operating model, and measurement. Sequence adoption starting from a pilot team with genuine current pain, run the platform team per the "thinnest viable platform" discipline, and measure with SPACE/DX Core 4 metrics. See idp-adoption-rollout-and-change-management-strategy, platform-engineering-team-topology-and-operating-model, and developer-experience-measurement-and-platform-adoption.
Symptom: The Phase 6 self-service action fails every real request
with a PERMISSION_DENIED on iam.serviceAccounts.getAccessToken,
despite working in testing.
Fix: This is a Phase 2/Phase 6 sequencing gap — the
roles/iam.workloadIdentityUser binding's member string was written
against a namespace/ServiceAccount name Phase 4's template scaffolds
differently in practice (e.g., an environment suffix the binding didn't
anticipate). Re-derive the exact
serviceAccount:<PROJECT_ID>.svc.id.goog[<namespace>/<ksa-name>] string
from the actual scaffolded manifest.
Symptom: Backstage's catalog shows connection errors during a Cloud SQL maintenance window, even though the instance is configured for regional (HA) availability. Fix: The Backstage backend and the Cloud SQL Auth Proxy sidecar lack retry/reconnect logic tolerant of the brief failover gap regional HA still has; this is a Phase 3 gap invisible until a real maintenance event. Add connection retry with backoff and confirm the sidecar reconnects automatically.
Symptom: Phase 7's scorecard shows most early services failing the "Workload Identity Federation, not a downloaded key" check, despite the platform mandating it from the start. Fix: Phase 4's template was published and used before Phase 2's Workload Identity Federation setup was actually finished, so early services scaffolded from an older revision with a downloaded-key fallback. Re-validate the current template (Phase 5), then batch-remediate already-scaffolded services.
Symptom: Someone runs gcloud projects delete on what looks like an
unused sandbox project, and it turns out to be the Phase 3 platform
project holding the Cloud SQL catalog instance.
Fix: This is destructive; GCP gives a 30-day recovery window for
project deletion but Cloud SQL instances inside can still be
unrecoverable depending on backup configuration. Never treat project
deletion as routine cleanup once a phase's production resources live in
it; confirm the project's resource inventory first, and prefer
disabling billing or removing specific resources over a blanket project
delete for anything under active platform use.
Symptom: A production-tier Cloud SQL instance is discovered
provisioned with no approval record.
Fix: The Phase 6 approval gate was enforced only in the Scaffolder
UI's form, not on the server-side approval endpoint. Require the same
policy check and requestedBy != approver guard on every code path
reaching the provisioning state.
Scenario: "Helios Media" has a GCP organization with an existing folder hierarchy but no platform tooling. The platform team builds an IDP over one quarter.
fldr-platform folder is added alongside
fldr-workloads and fldr-sandbox; a project factory vends
helios-platform-tools and helios-streaming-dev (first tenant), with
an Organization Policy constraint requiring a team label on all
resources.helios-platform-tools gets a GKE cluster
platform-gke-us-central1, with Workload Identity Federation enabled
against pool helios-platform-tools.svc.id.goog.charts/backstage-helios,
deployed against Cloud SQL instance helios-backstage-catalog
(regional, db-custom-2-8192), connected via the Cloud SQL Auth Proxy
sidecar, with the backend's ServiceAccount backstage-backend bound to
Google service account [email protected].ServiceAccount manifest annotated
iam.gke.io/gcp-service-account: ${service-name}@helios-platform-tools.iam.gserviceaccount.com.test-svc-001, builds,
deploys to an ephemeral-validation namespace, curls /healthz, and
tears down — required before the template is marked default.custom:gcp:provisionCloudSql checks
an OPA policy (auto-approve db-f1-micro/dev, require approval
otherwise), and on approval creates the instance via the Cloud SQL
Admin API using a Google service account scoped to the requesting
team's project.streaming-platform is recruited as the pilot team
(highest infra-ticket volume last quarter); after two sprints their
Cloud SQL provisioning turnaround drops from a multi-day ticket to a
same-day auto-approved or next-business-day approved request, and that
result is published before the template goes org-wide.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin idp-skills20 skills in this plugin
/backstage-plugin-developmentGuides authoring a custom Backstage plugin — scaffolding a frontend or backend plugin package with `yarn new`, wiring a frontend API client via `createApiRef`, building a backend plugin on the new backend system (`createBackendPlugin`), and registering either into the app's routes or an entity page tab. Use when a user asks to "write a custom Backstage plugin," "add a backend plugin to Backstage," "build a Backstage frontend component that talks to a new API," or "create a Backstage plugin that surfaces X" — this goes beyond catalog/TechDocs/template configuration.
/complete-idp-deployment-on-aws-from-scratchSequences a complete, from-scratch Internal Developer Platform deployment on AWS: landing zone → EKS cluster → Helm-deployed Backstage backed by RDS PostgreSQL → golden-path scaffolding template → self-service API wired to AWS provisioning (IRSA roles, RDS instances) → scorecards. This is the integration runbook that orders the individual AWS/EKS/Backstage skills correctly and flags the handoffs between them. Use when a user asks to "deploy an IDP on AWS from scratch," "stand up Backstage on EKS end-to-end," "build our internal developer platform on AWS," "wire self-service database/IAM provisioning into Backstage on AWS," or "sequence an AWS platform rollout from account creation to golden-path templates."
Other plugins' skills for the same job