Streaming git archives to S3 Part II: Using Docker

tl;dr

Docker container

Since there doesn't seem to be an official aws CLI containe, it's up to you to build/find one. Here's a simple Dockerfile.

AWS Credentials

There are many ways to pass in AWS credentials to the docker container. See Configuring the AWS Command Line Interface. Easiest is probably using AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY. Another option if you already have it set is to mount your .aws directory to /root/.aws using -v ~/.aws:/root/.aws.