GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - hckhanh/pulumi-any-terraform: Porting of some Terraform providers to Pulumi

BranchesTags
Open more actions menu

Latest commit

 

History

1,179 Commits
1,179 Commits

Folders and files

NameName
Last commit message
Last commit date
.agents/skills
.agents/skills
 
 
.changeset
.changeset
 
 
.claude
.claude
 
 
.codegraph
.codegraph
 
 
.cursor
.cursor
 
 
.github
.github
 
 
.junie
.junie
 
 
.vscode
.vscode
 
 
docs/images
docs/images
 
 
packages
packages
 
 
tools
tools
 
 
.gitignore
.gitignore
 
 
.oxfmtrc.json
.oxfmtrc.json
 
 
.prototools
.prototools
 
 
.syncpackrc.json
.syncpackrc.json
 
 
AGENTS.md
AGENTS.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
README.md
README.md
 
 
context7.json
context7.json
 
 
mise.toml
mise.toml
 
 
nx.json
nx.json
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
pnpm-workspace.yaml
pnpm-workspace.yaml
 
 
project.json
project.json
 
 
renovate.json
renovate.json
 
 
skills-lock.json
skills-lock.json
 
 
tsconfig.json
tsconfig.json
 
 
zizmor.yml
zizmor.yml
 
 

Repository files navigation

Pulumi Any Terraform

Pulumi Any Terraform

Use any Terraform provider with Pulumi
Full type safety โ€ข Multi-language support โ€ข Seamless integration

A collection of dynamically bridged Pulumi providers that enable you to use any Terraform provider within the Pulumi ecosystem. This repository provides seamless integration between Terraform providers and Pulumi, allowing you to leverage the extensive Terraform provider ecosystem while enjoying Pulumi's modern infrastructure-as-code experience.

autofix enabled License: MIT npm

๐Ÿš€ Features

  • ๐Ÿ”„ Full Terraform Compatibility - Use any Terraform provider with Pulumi
  • ๐Ÿ“˜ Complete Type Safety - Full TypeScript definitions with IntelliSense
  • ๐ŸŒ Multi-Language Support - TypeScript, JavaScript, Python, Go, and C# (planned)
  • โšก Dynamic Updates - Auto-sync with upstream Terraform providers
  • ๐ŸŽฏ Native Pulumi Experience - Full integration with Pulumi's ecosystem
  • ๐Ÿ”’ Secure by Design - Pulumi secrets management and state encryption
  • ๐Ÿ“ฆ Production Ready - Battle-tested bridge technology

๐Ÿ“ฆ Available Providers

Provider Package Description
Better Uptime pulumi-better-uptime Monitoring and incident management
Bunnynet pulumi-bunnynet CDN and edge computing
Infisical pulumi-infisical Secrets management
Logtail pulumi-logtail Log management and analytics
Namecheap pulumi-namecheap Domain and DNS management
Portainer pulumi-portainer Container management
PostHog pulumi-posthog Product analytics and feature flags
TeamCity pulumi-teamcity CI/CD platform
Time pulumi-time Time-based resources

โšก Quick Start

Installation

Each package can be installed independently:

npm install pulumi-namecheap
# or
yarn add pulumi-namecheap
# or
pnpm add pulumi-namecheap

Basic Usage

import * as pulumi from '@pulumi/pulumi'
import * as namecheap from 'pulumi-namecheap'

// Configure provider (or use environment variables)
const config = new pulumi.Config('namecheap')

// Create a DNS record
const record = new namecheap.Record('www-record', {
  domain: 'example.com',
  hostname: 'www',
  type: 'A',
  address: '192.168.1.1',
  ttl: 300,
})

// Export the record ID
export const recordId = record.id

Deploy

pulumi preview  # Preview changes
pulumi up       # Deploy infrastructure

๐Ÿ“š Documentation

https://docs.khanh.id/pulumi-any-terraform

  • Better Uptime
  • Buildkite
  • Bunny
  • Infisical
  • Logtail
  • Namecheap
  • OpenFGA
  • Portainer
  • PostHog
  • TeamCity
  • Local
  • Time

๐Ÿ—๏ธ Architecture

This project uses Pulumi's Terraform Bridge to automatically convert Terraform providers into native Pulumi providers:

Terraform Provider โ†’ Bridge โ†’ Pulumi Package โ†’ Your Infrastructure Code

Key components:

  • Nx Monorepo - Efficient build orchestration
  • TypeScript - Full type safety and IntelliSense
  • Automated CI/CD - GitHub Actions with automated testing and publishing
  • Changesets - Semantic versioning and release management

๐Ÿ› ๏ธ Development

Prerequisites

  • Node.js 22.18.0 or later
  • pnpm 10.14.0 or later
  • Pulumi CLI 3.190.0 or later

Setup

  1. Clone and install:

    git clone https://github.com/hckhanh/pulumi-any-terraform.git
    cd pulumi-any-terraform
    pnpm install
  2. Verify setup:

    pnpm run syncpack:check
    pnpm nx run-many -t check

Common Tasks

# Install dependencies
pnpm install

# Check code quality
pnpm nx run-many -t check

# Fix formatting and linting
pnpm nx run-many -t fix

# Build all packages
pnpm nx run-many -t build

# Sync dependency versions
pnpm run syncpack:fix

# Format all code
pnpm nx run root:oxfmt:write

Adding a New Provider

  1. Create package directory structure
  2. Configure package.json with proper metadata
  3. Set up parameterization for Terraform provider
  4. Write comprehensive documentation
  5. Submit pull request

See the documentation for each provider.

Project Structure

pulumi-any-terraform/
โ”œโ”€โ”€ packages/              # Provider packages
โ”‚   โ”œโ”€โ”€ better-uptime/    # Individual providers
โ”‚   โ”œโ”€โ”€ bunnynet/
โ”‚   โ”œโ”€โ”€ infisical/
โ”‚   โ”œโ”€โ”€ logtail/
โ”‚   โ”œโ”€โ”€ namecheap/
โ”‚   โ”œโ”€โ”€ portainer/
โ”‚   โ”œโ”€โ”€ teamcity/
โ”‚   โ””โ”€โ”€ time/
โ”œโ”€โ”€ tools/                 # Build system plugins
โ”‚   โ”œโ”€โ”€ build.ts
โ”‚   โ”œโ”€โ”€ linter.ts
โ”‚   โ””โ”€โ”€ oxfmt.ts
โ”œโ”€โ”€ .github/              # CI/CD workflows
โ”œโ”€โ”€ nx.json               # Nx configuration
โ””โ”€โ”€ pnpm-workspace.yaml   # Workspace config

CI/CD Pipeline

Automated workflows handle:

  • Testing: Linting, type checking, and builds
  • Auto-fixing: Oxfmt and Biome fixes
  • Dependency Updates: Automated PRs for updates
  • Publishing: Automatic releases to NPM
  • Security: Dependency vulnerability auditing and package release-age checks

๐Ÿค Contributing

We welcome contributions! Here's how you can help:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test thoroughly
  5. Submit a pull request

Provider reference is in the documentation. The pull request should cover:

  • Code standards
  • Development workflow
  • Adding new providers
  • Testing requirements
  • Release process

๐Ÿ› Troubleshooting

Common issues and solutions:

  • Installation fails: Clear cache and retry
  • Type errors: Update @pulumi/pulumi version
  • Authentication errors: Check credentials and environment variables
  • Build failures: Clear Nx cache with pnpm nx reset

See the documentation for provider configuration.

๐Ÿ”— External Connections

This project integrates with:

  • Terraform Registry - Source for provider schemas
  • NPM Registry - Package distribution
  • Pulumi Service - State management (optional)
  • GitHub Actions - CI/CD automation
  • Nx Cloud - Distributed caching
  • Autofix.ci - Automated code fixes

๐Ÿ“Š Project Stats

  • 9 Providers available
  • MIT Licensed - Free and open source
  • Active Development - Regular updates
  • Production Ready - Used in real projects

๐ŸŒŸ Examples

Multi-Provider Infrastructure

import * as pulumi from '@pulumi/pulumi'
import * as namecheap from 'pulumi-namecheap'
import * as betteruptime from 'pulumi-better-uptime'

// DNS Configuration
const apiRecord = new namecheap.Record('api', {
  domain: 'example.com',
  hostname: 'api',
  type: 'A',
  address: '192.168.1.100',
})

// Monitoring
const monitor = new betteruptime.Monitor('api-monitor', {
  url: pulumi.interpolate`https://${apiRecord.hostname}.${apiRecord.domain}`,
  monitorType: 'status',
  checkFrequency: 60,
})

export const apiUrl = pulumi.interpolate`https://${apiRecord.hostname}.${apiRecord.domain}`
export const monitorId = monitor.id

๐Ÿ™ Acknowledgments

This project is built on top of:

  • Pulumi - Infrastructure as Code platform
  • Terraform - Provider ecosystem
  • Nx - Monorepo build system
  • All the amazing Terraform provider maintainers

๐Ÿ“œ License

MIT License - see LICENSE file for details.

๐Ÿ‘จโ€๐Ÿ’ป Author

Khรกnh Hoร ng

  • Website: khanh.id
  • Email: [email protected]
  • GitHub: @hckhanh

๐Ÿ”— Links

  • Documentation
  • NPM Packages
  • GitHub Repository
  • Issue Tracker
  • Pulumi Documentation
  • Terraform Registry

โญ If you find this project useful, please consider giving it a star on GitHub!

About

Porting of some Terraform providers to Pulumi

docs.khanh.id/pulumi-any-terraform

Topics

convertiaciac-terraforminfrainfra-terraforminfrastructure-as-codeportingporting-languagesproviderpulumiterraform

Resources

Readme

Contributing

Contributing
Activity

Stars

3 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402792 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.