-
Notifications
You must be signed in to change notification settings - Fork 57
SharedCredentials does not parse the same INI format that the AWS CLI docs #75
Comments
Can you highlight the differences you are referencing? I know the CLI supports multiple configuration targets including |
I was referring to this:
Whereas the mock file for the spec looks like
The difference is that the CLI wants |
I believe the linked documentation and example is for the CLI configuration file. This file is found at The CLI should support the shared credential file found at That said, I find the documentation on these files is confusing and does not disambiguate the two files well. Also, I think it is an odd story for them to be so close and yet subtlety different. I have be considering exploring loading credentials and other things from the CLI config file, including region and others. I'm not sure what this would look like and what the story would be for CLI specific configuration options. |
I hadn't realised there were 2 files. Seems confusing especially since both I mean, duplicating credentials between files for different SDKs and CLI Sent from my phone. Please excuse terseness and typos, but don't forgive
|
I believe the issue is the CLI supported loading credentials from In an ideal situation, the I would like to leave this issue open to track this until we can decide what should be happening and what needs to change. Thanks for your patience. |
@trevorrowe Yes I can confirm this. In the
This is because the CLI has other sections in the config file that aren't profiles (preview, plugins, etc), whereas in the
|
FWIW, there's a proposal in the aws-cli repo about potential changes we could make to smooth over the distinction between |
I'm going to close this issue; There does not appear to be any additional work for the Ruby SDK at this time, as it supports the shared credentials file. Based on the discussion in aws/aws-cli#847, it appears the AWS CLI will move towards defaulting to storing configured credentials in the same file. At this time, I would expect the AWS CLI documentation to be updated to reflect this, hopefully eliminating the primary confusion. |
The AWS CLI multiple-profiles documentation specifies a format that the SharedCredentials class does not parse (the spec tests against a different format).
It makes sense for there only to be one format, and it would be really convenient if it matched the one the CLI tools expect and document.
The text was updated successfully, but these errors were encountered: