https://pulumi.com logo
l

limited-rainbow-51650

06/18/2019, 4:20 PM
How can I import existing resources into the Pulumi state? Stated differently, what is the Pulumi equivalent to
terraform state import
(https://www.terraform.io/docs/import/index.html)
c

cool-egg-852

06/18/2019, 4:39 PM
This is something they are working on but does not exist yet.
For now, the only real way that I am aware of is to create a similar resource, do a
pulumi stack export --file stack.json
, modify it, then do a
pulumi stack import --file stack.json
.
w

white-balloon-205

06/18/2019, 4:59 PM
That's right - this is in the works right now. In the meantime, you can see the manual steps that can be used here: https://github.com/pulumi/pulumi/issues/1662#issuecomment-483718863
👏🏼 1
l

limited-rainbow-51650

07/18/2019, 5:52 PM
To update on my own request: pulumi 0.17.23 has
import
functionality. https://github.com/pulumi/pulumi/blob/v0.17.23/CHANGELOG.md#01723-2019-07-16