I am new to pulumi...I am using python...I want to...
# general
w
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
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
are you saying that ec2 creation as separate stack and ami creation as separate stack...and through StackReference we can import it ?