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

Improve subnet CIDR calculation (clone of #23) #29

Merged
merged 1 commit into from
Sep 7, 2023
Merged

Conversation

balazsgaspar
Copy link
Contributor

@balazsgaspar balazsgaspar commented Sep 6, 2023

Currently, the prereq modules configure the vpc/cnet submodules in a way that the total VPC/VNet CIDR range is split up equally between the number of subnets created.

While this is a sound approach, it results in a networking layout that does not align with our recommended network settings (and the current "Create new VPC" feature of CDP) and may be a source of confusion. See also https://docs.cloudera.com/cdp-public-cloud/cloud/requirements-aws/topics/mc-aws-req-vpc.html

We should implement a logic where the user can select the size of the public/private (internal/gateway) subnets and the module calculates each subnet's CIDR range accordingly.

Defaults subnet sizes will be set according to the linked documentation (/19 for internal/private and /24 for public/CDP subnets)


This is a clone of PR #23, but all commits squashed into a single (signed) commit. It includes following original commits:

c59dc5f
d47b8b6
ddbdf93
f8a9e05
b0fe32c
04ec93b
0714cd3
5b3215c

@balazsgaspar balazsgaspar changed the title Cdpauto 102 signed (#28) Improve subnet CIDR calculation (clone of #23) Sep 6, 2023
@jimright jimright self-requested a review September 7, 2023 18:28
Copy link
Contributor

@jimright jimright left a comment

Choose a reason for hiding this comment

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

Tested CDP deployment with these changes to public and private subnets. All deployment patterns work well. Also confirmed that the change has no impact on the BYO-VPC/VNet configuration.

Approved.

@jimright jimright merged commit 5304503 into main Sep 7, 2023
@jimright jimright deleted the CDPAUTO-102_squash branch September 7, 2023 18:30
dennaloh pushed a commit to dennaloh/terraform-cdp-modules that referenced this pull request Jan 20, 2025
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.

3 participants