Skip to content
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

Fix VPC legacy default subnet distribution #1210

Merged
merged 2 commits into from
Jan 30, 2024

Conversation

danielrbradley
Copy link
Member

Fixes #1204

  • Assuming all subnets are the same size is overly cautious and breaks some existing setups.
  • Maintain the new special case for single subnet layouts to use the whole of small VPCs.
  • This will now fail and require manual layout for smaller VPCs with either:
    • More than 1 private subnets
    • More than 2 public subnets
    • More than 1 public subnets and more than 4 isolated subnets

@danielrbradley danielrbradley self-assigned this Jan 29, 2024
- Assuming all subnets are the same size is overly cautious and breaks some existing setups.
- Maintain the new special case for single subnet layouts to use the whole of small VPCs.
- This will now fail and require manual layout for smaller VPCs with either:
   - More than 1 private subnets
   - More than 2 public subnets
   - More than 1 public subnets and more than 4 isolated subnets
@danielrbradley danielrbradley force-pushed the fix-legacy-default-distribution branch from e3c7aa7 to 78d87d4 Compare January 29, 2024 20:31
@danielrbradley danielrbradley requested a review from a team January 29, 2024 20:34
Copy link
Member

@mjeffryes mjeffryes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a reasonable compromise to me to make legacy mode more consistent with previous behavior while still offering some improvement for small subnets. Thanks for enumerating more test cases.

@danielrbradley danielrbradley merged commit 61a7560 into master Jan 30, 2024
10 checks passed
@danielrbradley danielrbradley deleted the fix-legacy-default-distribution branch January 30, 2024 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AWSX wants to replace all VPC subnet cidr blocks
3 participants