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

DisassociateAddress action in VPC #4202

Open
davidkshepherd opened this issue Jun 19, 2019 · 2 comments
Open

DisassociateAddress action in VPC #4202

davidkshepherd opened this issue Jun 19, 2019 · 2 comments

Comments

@davidkshepherd
Copy link

It would be very helpful if custodian could disassociate in ElasticIP address from a specific resource. This would help as a solution to a user mistakenly attaching an Elastic IP to a resource (like EC2) that should not be exposed. This would allow simple recovery from the disassociation if necessary. The majority of the code is already there as part of the VPC release action.

@kapilt
Copy link
Collaborator

kapilt commented Jun 19, 2019

there's a force option on release network-addr which will disassociate it as well. whats the use case for having it around if its not in use?

@davidkshepherd
Copy link
Author

Thanks Kapil, I looked at the disassociate associated with the force option. I's like to disassoicate WITHOUT the deletion.
Use Case: Policy requires that EC2 instances DO NOT have associated Elastic IP, unless there is an approved exception. Exception is identified based on tagging on instance. Extant EC2 instance is tagged with appropriate identifier. DNS record created to associate Elastic IP with DNS Name. All is good.
User creates new EC2 instance to replace extant EC2 instance with approved exception. User neglects to tag appropriately. User moves Elastic IP from old EC2 to new EC2. Policy filters in new EC2, Elastic IP is forcefully deleted. Recovery requires recreation of Elastic IP AND DNS update for new IP address. DNS TTL impacts restoration beyond SLA.

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

No branches or pull requests

2 participants