1

Writing test cases to test file upload functionality using presigned url. I am running localstack in docker local as aws environment. I am able to test direct upload to local stack, however when I try to upload using presigned url it is failing as my presigned url is generated with https and my local stack is running on http.

Any suggestions on how to test in local?

2
  • 1
    I have the same issue -- After adding the host that localstack returns to my hosts file so it can be resolved, I try and perform the PUT file to the URL, but Localstack returns HTTP 400 and reports "InvalidBucketName" Commented May 1, 2021 at 4:38
  • Any updates on this? Commented Sep 24, 2021 at 7:46

1 Answer 1

1

I suppose it is not possible since the hostname and domain name in the pre-signed URL (.s3..amazonaws.com) would always be resolved to the remote/cloud AWS and not localhost, irrespective of the protocol.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.