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.
- ๐ 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
| 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 |
Each package can be installed independently:
npm install pulumi-namecheap # or yarn add pulumi-namecheap # or pnpm add pulumi-namecheap
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
pulumi preview # Preview changes pulumi up # Deploy infrastructure
https://docs.khanh.id/pulumi-any-terraform
- Better Uptime
- Buildkite
- Bunny
- Infisical
- Logtail
- Namecheap
- OpenFGA
- Portainer
- PostHog
- TeamCity
- Local
- Time
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
- Node.js 22.18.0 or later
- pnpm 10.14.0 or later
- Pulumi CLI 3.190.0 or later
-
Clone and install:
git clone https://github.com/hckhanh/pulumi-any-terraform.git cd pulumi-any-terraform pnpm install -
Verify setup:
pnpm run syncpack:check pnpm nx run-many -t check
# 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
- Create package directory structure
- Configure
package.jsonwith proper metadata - Set up parameterization for Terraform provider
- Write comprehensive documentation
- Submit pull request
See the documentation for each provider.
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
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
We welcome contributions! Here's how you can help:
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- 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
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.
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
- 9 Providers available
- MIT Licensed - Free and open source
- Active Development - Regular updates
- Production Ready - Used in real projects
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
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
MIT License - see LICENSE file for details.
Khรกnh Hoร ng
- Website: khanh.id
- Email: [email protected]
- GitHub: @hckhanh
โญ If you find this project useful, please consider giving it a star on GitHub!