Git Product home page Git Product logo

Comments (6)

RyanFitzSimmonsAK avatar RyanFitzSimmonsAK commented on July 18, 2024

Hi @aarashy, thanks for reaching out. Could you tell me how you're configuring the CLI region? Also, since you're running it in a container, I'd recommend reading https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html, specifically the following.

In a container environment, we recommend setting the hop limit to 2.

The AWS SDKs use IMDSv2 calls by default. If the IMDSv2 call receives no response, the SDK retries the call and, if still unsuccessful, uses IMDSv1. This can result in a delay, especially in a container environment. In a container environment, if the hop limit is 1, the IMDSv2 response does not return because going to the container is considered an additional network hop. To avoid the process of falling back to IMDSv1 and the resultant delay, in a container environment we recommend that you set the hop limit to 2. For more information, see Configure the instance metadata options.

from aws-cli.

aarashy avatar aarashy commented on July 18, 2024

Yeah, this was in a container environment (EKS). Let me try setting that parameter for hop limit. It was strange that it works on the old version with no changes needed, and didn't give a reasonable error message though.

from aws-cli.

sean-smith avatar sean-smith commented on July 18, 2024

@aarashy are you still having this issue?

from aws-cli.

aarashy avatar aarashy commented on July 18, 2024

Hey @sean-smith, I haven't tried again yet, will update here when I do.

I suppose this means that in any container environment, I have to make this AWS cli command at least once first, which permanently changes the local state of the host. It's not clear to me yet if this applies to Python SDKs like boto3 as well, where I haven't seen the error.

from aws-cli.

sean-smith avatar sean-smith commented on July 18, 2024

Did adjusting the hop limit work? I'd test it before modifying the dockerfile/python code.

from aws-cli.

github-actions avatar github-actions commented on July 18, 2024

Greetings! It looks like this issue hasn’t been active in longer than five days. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one.

from aws-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.