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

feat(ec2-network-interfaces): add description property #526

Closed

Conversation

apgrucza
Copy link
Contributor

@apgrucza apgrucza commented Jan 28, 2025

This change allows EC2NetworkInterface to be filtered by Description. The reason for this change is explained below.

Amazon MSK automatically creates network interfaces (ENIs) in the customer account, and if these are deleted then you lose the ability to connect to the MSK cluster. There is no way to recreate these ENIs apart from deleting and recreating the cluster. These ENIs are untagged but have a Description property in the format DO NOT DELETE - Amazon MSK network interface for cluster <cluster_arn>.. We can use this property to prevent aws-nuke deleting these critical resources.

Fixes #528

@apgrucza apgrucza force-pushed the ec2-network-interface-description branch from 8b409ed to 04793e7 Compare January 28, 2025 23:40
@apgrucza apgrucza changed the title feat(ec2-network-interfaces): Add Description property feat(ec2-network-interfaces): add description property Jan 28, 2025
@ekristen
Copy link
Owner

Apologies for the delay, not sure why I'm not seeing the PR notifications.

@ekristen
Copy link
Owner

@apgrucza I appreciate your PR but I'm going to have to close it in favor of a PR i'm putting together but I've incorporated your change. Typically I would have preferred to pull your commit over but I had already changed up the resource to the new struct tagging format as such it would not apply cleanly. See #529

@ekristen ekristen closed this Jan 31, 2025
@apgrucza
Copy link
Contributor Author

Thanks @ekristen but unfortunately you missed the line that actually sets the Description field

@ekristen
Copy link
Owner

Shoot, I did have it. Well if you want to submit a fix PR. I'll approve and get it merged.

@apgrucza
Copy link
Contributor Author

Sure, see #531

@ekristen
Copy link
Owner

Thanks sorry about that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prevent deletion of Amazon MSK network interfaces
2 participants