Skip to content

wget can't access aws metadata #15

@Trandel

Description

@Trandel

Hi,

I'm using your image for some automation and it worked great for a year or more but the new version of the image stopped working.

I was using the latest tag:
mesosphere/aws-cli latest f699e09bef16 10 months ago 97.8MB

and running this command inside:

aws ec2 associate-address --instance-id `wget -qO- http://169.254.169.254/latest/meta-data/instance-id` --allocation-id #ID# --allow-reassociation

Everything was fine but now with the new version I'm getting:
wget: error getting response

The same is for 1.11.188.

The problem seems to be this part: wget -qO- http://169.254.169.254/latest/meta-data/instance-id.

To replicate it you need to run it on AWS ec2 so it will have access to AWS meta-data url.

I've copied your working version to my docker hub account just to have a working image:
https://hub.docker.com/r/trandel/aws-cli/

I hope you will have some time to look at it.

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions