gruntwork-io / cloud-nuke

A tool for cleaning up your cloud accounts by nuking (deleting) all resources within it
https://gruntwork.io/
MIT License
2.81k stars 358 forks source link

Improvement on Code Redundancy in EC2 VPC #681

Closed james03160927 closed 7 months ago

james03160927 commented 7 months ago

We created the following resources that relates to EC2 VPC:

RIght now, there seems to be quite a lot of code redundancy. Pretty much similar code exist in ec2_vpc.go and all the new resources. We need to update the code something like this: https://github.com/gruntwork-io/cloud-nuke/pull/680

Also, we need to control checking default vs. non-default identifiers for the following functions: