This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-21
Channels
- # aws (2)
- # aws-lambda (1)
- # beginners (62)
- # cider (31)
- # cljs-dev (16)
- # cljsrn (8)
- # clojure (115)
- # clojure-greece (3)
- # clojure-israel (2)
- # clojure-italy (13)
- # clojure-nl (8)
- # clojure-russia (5)
- # clojure-spec (3)
- # clojure-uk (146)
- # clojurescript (108)
- # clojutre (5)
- # code-reviews (3)
- # cursive (48)
- # datomic (22)
- # editors (20)
- # emacs (7)
- # fulcro (16)
- # graphql (10)
- # mount (2)
- # off-topic (47)
- # onyx (22)
- # re-frame (100)
- # reagent (5)
- # reitit (7)
- # ring-swagger (6)
- # rum (5)
- # shadow-cljs (51)
- # specter (2)
- # tools-deps (95)
- # vim (10)
- # yada (7)
video of Stuart Halloway's TriClojure talk introducing Datomic Ions https://www.youtube.com/watch?v=3BRO-Xb32Ic
I'm following the cloud tutorial https://docs.datomic.com/cloud/setting-up.html
and I've gotten all the way to the part where you try to connect to aws from the repl
but this is what I get
user=> (def client (d/client cfg))
ExceptionInfo Unable to connect to system: #:cognitect.anomalies{:category :cognitect.anomalies/not-found, :message ": Name or service not known"} clojure.core/ex-info (core.clj:4739)
my endpoint key in the cfg map looks exactly like it does in the cloudformation console
Your :system-name
and :query-group
values in the cfg map are both gdeer81
?
I don’t know that this would cause that problem, that’s just how I have my working REPL/socks setup set up
question about Ions: if I run say items-by-type
out of ion-starter
at the REPL I get a nice pretty string with an array of arrays in it, suitable for such activities as deserializing into JSON
when I invoke that ion as a Lambda, however, I get a nice pretty string that is the first string wrapped in a hashset (e.g., "#{[[...stuff...]]}"
)
This presents a problem if I want to then deserialize the result of a Lambda execution somewhere. Is that extra #{...}
wrapper Lambda the Ultimate’s doing? Is there a way to “turn it off”?
(apologies if this is answered in the video above, which I haven’t gotten a chance to watch. Stupid linear time!)
didn't realize you were asking me if the sys name and query were the same, thought you were asking me why
{:server-type :ion,
:region "us-west-2",
:system "gdeer81",
:query-group "gdeer81",
:endpoint " "}
the helpful Slack message is coming from inside the house! 😄
aws ec2 describe-instances --filters "Name=tag-key,Values=datomic:tx-group" "Name=instance-state-name,Values=running" --query 'Reservations[].Instances[].[Tags[?Key==`datomic:system`].Value]' --output text
aws ec2 describe-instances --filters "Name=tag-key,Values=datomic:tx-group" "Name=instance-state-name,Values=running" --query 'Reservations[*].Instances[*].[Tags[?Key==
datomic:system`].Value]' --output text`