Define a Crossplane Composition with a pipeline function to provision an RDS instance plus a SecretsManager secret and expose connection details as a composite resource claim

domain: Crossplane · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Define a CompositeResourceDefinition (XRD) with a spec.versions entry that declares the composite resource schema including database engine, instance class, and a connectionSecretToRef field for the output secret
  2. Create a Composition that references the XRD and specifies mode: Pipeline in the spec; add a pipeline step that uses the function-patch-and-transform function to map composite resource fields to the managed resource fields of an RDS DBInstance
  3. Add a second pipeline step that uses a function to create an AWS SecretsManager Secret managed resource; use a patch to copy the RDS endpoint output from the DBInstance status into the Secret's stringData via a from-field-path patch
  4. Configure the Composition's writeConnectionSecretsToNamespace to extract the RDS username, password, and endpoint from the managed resource's status.atProvider and write them as a Kubernetes Secret in the claim namespace
  5. Add a readinessCheck block on the DBInstance managed resource that waits for status.atProvider.dbInstanceStatus to equal available before the composite resource reports Ready=True
  6. Use a usage resource or Composition-level dependencies to prevent deletion of the RDS instance while the Secret resource still exists, enforcing teardown order

Known gotchas

Related routes

Define a Crossplane Composition and CompositeResourceDefinition (v1) to provision an RDS database
docs.crossplane.io · 6 steps · unrated
Compose an RDS managed resource and expose it via a Crossplane claim
docs.crossplane.io · 6 steps · unrated
Build a Crossplane CompositeResourceDefinition (XRD) with schema validation and a matching Composition that provisions a managed database with a connection secret claim
crossplane.io · 5 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans