This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-23
Channels
- # aleph (1)
- # architecture (4)
- # aws (7)
- # beginners (249)
- # boot (17)
- # calva (4)
- # cider (30)
- # cljdoc (7)
- # cljs-dev (1)
- # cljs-experience (3)
- # clojure (69)
- # clojure-dev (7)
- # clojure-europe (1)
- # clojure-italy (7)
- # clojure-japan (15)
- # clojure-spec (6)
- # clojure-uk (39)
- # clojurescript (51)
- # cursive (31)
- # data-science (4)
- # datavis (1)
- # datomic (40)
- # dirac (67)
- # duct (8)
- # editors (15)
- # emacs (9)
- # events (3)
- # figwheel-main (2)
- # fulcro (157)
- # juxt (4)
- # kaocha (11)
- # lein-figwheel (1)
- # off-topic (31)
- # pathom (18)
- # re-frame (4)
- # reagent (2)
- # reitit (16)
- # remote-jobs (1)
- # shadow-cljs (11)
- # specter (2)
- # speculative (1)
- # tools-deps (27)
- # vim (1)
- # yada (2)
I’m trying to use the S3 API:
(aws/invoke s3 {:op :CreateBucket :request {:Bucket bucket-name}})
but I’m getting:
{:Code "IllegalLocationConstraintException",
:Message
"The unspecified location constraint is incompatible for the region specific endpoint this request was sent to.",
:RequestId "8542E011B3C15E87",
:HostId
"25VZAk6+s/7WJBfr2vHu4TOL36kJo0EXR9eMz1maK4OCanDnGQjU1cZeNPbtbGTxwUAwOPg1Xrc="}
it sounds like I need to specify the LocationConstraint
but I can’t figure out how to do that with aws/invoke
(aws/invoke s3 {:op :CreateBucket :request {:Bucket bucket-name
:LocationConstraint "us-west-2"}})
ah:
(aws/invoke s3-client {:op :CreateBucket :request {:Bucket "my-unique-bucket-name"
:CreateBucketConfiguration {:LocationConstraint "us-west-2"}}})
found in https://github.com/cognitect-labs/aws-api/pull/28/files
>_<