An error occurred (403) when calling the HeadObject operation: Forbidden

I have deployed the backend with django, which works fine, but I have one issue with the s3 bucket, which I have configured the secret and key in the project environment. Testing the backend on returns An error occurred (403) when calling the HeadObject operation: Forbidden when I’m sending a request to s3.

Testing it locally works fine with the s3 configuration. fly returns An error occurred (403) when calling the HeadObject operation: Forbidden.

Thank you

Did you update Fly Secrets with your S3 environment variables?

Yes, I have added the S3 environment variables. It works well rendering CSS and JS from the S3 bucket static folder, but uploading images is where I’m getting the issue.

An error occurred (403) when calling the HeadObject operation: Forbidden.

Hi @Simpson

Can you share your bucket name and the first 6 characters access key id you used that gives you 403 for HeadObject via help@tigrisdata.com ?

Thanks!
Jigar

Please check the help@tigrisdata.com. I have shared the first 6 characters.