Skip to content

Instantly share code, notes, and snippets.

View reecestart's full-sized avatar
💻

Reece reecestart

💻
View GitHub Profile
@reecestart
reecestart / lambdaDeprecationSchedule.md
Last active January 16, 2024 00:32
List all Lambda Functions in all regions with deprecated runtimes using the Python SDK

List all Lambda Functions in all regions with deprecated runtimes using the Python SDK

checkLambdas.py

@reecestart
reecestart / whatisthisip.py
Created October 14, 2022 02:54
Checks IP Range to see if it is in the AWS IP Ranges (and what it is assigned to)
#!/usr/bin/env python
import requests
import ipaddr
# Get the AWS IP address ranges https://docs.aws.amazon.com/general/latest/gr/aws-ip-ranges.html
ip_ranges = requests.get('https://ip-ranges.amazonaws.com/ip-ranges.json').json()['prefixes']
# Get the CIDR to check from from the user
cidrtocheck = input("Enter your CIDR to check... ")
range = ipaddr.IPNetwork(cidrtocheck) # Turn it into IP Network Class