miasma-rb / miasma-aws

Miasma AWS API
Other
8 stars 8 forks source link

Configuration file support #15

Closed chrisroberts closed 6 years ago

chrisroberts commented 9 years ago

Now that the docs on the structure of these files has been expanded to provide all the details of their snowflakeiness, add support in to handle the insanity.

Reference doc: http://docs.aws.amazon.com/cli/latest/topic/config-vars.html Required: http://docs.aws.amazon.com/cli/latest/topic/config-vars.html#service-specific-configuration

Also ensure that precedence is following along correctly as defined.

dougireton commented 8 years ago

Does SFN currently support ~/.aws/credentials and ~/.aws/config or only ENV vars right now?

chrisroberts commented 8 years ago

Hi! Yes, it does support the credentials and config files (it has for quite awhile), just not some of the advanced usage that has been added like the nested setting and stuff. If it's in a generic ini format, it'll be fine. This issue is just related to the expanded formatting that's now supported by aws.

You can also override paths used for credentials file and config file: https://github.com/miasma-rb/miasma-aws#profile-related-attributes

Cheers!

dougireton commented 8 years ago

Cool, thanks!

chrisroberts commented 6 years ago

Basic usage is in working order and includes source profile support