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

tech debt: three identical implementations of detaching and deleting ENIs in EC2, ELB, and ELBv2 packages #21406

Closed
gdavison opened this issue Oct 20, 2021 · 4 comments · Fixed by #21542
Labels
service/ec2 Issues and PRs that pertain to the ec2 service. service/elb Issues and PRs that pertain to the elb service. technical-debt Addresses areas of the codebase that need refactoring or redesign.
Milestone

Comments

@gdavison
Copy link
Contributor

The same implementations of detaching and deleting ENIs have been used across the EC2, ELB, and ELBv2 packages. These should be consolidated into one function that can be used across multiple packages.

Since ENIs are part of EC2, the functions should be located in that package.

Affected Resources

  • aws_elb
  • aws_lb
  • aws_network_interface
  • aws_network_interface_attachment
@github-actions github-actions bot added service/ec2 Issues and PRs that pertain to the ec2 service. service/elb Issues and PRs that pertain to the elb service. labels Oct 20, 2021
@gdavison gdavison added the technical-debt Addresses areas of the codebase that need refactoring or redesign. label Oct 20, 2021
@ewbankkit
Copy link
Contributor

There's also findPublicNetworkInterfacesForVpcID in ec2/internet_gateway.go 😄.

@ewbankkit
Copy link
Contributor

aws_network_interface and aws_network_interface_attachment addressed in #21265.

@github-actions github-actions bot added this to the v3.65.0 milestone Nov 8, 2021
@github-actions
Copy link

This functionality has been released in v3.65.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

I'm going to lock this issue 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 similar to this, 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 May 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/ec2 Issues and PRs that pertain to the ec2 service. service/elb Issues and PRs that pertain to the elb service. technical-debt Addresses areas of the codebase that need refactoring or redesign.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants