I should probably get one of the actual typescript experts at pulumi to look over it and suggest improvements
t
tall-librarian-49374
01/22/2019, 5:19 PM
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
stocky-spoon-28903
01/22/2019, 5:35 PM
Do you still have it dynamically calculating the subnet ranges based on the number of AZs?
That was the problem I found before
t
tall-librarian-49374
01/22/2019, 8:50 PM
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