Popularity
3.6
Growing
Activity
0.0
Stable
3
4
4
Programming language: Crystal
License: MIT License
Tags:
Third-party APIs
Latest version: v0.4.0
aws-credentials alternatives and similar shards
Based on the "Third-party APIs" category.
Alternatively, view aws-credentials alternatives based on common mentions on social networks and blogs.
-
GDAX
๐ GDAX REST and WebSocket API wrapper to trade blockchain cryptocurrencies like bitcoin, Litecoin and Ethereum.
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
Promo
coderabbit.ai
Do you think we are missing an alternative of aws-credentials or a related project?
README
aws-credentials
Get AWS credentials in various ways.
Installation
- Add the dependency to your
shard.yml
:
dependencies:
aws-credentials:
github: y2k2mt/aws-credentials.cr
- Run
shards install
Usage
Providers
resolves credentials in order from givenProvider
.
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 = Providers.new ([
EnvProvider.new,
SharedCredentialFileProvider.new
] of Provider)
credentials = provider.credentials
# Aws::Credentials::Credentials(@access_key_id="AKIA...",@expiration=nil,@secret_access_key="mVlf...",@session_token=nil)
Current Provider
implementation is as follows:
- EnvProvider
- SharedCredentialFileProvider
- InstanceMetadataProvider
- ContainerCredentialProvider
- AssumeRoleProvider
- Usage: Please watch
spec/it/assume_role_with_sts_spec.cr
- Usage: Please watch
- SimpleCredentials (Simply holds given credentials)
Contributing
- Fork it (https://github.com/y2k2mt/aws-credentials/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- y2k2mt - creator and maintainer