How can I import existing resources into the Pulum...
# general
l
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
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
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
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