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

cool-egg-852

07/25/2019, 6:50 PM
When importing, I thought it was supposed to output the actual contents? that’s what it seemed like from https://asciinema.org/a/Ov7s3Xxa0YtXzWwVtleyGYfCw
w

white-balloon-205

07/25/2019, 7:39 PM
Not sure I understand the question?
c

cool-egg-852

07/25/2019, 7:39 PM
I thought it was supposed to output the JS object basically for copy/pasting.
Instead I just got the normal details output when trying this
w

white-balloon-205

07/25/2019, 7:39 PM
No - it shows a Pulumi diff, but does not output the JS for you.
You will currently have to ensure you can create a program that describes the same resources. There are many ways to do this. For Terraform, you can use
tf2pulumi
. Adding a tool to output a minimal language representation of the desired state based on a diff or attempted import is something we are thinking about for the future.
c

cool-egg-852

07/25/2019, 7:41 PM
Ah, I simply misunderstood the video then.
w

white-balloon-205

07/25/2019, 7:46 PM
BTW - just shared another video walkthrough of using
import
at https://pulumi-community.slack.com/archives/CB36DSVSA/p1564083974003700
c

cool-egg-852

07/25/2019, 8:14 PM
Thanks. Will check it out.