Skip to content
Get AWS credentials in various ways.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
spec Remove SimpleCredentials#credentials Jul 7, 2019
src Next iteration Jul 26, 2019
.editorconfig Init May 22, 2019
.gitignore Init May 22, 2019
.travis.yml Init May 22, 2019
LICENSE Prepare release Jul 7, 2019
shard.yml Update to 0.30.0 Aug 12, 2019


Build Status Releases

Get AWS credentials in various ways.


  1. Add the dependency to your shard.yml:
    github: y2k2mt/aws-credentials
    version: 0.3.0
  1. Run shards install


Providers resolves credentials in order from given Provider.

In the example below, at first ,Providers resolves credentials from EnvProvider ('AWS_ACCESS_KEY_ID' and 'AWS_SECRET_ACCESS_KEY' in env) and then resolves credentials from SharedCredentialFileProvider ('~/.aws/credentials').

require "aws-credentials"

include Aws::Credentials

provider = ([,
] of Provider)

credentials = provider.credentials
# Aws::Credentials::Credentials(@access_key_id="AKIA...",@expiration=nil,@secret_access_key="mVlf...",@session_token=nil)

Current Provider implementations are:


  1. Fork it (
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request


  • y2k2mt - creator and maintainer
You can’t perform that action at this time.