With the change to the pricing model of public IPv4 addresses at AWS, you may want to see exactly what resources have been provisioned in your account. AWS Cost Explorer can be utilized for this purpose.
Generate an AWS Cost Explorer report to show public IPv4 use
- Log in to your AWS account
- Navigate to Billing and Cost Management → Cost Explorer
- In Cost Explorer, set the Date Range as needed
- Set the Dimension of “API operation”
- Set the Usage type “USE1-PublicIPv4:IdleAddress (Hrs)” and “USE1-PublicIPv4:InUseAddress (Hrs)”
- The above report parameters will return four values in "Usage (Hrs)"
‘AssociateAddressVPC’ = Elastic IP associated with a resource (an EC2 instance, or maybe other things like an NLB, etc.)
‘DescribeNetworkInterfaces’ = AWS managed service public IP
‘RunInstances’ = EC2 instance default (i.e. non-elastic) public IP
‘AllocateAddressVPC’ = Elastic IP that are idle in your account
References
Announcement from AWS of the change and cost: https://aws.amazon.com/blogs/aws/new-aws-public-ipv4-address-charge-public-ip-insights/
How to identify usage: https://aws.amazon.com/blogs/networking-and-content-delivery/identify-and-optimize-public-ipv4-address-usage-on-aws/
Announcement to campus (login required): 2024-01-05 AWS Charges for Public IPv4 Addresses