-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Description
Describe the bug
When you run: aws ecr get-login-password
from an ipv6 machine, it eventually times out as it can't establish a connection to ecr with the default endpoint (as you're required to use the dualstack endpoint, which has a separate address).
However when you run aws cloudwatch list-metrics
from an ipv6 machine the command hangs indefinitely, which suggests a missing timeout in the codebase.
Regression Issue
- Select this option if this issue appears to be a regression.
Expected Behavior
Either it works successfully or it times out.
Current Behavior
Program does not halt.
Reproduction Steps
Spin up a ipv6 only ec2 box.
Observe that aws secretsmanager list-secrets
works correctly (as its default endpoint supports ipv6).
Observe that aws ecr get-login-password
times out after some number of minutes.
Observe that aws cloudwatch list-metrics --debug
runs seemingly indefinitely.
Possible Solution
Fix your timeouts ideally. But of course I'd love if aws's ipv6 support was improved as well of course.
Additional Information/Context
Spinning up ipv6 only boxes these days is actually quite easy.
CLI version used
aws-cli/2.25.0 Python/3.13.3 Linux/6.14.6-300.fc42.aarch64 source/aarch64.fedora.42
Environment details (OS name and version, etc.)
Fedora on us-east-2