ORY hydra on AWS EC2 not found on Create Client reaction commerce

I am hosting a reaction commerce implementation on an EC2 Instance on AWS.
To run this I need 2 hydra tasks (one private and one public one).
To do so I created 2 tasks with this container:
oryd/hydra:v1.0.0-beta.9-alpine
These are temporary test environments so I am oke with sharing them.

These tasks seems to be running fine, but when the create-client script is called. My private load balancer DNS can not be found.
getaddrinfo ENOTFOUND http://internal-bylder-hydra-admin-lb-2098419206.eu-west-2.elb.amazonaws.com http://internal-bylder-hydra-admin-lb-2098419206.eu-west-2.elb.amazonaws.com:80
This is the right loadbalancer address though.
The loadbalancer is open on 80 and 443.
The health check is successful (path: /, successcode:404)

Is there something I am missing in this setup? I can’t figure out what’s wrong.


This is the script that is failing

Please refer to the reaction commerce folks who implemented the js script