This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-08
Channels
- # aws (4)
- # beginners (81)
- # boot (65)
- # cljs-dev (10)
- # cljsjs (1)
- # cljsrn (12)
- # clojure (26)
- # clojure-austin (2)
- # clojure-dusseldorf (2)
- # clojure-russia (123)
- # clojure-spec (23)
- # clojure-uk (12)
- # clojurescript (36)
- # cursive (11)
- # datomic (39)
- # events (1)
- # hoplon (25)
- # incanter (4)
- # leiningen (3)
- # off-topic (5)
- # om (31)
- # re-frame (24)
- # reagent (13)
- # ring-swagger (2)
- # rum (10)
- # untangled (3)
- # yada (10)
anyone running datomic on AWS? I’m trying to set it up, but the docs, and the video they reference (which is pretty old) don’t seem to line up. The video has you run an ‘ensure-transactor’ subcommand which isn’t enumerated in the text just wondering what’s actually authoritative
i tried to create one on aws and the ec2 instance just went from starting - running - stopping - terminated over and over again for an hour
I’m actually running Datomic transactors in AWS in production, using the stock CF template/stack right now
the instance will log to an S3 bucket - when you get that starting - running - stopping - terminated cycle over and over you can go look in the logs bucket to see what’s up. In my experience it’s usually a problem with not being able to “see” the DynamoDB storage (either the URI is wrong or the roles have been misconfigured somehow)
yeah it wasnt creating the s3 bucket, that's a big reason why i gave up. i suspect it was due to a security privilege (all though i gave it full access to s3:* or w/e the security format is), if i try again i'm just going to give the user full access to everything (scary).
Hey y’all. I have written a simple datomic library to make your lives easier. If someone could give me feed back regarding anything. I’d really appreciate it: https://github.com/petergarbers/molecule
It’s a simple datomic wrapper that removes a lot of the cruft around writing queries. I’ve found it to be extremely useful
@petr, your first example looks like you're re-inventing lookup refs
@pesterhazy Hmm interesting. That’s not what I was trying to show. That could be any value. I just chose to use a ref there. Do you think a different example would be better?
not sure
the other thing is that hiding the datomic connection (as an implicit argument) is frowned upon by some (unless you only intend the library as a convenience for the repl)
@chris_johnson i’d not configured the bucket name, in the transactor config, so I redid everything and recreated the stack. So the bucket has been created, but whatever’s failing is doing so before it manages to dump any logs
@pesterhazy I’m assuming you’re referring to the database value? It’s actually an optional argument. I should add that to the documentation. In my usage of datomic I have usually wanted the latest value of the database
still it's better to explicitly call d/db
once (at the beginning of a request handler, say) and then use the same value for the same piece of work
that way you get a consistent "view of the world"
@pesterhazy I agree with that. A lot of the time I have found would be a rest endpoint where I’m retrieving a value and just returning that object in JSON format. Using this library there is nothing stopping you from explicitly calling d/db
at the beginning of the request and passing it as such (m/entities <db from wherever> {:something/else “moo”})
the point is, that should be the default IMO, unless you're exploring from the repl
Because there is nothing stopping anybody from doing that as their way of doing things in their own app
@eoliphant thats what happened to me. and why i gave up. p.s. the docs say that if you leave the bucket name empty it will create one for you (it never did for me, i then tried manually and it still didnt log)
yeah this is annoying lol, it’s probably something simple, was trying to avoid having to stand one up by hand
but it's not hard to start an empty ec2 instance and just ssh into the box and configure it all myself
yeah, gonna give it a whirl, we actually do a lot of aws stuff. CF is great when everything works lol. We actually use another tool called Terraform as well for setting stuff up on AWS.