You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The awsutils_default_vpc_deletion deletes most resources associated with each default VPC, but it misses a resource that is also created by default in a new AWS account: DHCP option sets.
These option sets are usually missed because they have a reverse dependency on a VPC, i.e. can only be deleted after it is deassociated from the VPC, or after the VPC is gone. But they should be deleted nonetheless, if a clean account without default network resources is desired.
Expected Behavior
The default DHCP option set in each region should be deleted along with each VPC.
Use Case
I'm trying to create clean AWS accounts without any leftover resources that AWS creates by default.
This issue seems to be stalled and is the only thing preventing us from having a clean, pristine AWS account. Is there any blocker? If it's just a matter of time, I could try submitting a PR to help.
I agree that the dhcp could be deleted, but the dependency graph for it is not vpc -> dhcp, its dhcp -> vcp. its used by the vpc, so we can't delete it before the vpc.
what would be nice is having a delete_default_vpc_dhcp_options, which we could then use a depends_on on the delete default vpc resource.
Describe the Feature
The awsutils_default_vpc_deletion deletes most resources associated with each default VPC, but it misses a resource that is also created by default in a new AWS account: DHCP option sets.
These option sets are usually missed because they have a reverse dependency on a VPC, i.e. can only be deleted after it is deassociated from the VPC, or after the VPC is gone. But they should be deleted nonetheless, if a clean account without default network resources is desired.
Expected Behavior
The default DHCP option set in each region should be deleted along with each VPC.
Use Case
I'm trying to create clean AWS accounts without any leftover resources that AWS creates by default.
Describe Ideal Solution
Repeat for all regions.
Alternatives Considered
N/A
Additional Context
N/A
The text was updated successfully, but these errors were encountered: