Skip to content

Instantly share code, notes, and snippets.

@mflopez79
mflopez79 / awsls
Last active November 15, 2019 17:18
Script that returns ip and other data from aws instances (useful when you've got several ASGs/servers on different accounts)
#!/usr/bin/env python
import argparse
import subprocess
from collections import defaultdict
import boto3
#
# On OSX, install boto3 with
# $ pip install boto3 --user
@rogerbush8
rogerbush8 / nat-heartbeat-failover-monitor-python-script-for-aws
Last active April 3, 2022 18:16
nat-heartbeat-failover-monitor-script-for-aws
#!/usr/bin/python
# aws-instance-monitor
#
# This is a command-line tool, as well as a monitor/failover script that is designed
# for HA NAT, but should be usable when the following conditions are met:
#
# 1. Used in AWS VPC Route Table - VPC routing describes methods of egress
# for outbound traffic. Typically, a NAT will have a 0.0.0.0/0 rule
# and the route will be in a table associated with a Private Subnet.