Elastic agent uses configured proxy to get metadata apis

.\elastic-agent.exe install --url=https://id.fleet.us-east-1.aws.found.io:443 --enrollment-token=l --proxy-url=proxyurl

Hi aleccoder, welcome to the community!

Based on the logs it doesn't seem to be anything to do with the proxy, the IP seems to be static for AWS EC2: Understanding EC2 Instance Metadata Service V2 (IMDSv2) and Its Application | by Jason Anderson | Mar, 2024 | Medium