Skip to content

Instantly share code, notes, and snippets.

View Sinnohd's full-sized avatar

Jens Brey Sinnohd

View GitHub Profile
@Sinnohd
Sinnohd / keyrotate.py
Created January 5, 2016 10:26
Script to rotate AWS keys and replace them in .boto and .aws/config
#!/usr/bin/python
import boto.iam, boto.exception
import argparse, os
import ConfigParser
parser = argparse.ArgumentParser(description="Rotate Access Keys.")
parser.add_argument(
"-p",
"--profile",