Generate Terraform Provider

🌐Community
by speakeasy-api · vlatest · Repository

Helps with API, code generation, Terraform as part of deploying and managing cloud infrastructure workflows.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add speakeasy-api-generate-terraform-provider npx -- -y @trustedskills/speakeasy-api-generate-terraform-provider
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "speakeasy-api-generate-terraform-provider": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/speakeasy-api-generate-terraform-provider"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill generates Terraform provider code based on a given API specification. It automates the creation of boilerplate and initial configuration, significantly reducing the time required to build custom Terraform providers for interacting with APIs. The generated code includes resource schemas, data source definitions, and basic authentication handling.

When to use it

  • You need to manage infrastructure related to an API using Terraform but don't want to write a provider from scratch.
  • Your team is adopting Infrastructure as Code (IaC) practices and needs to automate the creation of Terraform providers for your APIs.
  • You are building a new API and want to provide Terraform support for it early in the development lifecycle.
  • You have an existing API that you want to integrate with Terraform for easier management.

Key capabilities

  • Generates Terraform provider code from API specifications.
  • Includes resource schemas based on API definitions.
  • Provides data source definitions for retrieving information.
  • Supports basic authentication handling.

Example prompts

  • "Generate a Terraform provider for the Stripe API."
  • "Create a Terraform provider for my internal payment processing API, using OpenAPI specification [link to spec]."
  • “Build a terraform provider with resource schema and data source definitions from this JSON file: [file content]"

Tips & gotchas

  • The quality of the generated code depends heavily on the accuracy and completeness of the input API specification. Ensure your API definition is well-formed.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
speakeasy-api
Installs
3

🌐 Community

Passed automated security scans.