{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-cli/issues/3696","repository_url":"https://api.github.com/repos/aws/aws-cli","labels_url":"https://api.github.com/repos/aws/aws-cli/issues/3696/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-cli/issues/3696/comments","events_url":"https://api.github.com/repos/aws/aws-cli/issues/3696/events","html_url":"https://github.com/aws/aws-cli/issues/3696","id":376707486,"node_id":"MDU6SXNzdWUzNzY3MDc0ODY=","number":3696,"title":"Missleading README about profiles","user":{"login":"marverix","id":2142811,"node_id":"MDQ6VXNlcjIxNDI4MTE=","avatar_url":"https://avatars3.githubusercontent.com/u/2142811?v=4","gravatar_id":"","url":"https://api.github.com/users/marverix","html_url":"https://github.com/marverix","followers_url":"https://api.github.com/users/marverix/followers","following_url":"https://api.github.com/users/marverix/following{/other_user}","gists_url":"https://api.github.com/users/marverix/gists{/gist_id}","starred_url":"https://api.github.com/users/marverix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marverix/subscriptions","organizations_url":"https://api.github.com/users/marverix/orgs","repos_url":"https://api.github.com/users/marverix/repos","events_url":"https://api.github.com/users/marverix/events{/privacy}","received_events_url":"https://api.github.com/users/marverix/received_events","type":"User","site_admin":false},"labels":[{"id":217040864,"node_id":"MDU6TGFiZWwyMTcwNDA4NjQ=","url":"https://api.github.com/repos/aws/aws-cli/labels/closing-soon-if-no-response","name":"closing-soon-if-no-response","color":"000000","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-02T08:09:03Z","updated_at":"2018-11-06T09:12:33Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nREADME is currently very missleading. In one place one can read:\r\n\r\n> In the config file, except for the default profile, you *must* prefix each config section of a profile group with `profile`. For example, if you have a profile named \"testing\" the section header would be `[profile testing]`.\r\n\r\nAnd in one example there is:\r\n```\r\n[default]\r\naws_access_key_id=foo\r\naws_secret_access_key=bar\r\n\r\n[testing]\r\naws_access_key_id=foo\r\naws_secret_access_key=bar\r\n```\r\n\r\nAnd in another:\r\n```\r\n[default]\r\naws_access_key_id=<default access key>\r\naws_secret_access_key=<default secret key>\r\n# Optional, to define default region for this profile.\r\nregion=us-west-1\r\n\r\n[profile testing]\r\naws_access_key_id=<testing access key>\r\naws_secret_access_key=<testing secret key>\r\nregion=us-west-2\r\n```\r\n\r\nWhen I have changed my config and credentials files to have `profile` prefix then everything stopped working. I *must be without* `profile` prefix is seems. We need to decide if we should fix README and/or CLI itself. It's very frustrating."},"comment":{"url":"https://api.github.com/repos/aws/aws-cli/issues/comments/436181778","html_url":"https://github.com/aws/aws-cli/issues/3696#issuecomment-436181778","issue_url":"https://api.github.com/repos/aws/aws-cli/issues/3696","id":436181778,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjE4MTc3OA==","user":{"login":"marverix","id":2142811,"node_id":"MDQ6VXNlcjIxNDI4MTE=","avatar_url":"https://avatars3.githubusercontent.com/u/2142811?v=4","gravatar_id":"","url":"https://api.github.com/users/marverix","html_url":"https://github.com/marverix","followers_url":"https://api.github.com/users/marverix/followers","following_url":"https://api.github.com/users/marverix/following{/other_user}","gists_url":"https://api.github.com/users/marverix/gists{/gist_id}","starred_url":"https://api.github.com/users/marverix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marverix/subscriptions","organizations_url":"https://api.github.com/users/marverix/orgs","repos_url":"https://api.github.com/users/marverix/repos","events_url":"https://api.github.com/users/marverix/events{/privacy}","received_events_url":"https://api.github.com/users/marverix/received_events","type":"User","site_admin":false},"created_at":"2018-11-06T09:12:33Z","updated_at":"2018-11-06T09:12:33Z","author_association":"NONE","body":"Yes, I found that, but still I found it very confusing. Especially that here you mention only `config` file and here https://docs.aws.amazon.com/cli/latest/userguide/cli-multiple-profiles.html one can read:\r\n> The AWS credentials file uses a different naming format than the CLI config file for named profiles. Do not include the 'profile ' prefix when configuring a named profile in the AWS credentials file.\r\nIn my opinion this should be fixed in one of two ways:\r\n1. (From my POV better) Unify both files. I don't see any good reason why `credentials` file has different syntax then `config`. If both files would use the same `[profile ...]` definition then it would be much less confusing. For backward capability you can make `profile` word optional, but at least it should be marked as preferred.\r\n2. (Lazy \"fix\") Copy-paste notice from AWS to this README.\r\n"}}
{"actor":{"display_login":"marverix"}}