https://pulumi.com logo
#general
Title
# general
e

early-musician-41645

02/07/2019, 8:16 PM
I've written a project that will create and manage some ECR instances in multiple regions. Someone already manually created some of them, but I'd like my pulumi stack to manage those instances now. How can I import existing things into my stack?
g

gentle-diamond-70147

02/07/2019, 8:48 PM
Currently no builtin commands to import existing resources, but this is something we're actively working on.
I believe this is achievable by manually adding the existing resources to your stack's state and re-importing it. Somewhat tedious but doable.
You'll need to add to your state and code so the next
up
doesn't immediately delete the resources.
I just tested this with a VPC and it works. 🙂
e

early-musician-41645

02/07/2019, 9:22 PM
Yup, got it to work, thanks
👍 1
g

gentle-diamond-70147

02/07/2019, 9:29 PM
https://github.com/pulumi/pulumi/issues/1635 is the issue for built-in import support