Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for EC2 IMDS endpoint from environment variable #3504

Merged
merged 3 commits into from
Aug 28, 2020

Commits on Aug 26, 2020

  1. Add support for EC2 IMDS endpoint from environment variable

    Adds support for specifying a custom EC2 IMDS endpoint from the
    environment variable, `AWS_EC2_METADATA_SERVICE_ENDPOINT`.
    
    The `aws/session#Options` struct also has a new field,
    `EC2IMDSEndpoint`. This field can be used to configure the custom
    endpoint of the EC2 IMDS client. The option only applies to EC2 IMDS
    clients created after the Session with EC2IMDSEndpoint is specified.
    
    ```go
    sess, err := session.NewSessionWithOptions(session.Options{
    	EC2IMDSEndpoint: "http://[::1]",
    })
    ```
    jasdel committed Aug 26, 2020
    Configuration menu
    Copy the full SHA
    c86b25c View commit details
    Browse the repository at this point in the history
  2. fixup unit test

    jasdel committed Aug 26, 2020
    Configuration menu
    Copy the full SHA
    ce3ffcd View commit details
    Browse the repository at this point in the history
  3. add change log

    jasdel committed Aug 26, 2020
    Configuration menu
    Copy the full SHA
    ffb2b8b View commit details
    Browse the repository at this point in the history