Adopting Existing Cloud Resources into Pulumi
Blog post from Pulumi
Migrating from Terraform to Pulumi involves effectively managing existing cloud infrastructure with Pulumi's robust infrastructure provisioning solutions. Pulumi enables seamless adoption and management of existing resources, whether they were originally deployed manually, through Terraform, or other infrastructure-as-code tools like CloudFormation. By offering tools such as the `.get` methods and StackReference, Pulumi allows for easy referencing of existing resources, while the import resource option facilitates the adoption of these resources into Pulumi-managed infrastructure without creating new duplicates. This flexibility extends to automating entire migration processes and managing resources at scale through importing resource identifiers from configurations or files. The process includes deploying existing infrastructure, creating a Pulumi program to describe it, adding import IDs for adoption, and managing the resources incrementally through Pulumi, ultimately allowing users to leverage Pulumi's features for future infrastructure management.