`pulumi.export("public_subnet_ids", [sn.id for sn ...
# python
s
pulumi.export("public_subnet_ids", [sn.id for sn in self.public_subnets])
for example
f
Thanks for the example. I'm getting an error for self not being defined but I'll dig into that
s
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)