View Source aws_credentials_env (aws_credentials v0.3.0)

This provider checks the Erlang environment and OS environment variables for AWS credentials. The following names can be used: (They are case sensitive)
  AWS_ACCESS_KEY_ID
  AWS_SECRET_ACCESS_KEY
  AWS_SESSION_TOKEN
  AWS_SECURITY_TOKEN
  AWS_DEFAULT_REGION
  AWS_REGION
  

At a minimum, the access key and secret keys must be defined.

If used in an Erlang context, these environment variable names should be strings. (I.e., is_list(EnvName) returns true).

Summary

Functions

-spec fetch(_) ->
               {ok, aws_credentials:credentials(), infinity} |
               {error, environment_credentials_unavailable}.