title: Service Discovery not working with Route 53 and ECS Nginx container Hosting Angular code
body: <p>I am having static UI pages making REST api calls to other ECS-Fargate containers. The static pages are hosted again in a container having Nginx. The api calls are not getting resolved by the route 53 DNS service. If I spin up an EC2 instance and use nslookup then the address translation is taking place correctly.  </p>
  
  <p>All the containers are in the same subnet and only Nginx-Angular container has a public ip address. I wish to access the Nginx-Angular container over the internet which will make api calls to other ECS Fargate containers. Please advise.</p>
  
  <p>nginx.conf</p>
  
  <pre><code>worker_processes  1;
  
  events {
      worker_connections  1024;
  }
  
  http {
      server {
         #listen 80;
         server_name  localhost;
         ssl_certificate /etc/nginx/ssl/nginx.crt;
         ssl_certificate_key /etc/nginx/ssl/nginx.key;
  
         listen 443 ssl;
         root /usr/share/nginx/html/login-ui;
         index  index.html index.htm;
         include /etc/nginx/mime.types;
  
         gzip on;
         gzip_min_length 1000;
         gzip_proxied expired no-cache no-store private auth;
         gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  
         location / {
             try_files $uri $uri/ /index.html;
         }
  }
  </code></pre>