{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/2774","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/2774/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/2774/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/2774/events","html_url":"https://github.com/hashicorp/terraform/issues/2774","id":95765916,"number":2774,"title":"AuthorizationHeaderMalformed for S3 remote","user":{"login":"rvangundy","id":1909616,"avatar_url":"https://avatars.githubusercontent.com/u/1909616?v=3","gravatar_id":"","url":"https://api.github.com/users/rvangundy","html_url":"https://github.com/rvangundy","followers_url":"https://api.github.com/users/rvangundy/followers","following_url":"https://api.github.com/users/rvangundy/following{/other_user}","gists_url":"https://api.github.com/users/rvangundy/gists{/gist_id}","starred_url":"https://api.github.com/users/rvangundy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rvangundy/subscriptions","organizations_url":"https://api.github.com/users/rvangundy/orgs","repos_url":"https://api.github.com/users/rvangundy/repos","events_url":"https://api.github.com/users/rvangundy/events{/privacy}","received_events_url":"https://api.github.com/users/rvangundy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/terraform/labels/core","name":"core","color":"cccccc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-17T23:42:07Z","updated_at":"2015-07-29T14:39:09Z","closed_at":null,"body":"I'm using S3 remote and configuring with the following command:\r\n\r\n```\r\nterraform remote config -backend=S3 -backend-config=\"bucket=test\" -backend-config=\"key=terraform.tfstate\" -backend-config=\"region=us-east-1\"\r\n```\r\n\r\nAnd getting the following error:\r\n\r\n```\r\nError reloading remote state: AuthorizationHeaderMalformed: The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'eu-west-1'\r\n\tstatus code: 400, request id: []\r\n```\r\n\r\nI'm using the same access and secret keys that I normally use so this seems like a bug in the way Terraform is authorizing with S3."},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/125972365","html_url":"https://github.com/hashicorp/terraform/issues/2774#issuecomment-125972365","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/2774","id":125972365,"user":{"login":"phinze","id":37534,"avatar_url":"https://avatars.githubusercontent.com/u/37534?v=3","gravatar_id":"","url":"https://api.github.com/users/phinze","html_url":"https://github.com/phinze","followers_url":"https://api.github.com/users/phinze/followers","following_url":"https://api.github.com/users/phinze/following{/other_user}","gists_url":"https://api.github.com/users/phinze/gists{/gist_id}","starred_url":"https://api.github.com/users/phinze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phinze/subscriptions","organizations_url":"https://api.github.com/users/phinze/orgs","repos_url":"https://api.github.com/users/phinze/repos","events_url":"https://api.github.com/users/phinze/events{/privacy}","received_events_url":"https://api.github.com/users/phinze/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T14:39:09Z","updated_at":"2015-07-29T14:39:09Z","body":"@rvangundy that's definitely a weird one - when you hit this error, do you have `AWS_REGION` or `AWS_DEFAULT_REGION` env vars set? Just trying to figure out the steps to reproduce."}}