Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

aws-nuke doesn't remove IPAM resources. #834

Closed
timbaileyjones opened this issue Jul 25, 2022 · 4 comments
Closed

aws-nuke doesn't remove IPAM resources. #834

timbaileyjones opened this issue Jul 25, 2022 · 4 comments

Comments

@timbaileyjones
Copy link

After running aws-nuke on an account containing an IPAM resources, I re-ran my Terraform IaC which recreates it (aws_vpc_ipam). I got:

│ Error: Error creating ipam: ResourceLimitExceeded: You've reached the limit for ipams. You have created 1 ipams and you are limited to 1.

Expected behavior:

  • I expected aws-nuke to destroy the IPAM resource.
@ad-m-ss
Copy link

ad-m-ss commented Nov 18, 2022

I expected aws-nuke to destroy the IPAM resource.

IPAM is not a supported resource by aws-nuke to manage at that moment. Could you try to use CloudControl for that? The implementation should be pretty straightforward:

registerCloudControl("AWS::AppFlow::ConnectorProfile")
registerCloudControl("AWS::AppFlow::Flow")
registerCloudControl("AWS::AppRunner::Service")
registerCloudControl("AWS::ApplicationInsights::Application")
registerCloudControl("AWS::Backup::Framework")
registerCloudControl("AWS::MWAA::Environment")
registerCloudControl("AWS::Synthetics::Canary")
registerCloudControl("AWS::Timestream::Database")
registerCloudControl("AWS::Timestream::ScheduledQuery")
registerCloudControl("AWS::Timestream::Table")
registerCloudControl("AWS::Transfer::Workflow")
registerCloudControl("AWS::NetworkFirewall::Firewall")
registerCloudControl("AWS::NetworkFirewall::FirewallPolicy")
registerCloudControl("AWS::NetworkFirewall::RuleGroup")

@Alphasite
Copy link

I don't believe this works as there are IPAM allocations which need to be released as well before it lets you.
image

@timbaileyjones
Copy link
Author

timbaileyjones commented Dec 2, 2022

I have a wrapper script around aws-nuke that deletes a number of such things after aws-nuke runs. You can easily delete an entire ipam with this command:

aws ec2 delete-ipam --ipam-id "${ipam_id}" --cascade

The --cascade option will delete all the attached scopes and pools. Very helpful!

Hope this helps, in the meantime.

@ekristen
Copy link
Contributor

ekristen commented Oct 1, 2024

Closing due to age, if this is still an issue, please open an issue at https://github.com/ekristen/aws-nuke


Please see the copy of the notice from the README about the deprecation of this project. Sven was kind enough to grant me access to help triage and close issues and pull requests that have already been addressed in the actively maintained fork. Some additional information is located in the welcome issue for more information.

Caution

This repository for aws-nuke is no longer being actively maintained. We recommend users to switch to the actively maintained fork of this project at ekristen/aws-nuke.
We appreciate all the support and contributions we've received throughout the life of this project. We believe that the fork will continue to provide the functionality and support that you have come to expect from aws-nuke.
Please note that this deprecation means we will not be addressing issues, accepting pull requests, or making future releases from this repository.
Thank you for your understanding and support.

@ekristen ekristen closed this as completed Oct 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants