This message was deleted.
# python
s
This message was deleted.
c
Using
.apply
with a lambda allows me to extract the values but now I need to figure out how to get those as values for new resources
Copy code
vpc_subnets = vpc['subnets'].apply(
   lambda x: list(map(print, x))
)
b
@crooked-pillow-11944 you can pass the whole array as an output, if you need specific elements from it you'll need to be a bit more creative..
c
I've considered putting the length of an Output list into another Output so that it can be used as an iterator but got this:
TypeError: 'Output' object cannot be interpreted as an integer
b
You can’t iterate over an output because it’s a future
c
That's what I figured