This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-10-23
Channels
- # aws-lambda (2)
- # beginners (40)
- # calva (9)
- # cider (17)
- # clojure (84)
- # clojure-europe (13)
- # clojure-nl (1)
- # clojure-norway (77)
- # clojure-uk (26)
- # conjure (1)
- # cursive (7)
- # datomic (7)
- # events (1)
- # exercism (1)
- # gratitude (2)
- # hyperfiddle (4)
- # improve-getting-started (10)
- # jobs-discuss (12)
- # malli (4)
- # missionary (12)
- # off-topic (22)
- # other-languages (4)
- # pedestal (3)
- # portal (6)
- # reagent (6)
- # reitit (1)
- # releases (1)
- # ring (4)
- # shadow-cljs (2)
- # thejaloniki (2)
- # tools-build (27)
- # tools-deps (4)
- # vim (6)
Hi!
I’ve just created Datomic Pro transactor on an EC2 instance. I can reach it on localhost. But I can’t reach it from the outside — not even an EC2 instance on the same VPC
The weird thing is, this used to work — I exited & restarted a test bin/transactor
that I started months ago, and it just stopped working!
Naturally, I tried the bin/datomic create-cf-stack ...
, but doesn’t work either
Does anyone know what’s happening?
# I can telnet to this successfully, no matter where. So it's not a
# firewall problem.
$ nc -lk -p 4334
# I can only telnet to this on localhost. Not from another EC2
# instance on the same VPC nor anywhere else.
#
# I even tried setting `aws-ingress-cidrs=0.0.0.0/0` in the
# properties file, but doesn't work.
$ bin/transactor -Ddatomic.printConnectionInfo=true -Ddatomic.log=console config/my.properties
My properties file:
protocol=ddb
host=localhost
port=4334
alt-host=ec2-....us-east-1.compute.amazonaws.com
aws-ingress-cidrs=0.0.0.0/0
aws-dynamodb-table=foo-abdce
aws-dynamodb-region=us-east-1
aws-transactor-role=datomic-aws-transactor-7
aws-peer-role=datomic-aws-peer-7
memory-index-threshold=32m
memory-index-max=256m
object-cache-max=128m
does it work if you set host to 0.0.0.0
?
I also see a us-west-2 ec2 alt-host and a us-east-1 dynamodb region
Ah yes, thanks, yeah I anonymized this example’s region, but forgot to change that part 😛
Aha! Thanks, it looks like it works, at least in my telnet smoke-test! Ok, let’s see if it works as a transactor serving ddb…