you’re querying the subnets at the same time you’re creating them, you need to make sure the subnet query happens after the vpc creation with depends_onIt’s not really clear why you’re doing this however
1 month ago
1. So preview command actually queries the resources on aws to get the results?
2. I think depends_on is a resource option and cannot be used for get_* functions which hqve invoke_option. Let me know if im wrong.
3. Simce im still testing out pulumi, i was trying to get the zone in which the subnet is created to use later on in code.