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

gifted-island-55702

12/27/2018, 9:40 PM
6. I had scenarios where one of my terraform deployments had to be split into 2 or more deployments. Or I needed to move some resources from top-level resources into a module. I could use
terraform state mv|rm
and/or
terraform import
to achieve this. Is it supported in pulumi?
w

white-balloon-205

12/27/2018, 9:44 PM
Also actively in progress. Import support in https://github.com/pulumi/pulumi/issues/1662 and https://github.com/pulumi/pulumi/issues/1635. And `alias`s to allow changing the name of a resources in https://github.com/pulumi/pulumi/issues/458. It's possible to manually edit state files to achieve both goals already today, but will be easier once these features land.
g

gifted-island-55702

12/27/2018, 9:46 PM
Noted - thanks
One more question on this: would the issues listed above support moving top-level resources from a pulumi program into a https://pulumi.io/reference/pkg/nodejs/@pulumi/pulumi/#ComponentResource (e.g. in a reusable npm package)?
w

white-balloon-205

12/27/2018, 9:58 PM
Yes - that's one of the key topics raised in and tracked by https://github.com/pulumi/pulumi/issues/458. We believe the "aliases" approach there can be made to support this - but we still have work to do to finish the design of this.
👍 1