1

I am trying to deploy JHipster registry to ECS - that's an OOTB 7.1.0 image. I created an ECS task, overriding the environment variables in the container definition:

Overriden environment variables

I also updated EUREKA_CLIENT_SERVICEURL_DEFAULTZONE and EUREKA_INSTANCE_HOSTNAME env. variables to point to the correct service discovery URLs, but I keep on getting UnknownHostException when the registry starts:

UnknownHostException

So it looks like some vars are picked up, while Eureka URLs are still using the defaults... In turn, I am not getting any instances registered:

Empty Eureka page

Am I just missing how it all works? Any help is greatly appreciated!

Vanessa S.
  • 21
  • 1
  • While there were issues with that config before (e.g. https://github.com/spring-cloud/spring-cloud-netflix/issues/2541), locally, when I start docker container "-e EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=X", it seems to be picked up just fine.... – Vanessa S. Nov 05 '21 at 20:52

1 Answers1

0

Maybe this tutorial will he

Jhipster Registry on ECS Tutorial

Anthony Piñero
  • 616
  • 5
  • 10
  • Thank you for taking a look, Anthony! I actually gave up on trying to figure it out with ECS. Ended up switching to EKS instead where it all worked like charm! – Vanessa S. Nov 18 '21 at 23:13
  • I did somethig with this guide https://www.jhipster.tech/aws/ using AWS Elastic Beanstalk just one command i just see some problem with se tomcat version but the deploy was fine. – Anthony Piñero Nov 19 '21 at 07:28
  • EKS it's nice but it's expensive, i'm working on some project to be fast and cheaper to deploy jhipster but with quarkus... follow me on twitter @aapiro... – Anthony Piñero Mar 15 '22 at 00:51