Skip to content

Instantly share code, notes, and snippets.

@pstanton237
pstanton237 / get_blackhole_routes.py
Last active August 12, 2021 16:05
(aws/python) find 'blackhole' route tables
import boto3
import click
import logzero
from logzero import logger
class GetRoutesTables:
def __init__(self, aws_profile: str, aws_region: str = 'ap-northeast-2'):
self.session = boto3.session.Session(profile_name=aws_profile, region_name=aws_region)