This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-08
Channels
- # adventofcode (9)
- # announcements (5)
- # babashka (3)
- # beginners (46)
- # calva (21)
- # cider (15)
- # clj-kondo (20)
- # cljs-dev (57)
- # cljsrn (10)
- # clojure (147)
- # clojure-dev (6)
- # clojure-europe (3)
- # clojure-france (2)
- # clojure-italy (8)
- # clojure-nl (18)
- # clojure-norway (5)
- # clojure-spec (16)
- # clojure-uk (63)
- # clojuredesign-podcast (7)
- # clojurescript (65)
- # clojurex (42)
- # cursive (12)
- # datomic (10)
- # fulcro (47)
- # graalvm (102)
- # graphql (2)
- # jobs (5)
- # joker (12)
- # off-topic (33)
- # pedestal (6)
- # re-frame (6)
- # reagent (8)
- # reitit (6)
- # remote-jobs (4)
- # rewrite-clj (10)
- # shadow-cljs (86)
- # sql (45)
- # testing (4)
- # tools-deps (43)
- # vim (8)
- # xtdb (3)
Anyone seen this one before? I attached a Service Account to my EKS Cluster with S3ReadOnlyPerms, so it should be able to access it. If I'm using a VPC Endpoint to connect to my Datomic VPC, which VPS Endpoint DNS name am I supposed to use?
{:type clojure.lang.ExceptionInfo
:message Forbidden to read keyfile at s3://<redacted>/datomic/access/admin/.keys. Make sure that your endpoint is correct, and that your ambient AWS credentials allow you to GetObject on the keyfile.
:data {:cognitect.anomalies/category :cognitect.anomalies/forbidden, :cognitect.anomalies/message Forbidden to read keyfile at s3://<redacted>/datomic/access/admin/.keys. Make sure that your endpoint is correct, and that your ambient AWS credentials allow you to GetObject on the keyfile.
Using the VPC Endpoint
You must use the VPC Endpoint DNS (or Route53 entry if you created one) and port 8182 for the :endpoint parameter in your Datomic client configuration when connecting from your VPC:
(def cfg {:server-type :ion
:region "<your AWS Region>" ;; e.g. us-east-1
:system "<system-name>"
:endpoint "http://<VpcEndpointDns>:8182"})
The endpoint DNS name can be found in the Outputs of the VPC Endpoint CloudFormation Stack under the VpcEndpointDns key.
is there some concise idiom for replacing eids in :tx-data
returned by d/transact
or d/with
, so we can see attribute idents at least?
something like
(->> (d/with (d/db conn) [])
((fn [{:keys [db-after tx-data]}]
(map (fn [datom]
(map #(or (d/ident db-after %) %)
((juxt :e :a :v :tx :added) datom)))
tx-data))))
=> ((13194140516868 :db/txInstant #inst"2019-11-08T06:34:31.229-00:00" 13194140516868 true))
I’m getting
http-endpoint fail failed
"Type": "java.lang.IllegalStateException",
"Message": "AsyncContext completed and/or Request lifecycle recycled",
"At": [
"org.eclipse.jetty.server.AsyncContextState",
"state",
"AsyncContextState.java",
54
]
in my datomic logsIs entity/index
a reserved keyword in datomic for schema?
Should be a simple question if someone can answer it regarding transaction functions.
I'm making this call which uses a transaction function update-tags-tx
:
(let [hash (ffirst hashes)
hash-type (second (first hashes))
tx ['(update-tags-tx hash hash-type tags)]]
(d/transact
conn
{:tx-data tx}))
`
But getting Unable to resolve entity: hash-type
which to me means that's not being evaluated due to the '
which makes sense. In the docs (https://docs.datomic.com/cloud/transactions/transaction-functions.html#calling) they use raw values. How can I do this with variables?