Skip to content

Unable to connect to S3 due to I/O timeout #239

Description

@pawank94

Hi team,

I created the docker container on EC2 instance based on Amazon Linux 2023 AMI using following command

docker run --rm -d -e 'AWS_ACCESS_KEY_ID=xxxxxxxxxxx' \
-e 'AWS_SECRET_ACCESS_KEY=xxxxxxxxxxx' \
-p 8921:8080 public.ecr.aws/aws-observability/aws-sigv4-proxy \
--verbose \
--log-failed-requests \
--log-signing-process \
--no-verify-ssl \
--name s3 \
--host s3.amazonaws.com \
--region us-east-1 \
--sign-host s3.amazonaws.com

Running following command curl -s -v http://localhost:8921/xxxxxxxx/packages generated i/o timeout exception.
unable to proxy request - Get "https://s3.amazonaws.com/xxxxxxxx/packages": dial tcp: lookup s3.amazonaws.com on 10.73.52.2:53: read udp 172.17.0.2:41175->10.73.52.2:53: i/o timeout

It is working when I use authorization headers from container logs and make a request from machine directly. It is also working when I connecting to the S3 using AWS CLI.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions