Rancher hazelcast cluster issues AWS

When trying to deploy application using Rancher which uses Hazelcast is throwing error. The Rancher hosts are in AWS. The rancher is able to deploy application 2 nodes out of three, in the third node it is throwing error.

====
2019-04-25 10:18:47,312 - INFO - c .h .n .t .n. NonBlockingIOThreadingModel - [xxxxxx:5100 [hz-stage-cluster] [3.7.7] TcpIpConnectionManager configured with Non Blocking IO-threading model: 3 input thr
eads and 3 output threads
2019-04-25 10:18:47,474 - WARN - c.h.c.i.TcpIpJoinerOverAWS - [xxxxxx]: 5100 [hz-stage-cluster] [3.7.7] ec2. us-west-1. amazonaws .com
java.net.UnknownHostException: ec2. us-west-1 .amazonaws .com
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl .java:184)
at java .net .SocksSocketImpl.connect(SocksSocketImpl .java :392)

2019-04-25 10:18:47,477 - ERROR - c .h. c .i. TcpIpJoinerOverAWS - [xxxxxx] :5100 [hz-stage-cluster] [3.7.7] java .net. UnknownHostException: ec2 . us- west-1. amazonaws.com
com.hazelcast.core.HazelcastException: java. net. UnknownHostException: ec2 .us -west-1. amazonaws .com

When deploying application manually it is working fine. Any insight would be helpful.

Thanks
Sre