Skip to content

Instantly share code, notes, and snippets.

@dylansmith
Created October 15, 2015 11:18
Show Gist options
  • Save dylansmith/55bd1e26e58729171482 to your computer and use it in GitHub Desktop.
Save dylansmith/55bd1e26e58729171482 to your computer and use it in GitHub Desktop.
Create .aws/credentials from environment vars
#!/bin/bash
mkdir -p ~/.aws
echo -e "[default]\naws_access_key_id=$AWS_ACCESS_KEY_ID\naws_secret_access_key=$AWS_SECRET_ACCESS_KEY" > ~/.aws/credentials
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment