ex-aws / ex_aws

A flexible, easy to use set of clients AWS APIs for Elixir
https://hex.pm/packages/ex_aws
MIT License
1.28k stars 526 forks source link

Use default profile when AWS_PROFILE is undefined #885

Closed fmterrorf closed 2 years ago

fmterrorf commented 2 years ago

profile_from_config uses incorrect profile when :system is being used e.g. ({:awscli, :system, timeout}).

It'll use profile default instead of just default if the AWS_PROFILE env var is unset. This PR fixes it

bernardd commented 2 years ago

Hi @fmterrorf - thanks for the PR, and apologies for the delay in getting to it. It looks good, just a tiny simplification I've suggested there, then I'll get it merged.

bernardd commented 2 years ago

Awesome, thanks @fmterrorf :)