localstack / awscli-local

💲 "awslocal" - Thin wrapper around the "aws" command line interface for use with LocalStack
Apache License 2.0
1.09k stars 86 forks source link

s3api not automatic wrap localstack endpoint #58

Closed ghost closed 1 year ago

ghost commented 2 years ago

If you are using awslocal s3api to create bucket its not wrapping the endpoint for LocalStack you need to add the endpoint self.

awslocal s3api create-bucket \
    --bucket {bucket-name} \
    --endpoint-url=http://localhost:4566

Shoud be a option to do, whitout defineding the endpoint.

awslocal s3api create-bucket \
    --bucket {bucket-name}
whummer commented 2 years ago

Thanks for reporting @ParisNakitaKejser-EB . This should be working in the meantime:

$ awslocal s3api create-bucket --bucket test123
{
    "Location": "/test123"
}

Can you please pull the latest Docker image (docker pull localstack/localstack) and install the latest version of the awslocal command line. Please keep us posted on how it goes.. Thanks!

bentsku commented 1 year ago

I'll close the issue as there has been no response since a year. This should be fixed! Thanks for the report