Several folks have asked about the new `import` fe...
# announcements
w
Several folks have asked about the new
import
feature. More docs and blogs coming on this soon - but in the meantime - here's a video walkthrough of using import to adopt existing resources. It covers: • Deploying some "existing" Azure infrastructure (resource group, networking and VM) using Terraform • Creating a Pulumi program that describes the same infrastructure using
tf2pulumi
• Showing that by default this will create new infrastructure • Using the new
import: <id>
feature to import a resource • Highlighting how Pulumi helps ensure you correctly described the desired state of your infrastructure (so that you don't accidentally replace adopted resources) • Getting the `id`s from the
.tfstate
file • Importing the full infrastructure into Pulumi • Showing that this allows managing the resources in https://app.pulumi.com (like linking to resources in Azure Portal) • Adding a tag to the VM with Pulumi and showing that we can now make changes to the existing resource using Pulumi • Discussing how to manage
import
IDs via config in cases where there are multiple instances (dev, stage) of a deployment • Discussing when
import
can/should be removed from code once imports are complete

https://www.youtube.com/watch?v=kX_3Wdft0Ms

🙌 1
👍 9
h
Just what we needed