bcuff / elasticsearch-net-aws

Add-on to Elasticsearch.Net & NEST for using AWS's elasticsearch service.
Apache License 2.0
72 stars 27 forks source link

Retrieve the Profile Named by the Environment Variable #30

Closed chrisoverzero closed 6 years ago

chrisoverzero commented 6 years ago

This matches the behavior of AWS' libraries more closely.

The falling-back behavior is as follows:

  1. The provided name. (Use of this should be rare, but it's available as a strong override in case of misconfigured environments).
  2. The value of the environment variable AWS_PROFILE. (As in AWS' libraries.)
  3. The default profile name, which happens to be "default". (As in AWS' libraries.)
chrisoverzero commented 6 years ago

Hey, that's great. Thank you so much.