Not able to add AWS host to Rancher server Via proxy

Folks !
I am trying to add an AWS EC2 host to rancher server via UI but for some reason it is not working throwing a Timeout Error

root 8 6 14 14:58 ? 00:00:45 java -Xms128m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/lib/cattle/logs -Dlogback.bootstrap.level=WARN -Dhttp.proxyHost=proxy.mydomain.com -Dhttp.proxyPort=80/ -Dhttps.proxyHost=proxy.mydomain.com -Dhttps.proxyPort=80/ -cp /usr/share/cattle/c592f277c49e73822b95285c83f2d9cc:/usr/share/cattle/c592f277c49e73822b95285c83f2d9cc/etc/cattle io.cattle.platform.launcher.Main

my proxy setting seems to be appropriate in the cattle process .

cattle-debug.log shows below error message
api.request.ApiRequest@17f9c79] org.apache.http.conn.ConnectTimeoutException: Connect to ec2.us-west-2.amazonaws.com:443 [ec2.us-west-2.amazonaws.com/54.240.
251.0] failed: Connection timed out
at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:136) ~[httpclient-4.3.1.jar:4.3.1]

“CATTLE_RANCHER_SERVER_IMAGE=v0.59.1”,

Can you please guide me to find what is wrong with the configuration .

Thanks
Robin R

reply from @cloudnautique

I spoke with some of the other developers, and we will need to change a setting on our end to have our proxy end point support the http_proxy variables. We hadn’t done this yet, because SSH is needed and typically not allowed out in proxied environments, so the setting wouldn’t have enabled the feature. Since your team has peering with AWS, the SSH part should not be an issue for you. We are looking to add the setting in a near future release.

In the meantime, you can still use Rancher with AWS, you can provision an instance as you normally would through AWS console or AWS cli and run the “Custom command” on the host. You can find the custom command under the “Add Host” button, and instead of AWS, select “Custom”.

http://docs.rancher.com/rancher/rancher-ui/infrastructure/hosts/custom/

To automate the process, we have seen simple cloud-init scripts passed through user-data work well. Some others with full on configuration management registering the agent etc. Also, we have seen users create autoscaling groups that spin up nodes that auto-register with Rancher. Lots of options.

Please let me know if you have any questions, or run into issues. We will let you know when the setting has made it into an RC release.