Skip to content

Terraform provider via Speakeasy (same OpenAPI spec pipeline) #219

@anthonyangel

Description

@anthonyangel

Summary

Clerk already uses Speakeasy to generate this Python SDK from an OpenAPI spec. Speakeasy also supports generating a Terraform provider as an output target from the same spec — meaning much of the scaffolding for a Clerk Terraform provider is already in place.

This would let teams manage Clerk configuration (applications, organizations, roles, permissions, etc.) as infrastructure-as-code alongside the rest of their stack.

Context

Since clerk-sdk-python is already generated via Speakeasy from an OpenAPI spec (see .speakeasy/gen.yaml), adding a Terraform provider target to the same pipeline would be a relatively low-lift way to deliver on the roadmap item — no need to hand-author provider resources or maintain a separate API client.

What we'd use it for

We're building an IaC engine for Clerk (roles, permissions, organization settings) and currently drive it through the Python SDK. A Terraform/Pulumi provider would let us (and others) manage Clerk declaratively with proper state tracking, drift detection, and plan/apply workflows — the same way we manage GCP, Datadog, and other services.

Ask

Would the Clerk team consider adding a Terraform provider output to the existing Speakeasy generation pipeline? Happy to help test or contribute if there's interest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions