Skip to content

ec2-metadata honors HTTP_PROXY environment variable #52

@pplu

Description

@pplu

When running ec2-metadata with an http_proxy environment variable set, it will use the proxy defined there, effectively retrieving the metadata from of the proxy server.

This can confuse users, which consider that ec2-metadata returns the metadata from the current instance

This can be worked around by setting environment variable NO_PROXY=169.254.169.254, but this has to be known by the caller to appropiately set before invoking ec2-metadata. IMHO ec2-metadata should return the metadata of the instance it runs on regardless of the proxy settings in environment variables.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions