Skip to content

Add Blueprints to the multi-resource examples - #36

Merged
R4ph-t merged 3 commits into
mainfrom
rt/example-blueprints
Dec 1, 2026
Merged

R4ph-t merged 3 commits into
mainfrom
rt/example-blueprints

Conversation

@R4ph-t

@R4ph-t R4ph-t commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Adds a render.yaml Blueprint to the four examples that need more than one resource:

    Example Creates User enters
    webhook-processing workflow, receiver web service (Starter), free Postgres RENDER_API_KEY
    web-service-api workflow, API web service (free) RENDER_API_KEY
    postgres-backfill workflow, free Postgres nothing
    idempotent-side-effects workflow, free Postgres OPENAI_API_KEY
  • Each Blueprint puts its resources in a project named after the example (for example web-service-api-py), in a development environment.

  • Wires DATABASE_URL with fromDatabase and WORKFLOW_SLUG with fromService (property: slug). webhook-processing generates GITHUB_WEBHOOK_SECRET, and the README says where to copy it from.

  • Replaces the manual Dashboard steps in each README and template.yaml with Blueprint deploy steps (CLI and Dashboard).

  • The three examples with Postgres note that a workspace can have one free database and that it expires after 30 days, with a link to free Postgres limits.

Motivation

These examples need two or three resources wired together, which took a long list of manual Dashboard steps. A Blueprint creates them in one go.

This follows the pattern from the ai-chat-turns Blueprint PR (#35): render.yaml lives in the example folder, has no repo: line so forks and render workflows init projects deploy from their own repo, and service names carry a language suffix so both languages can share a workspace. render workflows init copies render.yaml into new projects, so the README and template tell users to remove rootDir when the project is at the repo root.

Test plan

  • render blueprints validate <example>/render.yaml -o json returns valid: true for all four.
  • Deployed web-service-api from this branch to a test workspace, once without projects (Python) and once with projects (TS), without a RENDER_API_KEY:
    • WORKFLOW_SLUG on the API resolved to the workflow's slug (web-service-api-py).
    • The workflow and the API landed in the project's environment (named production at the time; renamed to development since).
    • Both workflows built and went live. Both APIs failed at startup because RENDER_API_KEY was missing, as expected.
    • All test resources were deleted afterwards.
  • Not deployed: webhook-processing, postgres-backfill, idempotent-side-effects.

Adds a render.yaml to webhook-processing, web-service-api,
postgres-backfill, and idempotent-side-effects, and replaces the manual
Dashboard steps in each README and template.yaml with Blueprint deploy
steps.
@R4ph-t
R4ph-t requested a review from a team December 1, 2026 09:21
@R4ph-t
R4ph-t temporarily deployed to rt/example-blueprints - web-service-api-py-api-8kdr December 1, 2026 10:13 — with Render Inactive
Wraps each render.yaml in a project with a production environment, so
the example's resources are grouped together in the Dashboard.
The examples are for trying out, and three of them use a free database
that expires after 30 days, so production was the wrong label.
@R4ph-t
R4ph-t merged commit 4b0de55 into main Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant