Description
The AwsFargateMetadataFetcher class uses the built in URL class as a simple mechanism to GET on an ECS fargate endpoint to grab metadata about the instance. If the customer has a proxy configured via the http.proxy* or https.proxy* system properties, the URL class will utilize the proxy config. This is problematic since the metadata endpoint is an internal IP and not reachable through a proxy.
This change would introduce a new config setting to prevent the URL class for honoring any proxy settings. If set to true, the URL openConnection() would change to url.openConnection(Proxy.NO_PROXY). Default value will be false (current behavior).
Configuration
cloud:
aws:
fargate_metadata_endpoint_proxy_disable: false