{"action":"created","issue":{"url":"https://api.github.com/repos/MikaAK/s3-plugin-webpack/issues/56","repository_url":"https://api.github.com/repos/MikaAK/s3-plugin-webpack","labels_url":"https://api.github.com/repos/MikaAK/s3-plugin-webpack/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/MikaAK/s3-plugin-webpack/issues/56/comments","events_url":"https://api.github.com/repos/MikaAK/s3-plugin-webpack/issues/56/events","html_url":"https://github.com/MikaAK/s3-plugin-webpack/issues/56","id":186007465,"number":56,"title":"Region always set to us-west-2 when using AWS best practices","user":{"login":"atomaka","id":650603,"avatar_url":"https://avatars.githubusercontent.com/u/650603?v=3","gravatar_id":"","url":"https://api.github.com/users/atomaka","html_url":"https://github.com/atomaka","followers_url":"https://api.github.com/users/atomaka/followers","following_url":"https://api.github.com/users/atomaka/following{/other_user}","gists_url":"https://api.github.com/users/atomaka/gists{/gist_id}","starred_url":"https://api.github.com/users/atomaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atomaka/subscriptions","organizations_url":"https://api.github.com/users/atomaka/orgs","repos_url":"https://api.github.com/users/atomaka/repos","events_url":"https://api.github.com/users/atomaka/events{/privacy}","received_events_url":"https://api.github.com/users/atomaka/received_events","type":"User","site_admin":false},"labels":[{"id":244182384,"url":"https://api.github.com/repos/MikaAK/s3-plugin-webpack/labels/bug","name":"bug","color":"fc2929","default":true},{"id":244182386,"url":"https://api.github.com/repos/MikaAK/s3-plugin-webpack/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-28T19:54:01Z","updated_at":"2016-11-09T03:57:14Z","closed_at":null,"body":"- [X] I have read and understood this plugin's README\n- [X] If filing a bug report, I have included my version of node and s3-plugin-webpack\n- [X] If filing a bug report, I have included which OS (including specific OS\n  version) I am using.\n- [X] If filing a bug report, I have included a minimal test case that reproduces\n  my issue.\n- [X] **I understand this is an open-source project staffed by someone with a job and\n  that any help I receive is done on free time. I know I am not entitled to anything and will be polite and courteous.**\n- [X] **I understand my issue may be closed if it becomes obvious I didn't\n  actually perform all of these steps or the issue is not with the library itself**\n# Issue Details\n\nI don't think these are relevant, but to knock off your checklist super quick:\n\nnode version: v5.0.0\ns3-plugin-webpack: `\"webpack-s3-plugin\": \"^0.9.0\"`\nOS: MacOS 10.12.1 (16B2555)\n\nThe README outlines that this plugin supports AWS best practices of for credentials.  I am experiencing an issue with this that can be repeated with the following:\n\n1) Create a set of credentials in AWS\n2) Create an S3 bucket in the \"Standard\" (us-east-1) S3 region\n3) Update your credentials file with\n\n```\n[default]\nregion = us-east-1\naws_access_key_id = YOUR_KEY_ID\naws_secret_access_key = YOUR_ACCESS_KEY\n```\n\n4) Configure S3 Plugin without `s3options`.\n\nWhen doing this, I receive the following error:\n\n```\nERROR in S3Plugin: PermanentRedirect: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.\n```\n\nIf I create a bucket in `us-west-2`, update my configuration to point at it and repeat the test, I receive no error message.\n\nIf I specify `s3options` with `us-east-1`, it works.\n\nThe problem is the result of \n\n```\ns3Options: _.merge({}, DEFAULT_S3_OPTIONS, s3Options)\n```\n\nSince `s3Options` is empty when credentials are provided via AWS best practices, your defaults always make it into the client.\n"},"comment":{"url":"https://api.github.com/repos/MikaAK/s3-plugin-webpack/issues/comments/259329208","html_url":"https://github.com/MikaAK/s3-plugin-webpack/issues/56#issuecomment-259329208","issue_url":"https://api.github.com/repos/MikaAK/s3-plugin-webpack/issues/56","id":259329208,"user":{"login":"atomaka","id":650603,"avatar_url":"https://avatars.githubusercontent.com/u/650603?v=3","gravatar_id":"","url":"https://api.github.com/users/atomaka","html_url":"https://github.com/atomaka","followers_url":"https://api.github.com/users/atomaka/followers","following_url":"https://api.github.com/users/atomaka/following{/other_user}","gists_url":"https://api.github.com/users/atomaka/gists{/gist_id}","starred_url":"https://api.github.com/users/atomaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atomaka/subscriptions","organizations_url":"https://api.github.com/users/atomaka/orgs","repos_url":"https://api.github.com/users/atomaka/repos","events_url":"https://api.github.com/users/atomaka/events{/privacy}","received_events_url":"https://api.github.com/users/atomaka/received_events","type":"User","site_admin":false},"created_at":"2016-11-09T03:57:14Z","updated_at":"2016-11-09T03:57:14Z","body":"@MikaAK The only way I can see this being fixed is complete removal of `DEFAULT_S3_OPTIONS`.  What are your thoughts?"}}
{"actor":{"display_login":"atomaka"}}