--
You received this message because you are subscribed to the Google Groups "cloudtools-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloudtools-de...@googlegroups.com.
To post to this group, send email to cloudto...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloudtools-dev/e9a89138-dd3b-4dbd-a26b-fb2e9ed813a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloudtools-dev/CA%2Bv29LuXYRCX9%2BEoSHmAwR1q-mxs%3D%3DdTaehnnxEijX75xtxjnA%40mail.gmail.com.
from troposphere import Export, Output
t.add_output(
Output(
'snetid', Value=Ref(snet), Export=Export('{}-snetid'.format(stack))))
t.add_output(
Output('sgid', Value=Ref(sg), Export=Export('{}-sgid'.format(stack))))from troposphere import ImportValue
snetid = ImportValue('{}-vpc-snetid'.format(stack))
sgid = ImportValue('{}-vpc-sgid'.format(stack))
from troposphere import Export, Output
t.add_output(Output('snetid', Value=Ref(snet), Export=Export('vpcstack-snetid')) # you can get the stack name from CLI or template param as well, better than hard-coding it
t.add_output(Output('sgid', Value=Ref(sg), Export=Export('vpcstack-sgid'))from troposphere import ImportValue
snetid = ImportValue('vpcstack-snetid')
sgid = ImportValue('vpcstack-sgid')