clerk / clerk/clerk-sdk-python

Terraform provider via Speakeasy (same OpenAPI spec pipeline)

Open
#219 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
186
Forks
47
Avg merge
18h 43m
Merged PRs (30d)
1

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with .speakeasy/gen.yaml and the linked Speakeasy Terraform documentation to determine how a Terraform provider target would fit the existing OpenAPI generation pipeline. Done would mean the provider can be generated from the same spec, but the issue does not identify implementation files, tests, or a concrete resource scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi, python, terraform
Domain
infrastructure
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.