loft-sh / devpod-provider-aws

DevPod on AWS
Mozilla Public License 2.0
13 stars 8 forks source link

fix: get default subnet when using custom vpcID #19

Closed 89luca89 closed 1 year ago

89luca89 commented 1 year ago

This PR fixes a situation where specifying a custom VPC ID, would not find a default subnet in the same VPC

If no default subnet is found, it will search for the subnet with most free IPs inside the specified VPC and with ability to assign public IP addresses

If nothing is found, an error is returned, requesting to manually specify the subnet

Fix #18 Resolves ENG-1790