Skip to content

Commit

Permalink
Merge pull request #74 from dw-kihara/feature/allow_custom_provider_type
Browse files Browse the repository at this point in the history
Allow custom providers in provider() type
  • Loading branch information
onno-vos-dev authored May 24, 2024
2 parents 62247a3 + 3cce2a2 commit a6d6bf9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ or a map of the shape:

```erlang
#{
provider_source => Provider :: atom(),
provider_source => Provider :: module(),
access_key_id => AccessKey :: binary(),
secret_access_key => SecretKey :: binary(),
token => Token :: binary(),
Expand Down
6 changes: 4 additions & 2 deletions src/aws_credentials_provider.erl
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
%% @doc This is the behaviour definition for a credential provider
%% module and it iterates over a list of providers. You may set the
%% `credential_providers` Erlang environment variable if you want to
%% restrict checking only a certain subset of the default list.
%% restrict checking only a certain subset of the default list or
%% if you want to use your own custom providers.
%%
%% Default order of checking for credentials is:
%% <ol>
Expand Down Expand Up @@ -34,7 +35,8 @@
-type provider() :: aws_credentials_env
| aws_credentials_file
| aws_credentials_ecs
| aws_credentials_ec2.
| aws_credentials_ec2
| module().
-type error_log() :: [{provider(), term()}].
-export_type([ options/0, expiration/0, provider/0 ]).

Expand Down

0 comments on commit a6d6bf9

Please sign in to comment.