When importing, I thought it was supposed to outpu...
# general
c
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
Not sure I understand the question?
c
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
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
Ah, I simply misunderstood the video then.
w
BTW - just shared another video walkthrough of using
import
at https://pulumi-community.slack.com/archives/CB36DSVSA/p1564083974003700
c
Thanks. Will check it out.