{"action":"opened","issue":{"url":"https://api.github.com/repos/weavejester/lein-beanstalk/issues/47","labels_url":"https://api.github.com/repos/weavejester/lein-beanstalk/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/weavejester/lein-beanstalk/issues/47/comments","events_url":"https://api.github.com/repos/weavejester/lein-beanstalk/issues/47/events","html_url":"https://github.com/weavejester/lein-beanstalk/issues/47","id":55434051,"number":47,"title":"AmazonS3Exception when changing the default region","user":{"login":"ilyabo","id":351828,"avatar_url":"https://avatars.githubusercontent.com/u/351828?v=3","gravatar_id":"","url":"https://api.github.com/users/ilyabo","html_url":"https://github.com/ilyabo","followers_url":"https://api.github.com/users/ilyabo/followers","following_url":"https://api.github.com/users/ilyabo/following{/other_user}","gists_url":"https://api.github.com/users/ilyabo/gists{/gist_id}","starred_url":"https://api.github.com/users/ilyabo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilyabo/subscriptions","organizations_url":"https://api.github.com/users/ilyabo/orgs","repos_url":"https://api.github.com/users/ilyabo/repos","events_url":"https://api.github.com/users/ilyabo/events{/privacy}","received_events_url":"https://api.github.com/users/ilyabo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-25T22:57:21Z","updated_at":"2015-01-25T22:57:21Z","closed_at":null,"body":"Changing the default region as described in the documentation causes an exception. For instance, adding the following to project.clj:\r\n\r\n    :aws {:beanstalk {:region \"us-west-2\"}}\r\n\r\nresults in this:\r\n\r\n    com.amazonaws.services.s3.model.AmazonS3Exception: The bucket you are attempting to access must be \r\n    addressed using the specified endpoint. Please send all future requests to this endpoint.\r\n     at com.amazonaws.http.AmazonHttpClient.handleErrorResponse (AmazonHttpClient.java:614)\r\n        com.amazonaws.http.AmazonHttpClient.executeHelper (AmazonHttpClient.java:312)\r\n        com.amazonaws.http.AmazonHttpClient.execute (AmazonHttpClient.java:165)\r\n        com.amazonaws.services.s3.AmazonS3Client.invoke (AmazonS3Client.java:2966)\r\n        com.amazonaws.services.s3.AmazonS3Client.putObject (AmazonS3Client.java:1137)\r\n        com.amazonaws.services.s3.AmazonS3Client.putObject (AmazonS3Client.java:993)\r\n        leiningen.beanstalk.aws$s3_upload_file.invoke (aws.clj:87)\r\n        leiningen.beanstalk$deploy.invoke (beanstalk.clj:40)\r\n        clojure.lang.AFn.applyToHelper (AFn.java:156)\r\n        clojure.lang.AFn.applyTo (AFn.java:144)\r\n        clojure.core$apply.invoke (core.clj:626)\r\n        leiningen.beanstalk$beanstalk.doInvoke (beanstalk.clj:126)\r\n        clojure.lang.RestFn.invoke (RestFn.java:442)\r\n        clojure.lang.Var.invoke (Var.java:388)\r\n        clojure.lang.AFn.applyToHelper (AFn.java:160)\r\n        clojure.lang.Var.applyTo (Var.java:700)\r\n        clojure.core$apply.invoke (core.clj:626)\r\n        leiningen.core.main$partial_task$fn__6071.doInvoke (main.clj:253)\r\n        clojure.lang.RestFn.applyTo (RestFn.java:139)\r\n        clojure.lang.AFunction$1.doInvoke (AFunction.java:29)\r\n        clojure.lang.RestFn.applyTo (RestFn.java:137)\r\n        clojure.core$apply.invoke (core.clj:626)\r\n        leiningen.core.main$apply_task.invoke (main.clj:303)\r\n        lein_environ.plugin$write_env_to_file.invoke (plugin.clj:11)\r\n        clojure.lang.Var.invoke (Var.java:394)\r\n        clojure.lang.AFn.applyToHelper (AFn.java:165)\r\n        clojure.lang.Var.applyTo (Var.java:700)\r\n        clojure.core$apply.invoke (core.clj:626)\r\n        robert.hooke$compose_hooks$fn__11692.doInvoke (hooke.clj:40)\r\n        clojure.lang.RestFn.applyTo (RestFn.java:137)\r\n        clojure.core$apply.invoke (core.clj:624)\r\n        robert.hooke$run_hooks.invoke (hooke.clj:46)\r\n        robert.hooke$prepare_for_hooks$fn__11697$fn__11698.doInvoke (hooke.clj:54)\r\n        clojure.lang.RestFn.applyTo (RestFn.java:137)\r\n        clojure.lang.AFunction$1.doInvoke (AFunction.java:29)\r\n        clojure.lang.RestFn.invoke (RestFn.java:436)\r\n        leiningen.core.main$resolve_and_apply.invoke (main.clj:309)\r\n        leiningen.core.main$_main$fn__6136.invoke (main.clj:377)\r\n        leiningen.core.main$_main.doInvoke (main.clj:366)\r\n        clojure.lang.RestFn.invoke (RestFn.java:436)\r\n        clojure.lang.Var.invoke (Var.java:388)\r\n        clojure.lang.AFn.applyToHelper (AFn.java:160)\r\n        clojure.lang.Var.applyTo (Var.java:700)\r\n        clojure.core$apply.invoke (core.clj:624)\r\n        clojure.main$main_opt.invoke (main.clj:315)\r\n        clojure.main$main.doInvoke (main.clj:420)\r\n        clojure.lang.RestFn.invoke (RestFn.java:482)\r\n        clojure.lang.Var.invoke (Var.java:401)\r\n        clojure.lang.AFn.applyToHelper (AFn.java:171)\r\n        clojure.lang.Var.applyTo (Var.java:700)\r\n        clojure.main.main (main.java:37)\r\n"}}