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: Remove references to the create_vpc variable from unrelated reso… #994

Closed

Conversation

Yatin03
Copy link

@Yatin03 Yatin03 commented Oct 21, 2023

…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?

  • [X ] I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • [ X] I have tested and validated these changes using one or more of the provided examples/* projects
image

yatinsindhi added 7 commits October 21, 2023 23:32
@bryantbiggs
Copy link
Member

create_vpc variable value to false then it doesn't create other resources like: Subnet, Route Table, NAT Gateway.

this is the vpc module, its intent is to create the VPC and all of the supporting networking components that go along with the VPC.

@Yatin03
Copy link
Author

Yatin03 commented Oct 21, 2023

create_vpc variable value to false then it doesn't create other resources like: Subnet, Route Table, NAT Gateway.

this is the vpc module, its intent is to create the VPC and all of the supporting networking components that go along with the VPC.

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.

@antonbabenko
Copy link
Member

@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.

@Yatin03
Copy link
Author

Yatin03 commented Oct 24, 2023

@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?

@bryantbiggs
Copy link
Member

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

Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants