https://pulumi.com logo
w

witty-cat-14403

04/02/2020, 10:28 AM
I am new to pulumi...I am using python...I want to write ami creation nd ec2 creation as two separate modules..and link two with "import"..is that possible similar to terraform import ?
f

faint-table-42725

04/02/2020, 4:06 PM
Yes, it’s possible to do this via import. But it sounds like you’ll do both the AMI creation and instance creation in the Pulumi ecosystem. In that case, you could simply use a
StackReference
to reference the AMI you created as an output of the first stack.
w

witty-cat-14403

04/03/2020, 6:39 AM
are you saying that ec2 creation as separate stack and ami creation as separate stack...and through StackReference we can import it ?