-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vpc does not span over whole region #3124
Comments
You have to explicitly set region and account for your Stack (Environment). Have a look at #3083 |
@lkoniecz also I don't think you can create a network with /16 from a class C network (192.168.0.0) as it would only support /24 - /32. The maximum number of usable hosts from a class C network is 254 total. |
thanks, it works, but I quite don't understand what the real root cause was - in particular, how does explicitly setting stack env affect number of AZs. |
If you have a look at pull request #2922 you will find an explanation:
So if you won't set |
this is what came to my mind but I was fooled by Osaka region that only has one AZ but I read it over again and seems its a special case, so 2 AZ per region setup will basically work everywhere thanks for the explanation, |
You're welcome. Interesting - i wasn't ware of Osaka having only one AZ. Might also be of interest for @eladb |
Thanks for bringing this to my attention. Perhaps we can embed a little CFN map with those defaults... I’ll open an issue. Closing for now |
Note: for support questions, please first reference our documentation, then use Stackoverflow. This repository's issues are intended for feature requests and bug reports.
I'm submitting a ...
What is the current behavior?
If the current behavior is a 🪲bug🪲: Please provide the steps to reproduce
Generated template contains 2 public subnets and 2 private equally distributed over eu-west-1a and eu-west-1b.
What is the expected behavior (or behavior of feature suggested)?
According to documentation: https://docs.aws.amazon.com/cdk/api/latest/python/aws_cdk.aws_ec2/Vpc.html subnets should span all over the whole region, eu-west-1a, eu-west-1b and eu-west-1c in this case.
What is the motivation / use case for changing the behavior or adding this feature?
To make the code working accordingly to the documentation.
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. associated pull-request, stackoverflow, gitter, etc)
The text was updated successfully, but these errors were encountered: