Fork me on GitHub
#datomic
<
2019-05-18
>
wei07:05:48

is there a way to give my EC2 instance running outside the Datomic Cloud access to Datomic?

Jakub Holý (HolyJak)15:05:06

you mean in a different VPC? then I guess need to tunnel through the bastion just as when doing local dev or configure VPC peering or some newer VPC tricks

wei07:05:20

right, now I'm thinking for my system it'd be easier to communicate via SQS or some other message bus than direct access to the DB

kardan07:05:21

I have an Ion running with a API Gateway custom domain, accessable at https://example.com/d but I can’t seem to understand how to go about hosting the naked domain. Has anyone been able to host a site from within an Ion on the naked domain? I’m playing around to learn Ions & API Gateway and thought it would be handy to host the entire SPA from the Ion. But I’m starting to think API Gateway really wants to host an API 🙂

steveb8n08:05:09

I'd like to know this as well if you find the answer

👍 4
Joe Lane17:05:03

For this I always host the static assets out of cloudfront backed by an S3 bucket. I know its possible to host static assets on ions using pedestal.ions.

henrik19:05:39

Create a CloudFront distribution for the AG URL, point your domain to the CloudFront URL. Also makes serving static resources from S3 optional since they will be sitting cached in the edge network anyway.

henrik19:05:11

I've also managed to set it up with Route53 pointing directly to AG, but I don't remember the settings right now.

henrik19:05:17

I'm serving static resources directly from an Ion using Reitit by the way, so Pedestal is optional.

kardan06:05:35

I did a quick test with a baby in my lap (so no extensive testing) and by adding a metod to the initial / (not proxy) it looks to work

kardan06:05:46

thanks for the pointers

euccastro10:05:49

I did that, but I no longer have that datomic account running and I don't remember the details, sorry 😕

euccastro10:05:31

that was with the old API gateway to AWS lambda bridge; I haven't done this with the new HTTP Direct thing

euccastro10:05:49

IIRC you need an ANY method execution both at the root (/) and at /{proxy+}

euccastro11:05:16

both with the same configuration, pointing at your Lambda

currentoor21:05:13

In the :where clause of a d/q are we allowed to call any function we have defined in our code? Or only the ones in clojure core?

currentoor21:05:09

I’m running into the same issue as this guy