cloudyr / aws.s3

Amazon Simple Storage Service (S3) API Client
https://cloud.r-project.org/package=aws.s3
381 stars 147 forks source link

Connecting to localstack #434

Open rabalasubramani3 opened 7 months ago

rabalasubramani3 commented 7 months ago

Has anyone successfully connect to localstack with this package. I tried setting endpoint_url

Sys.setenv( "AWS_ACCESS_KEY_ID"="foo", "AWS_SECRET_ACCESS_KEY"="bar", "AWS_DEFAULT_REGION"="us-east-1", "AWS_S3_ENDPOINT"="http://localhost:4566" )

and calling bucketlist()

will return an error like this.

500 Could not resolve host: us-east-1.http

Tried various combinations for AWS_S3_ENDPOINT like

localhost:4566 localstack:4566 host.docker.internal:4566 localhost.localstack.cloud:4566

None of them seem to work.

Any help appreicated.