Skip to content
A grab-bag of stuff that I've done with AWS
Python HCL
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lambda
snippets
terraform
utils
.gitignore
LICENSE
README.md

README.md

Grab-bag of utilities and other stuff that I use with AWS. Easier to keep track of as a project rather than lots of gists.

Lambdas

Directory Contents
cloudwatch-log-cleanup Deletes CloudWatch log streams that are empty because of the log group's retention period.
cloudwatch-log-transform Transforms CloudWatch Logs events from a Kinesis stream.
elb-to-es Imports Elastic Load Balancer logfiles into Elasticsearch.
es-cleanup-signed Cleans up old indexes from an Elasticsearch cluster. See this for more info.
es-cleanup-unsigned An Elasticsearch cleanup Lambda for clusters that allow unsigned access.
json-logging A module that will configure the Python logging framework for JSON output with Lambda-specific metadata.

Terraform

Directory Contents
provision-via-bastion Example of provisioning an instance via a bastion host.
users-and-groups Example of table-driven generation of users, groups, and group permissions.

Command-line utilities

Each is documented in its header, and exposes functions that may be useful for other programs.

Note: to run you must have boto3 installed.

Program Description
cf-env.py Populates environment variables from the parameters and outputs of a CloudFormation stack.
assume-role.py Spawns a subshell with authentication credentials for a specified role.

Snippets

Isolated pieces of code or configuration, intended to be pasted elsewhere.

You can’t perform that action at this time.