I should probably get one of the actual typescript...
# general
s
I should probably get one of the actual typescript experts at pulumi to look over it and suggest improvements
t
I have copied your code, slightly simplified it for my needs and then I was able to get rid of all async-awaits and thus the factory method. So it is doable.
s
Do you still have it dynamically calculating the subnet ranges based on the number of AZs?
That was the problem I found before
t
Yes, I believe so
I got rid of perAz though, which was resolving the number in promise
This should be solvable too with carefull promise passing