Skip to main content

Repository → 📁 Compliance Engine → 📁 CloudAware → 📁 AWS → 📁 EC2

🛡️ AWS EC2 Elastic IP is unused🟢

Logic

Description

Open File

Description

This policy identifies AWS EC2 Elastic IP addresses that are allocated to your AWS account but are not currently associated with an EC2 instance or a network interface.

Rationale

AWS charges for Elastic IP addresses that are not associated with a running EC2 instance. Regularly identifying and releasing unattached Elastic IPs helps reduce unnecessary costs.

Impact

Maintaining unattached public IPs can also pose a security risk, as they could be inadvertently associated with resources that should not be exposed to the internet.

Audit

This policy marks an AWS EC2 Elastic IP as INCOMPLIANT if its Association ID is empty, indicating that it is not currently attached to any resource.

Remediation

Open File

Remediation

Evaluate whether the Elastic IP is still needed:

  • If the EIP is required for future use, ensure it is associated with the appropriate EC2 instance or network interface.
  • If the EIP is no longer needed, release it to stop incurring charges and reduce potential security risks.

Release the Elastic IP

From Command Line
aws ec2 release-address --allocation-id {{allocation-id}}

policy.yaml

Open File

Linked Framework Sections

SectionSub SectionsInternal RulesPoliciesFlagsCompliance
💼 Cloudaware Framework → 💼 Waste Reduction25no data