little-market-63455
10/03/2021, 4:54 PMawsx.ec2.Vpc.getDefault().publicSubnetIds
I noticed that it always returns only exactly 2
subnets
Checking the code, I found this comment:
back compat. We always would just use the first two public subnets of the region we're in. So preserve that, even though we could get all of them here. Pulling in more than the two we pulled in before could have deep implications for clients as those subnets are used to make many downstream resource-creating decisions.But the documentation doesn't mention this which is a surprising behavior.
billowy-army-68599
10/03/2021, 5:56 PMlittle-market-63455
10/04/2021, 7:53 AM