-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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: Remove references to the create_vpc variable from unrelated reso… #994
fix: Remove references to the create_vpc variable from unrelated reso… #994
Conversation
…urces such as subnets, route tables, and NAT gateways. If 'create_vpc' variable value is false then you have to provide vpc_id.
this is the |
Hi Bryant, I agree that this is a VPC module. However, I've noticed that there's a create_vpc variable within this module. If I set it to "false," it creates a random string resource, which seems unnecessary. I recently encountered a use case where I already had an existing VPC, and my intention was to create additional resources such as subnets and route tables within that VPC but that is not possible using this module. It's possible that other team members have faced similar situations in the past. Considering this, I felt it was important to address this issue and make this change. This modification is necessary to enhance the flexibility and control over resource provisioning, allowing us to work with existing VPCs more efficiently. |
@Yatin03 Consider importing your existing VPC to be managed by the module. This PR introduces a feature that will be very hard to maintain in the long run, so we can't have it. |
@antonbabenko, This modification won't disrupt the importing feature. 'create_vpc' variable was already present, but it was not functioning as expected. Therefore, I have made some adjustments. Could you please review it? |
It is functioning as expected - if you set create_vpc to false, the VPC and nearly all resources are not created. That's how it's designed |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
…urces such as subnets, route tables, and NAT gateways. If 'create_vpc' variable value is false then you have to provide vpc_id.
Description
If i set create_vpc variable value to false then it doesn't create other resources like: Subnet, Route Table, NAT Gateway.
Motivation and Context
Currently, Setting the create_vpc variable value to "false" ensures that the creation of additional resources such as subnets, route tables, and NAT gateways is avoided. This change is required to provide more flexibility and control over resource provisioning. It allows for a more customized deployment process, particularly in scenarios where you may already have existing resources or you want to manage these specific resources separately. By making this change, you can prevent the unnecessary creation of these resources when they are not needed, which can save resources, reduce complexity, and better align with your specific requirements.
Breaking Changes
No, It should not break existing cluster because i have changed creation conditions
How Has This Been Tested?
examples/*
to demonstrate and validate my change(s)examples/*
projects