Comments (6)
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.
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.
@aarashy are you still having this issue?
from aws-cli.
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.
Did adjusting the hop limit work? I'd test it before modifying the dockerfile/python code.
from aws-cli.
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)
- list-state-machines does not return all records HOT 2
- aws lambda invoke retries while lambda execution has not failed HOT 1
- Warnings when using Python 3.12 HOT 3
- Unable to generate long-living pre-signed URL HOT 7
- role parameter in eks update-kubeconfig is not being used for aws cli connection HOT 4
- `aws codeartifact login --tool npm` fails with "This command does not support workspaces." HOT 1
- Command to turn versioning on on Digital Ocean Space/Bucket fails with 'argument of type 'NoneType' is not iterable' HOT 4
- InvalidGrantException while refresh auth token HOT 2
- eks list-clusters command return always one-line
- Why is colorama pinned to 0.4.5? HOT 2
- aws s3 type inference should supply a charset for text/ mime types HOT 4
- aws logs tail --follow never exits HOT 5
- RDS Data API Execute Statement for postgres uses wrong secret value for database name
- SSL Validation Error HOT 1
- GetServiceQuota not providing Quota Value HOT 4
- test
- create_login_profile methode return error HOT 1
- max-keys option is undocumented for s3api list-object-versions HOT 2
- cloudformation deploy fails when using SSM Advanced Parameter Share ARN HOT 2
- Support $BROWSER envar HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-cli.