Skip to content

Instantly share code, notes, and snippets.

Avatar

Bouke Haarsma Bouke

View GitHub Profile
@Bouke
Bouke / aws_usage.py
Last active Apr 19, 2017 — forked from rcoup/aws_usage.py
Catch login failures / captcha input
View aws_usage.py
#!/usr/bin/env python
"""
A script to query the Amazon Web Services usage reports programmatically.
Ideally this wouldn't exist, and Amazon would provide an API we can use
instead, but hey - that's life.
Basically takes your AWS account username and password, logs into the
website as you, and grabs the data out. Always gets the 'All Usage Types'
You can’t perform that action at this time.