https://pulumi.com logo
#python
Title
s

stocky-spoon-28903

06/14/2019, 3:07 PM
pulumi.export("public_subnet_ids", [sn.id for sn in self.public_subnets])
for example
f

fierce-state-11693

06/14/2019, 3:36 PM
Thanks for the example. I'm getting an error for self not being defined but I'll dig into that
s

stocky-spoon-28903

06/14/2019, 3:44 PM
Ah, that was a copy paste problem
If your array is called
public_subnets
, just use that
the
self
is only if you’re inside a component (in which case you shouldn’t call export anyway)