1. Docs
  2. Infrastructure as Code
  3. Guides
  4. Migration
  5. Convert code

Convert code to Pulumi

    The pulumi convert command allows you to translate supported sources to the various languages that Pulumi supports, such as TypeScript, JavaScript, Go, Python, C#, or Java. Conversion sources are supported via Pulumi plugins, and include the ability to convert code from other IaC tools like Terraform and Azure Bicep. Pulumi YAML programs can also be converted to any other supported Pulumi language.

    For the detailed usage of this command and options, refer to the pulumi convert CLI documentation.

    Supported source languages

    Supported destination languages

    Use cases for using pulumi convert

    The pulumi convert command is designed to address a variety of migration and conversion scenarios where IaC practices evolve alongside your project needs. Here are some common use cases:

    • Migrating from other IaC tools: If you’re looking to transition your infrastructure definitions from tools like Terraform, Bicep, or ARM templates into Pulumi.
    • Converting from Pulumi YAML: If you started your project with Pulumi YAML and find your requirements have evolved, you can convert and take advantage of the benefits offered by popular programming languages, such as complex logic capabilities and the flexibility to create modular and reusable components.

    Additional conversion tools and resources

    In addition to the converter plugins, Pulumi offers the following standalone tools for converting code from other IaC tools to Pulumi:

      Neo just got smarter about infrastructure policy automation