Skip to content

Instantly share code, notes, and snippets.

View ChristophShyper's full-sized avatar
🏠
Working from home

Krzysztof Szyper ChristophShyper

🏠
Working from home
View GitHub Profile
@ChristophShyper
ChristophShyper / aws_get_public_ips.py
Last active November 22, 2023 17:07
Script returning all public IPs associated with ENI in whole AWS Organization
#!/usr/bin/env python3
import boto3
import botocore.exceptions
"""
Script for counting current usage of public IPv4 across all accounts and regions.
Showing average spent starting January 2024
More info https://aws.amazon.com/blogs/aws/new-aws-public-ipv4-address-charge-public-ip-insights/