# AWS S3 upload - unable to sign request without credentials set

**URL:** <https://meta.discourse.org/t/aws-s3-upload-unable-to-sign-request-without-credentials-set/342266>\
**Category:** Product Support\
**Created:** [December 13, 2024, 11:49am UTC](https://meta.discourse.org/t/aws-s3-upload-unable-to-sign-request-without-credentials-set/342266 "2024-12-13T11:49:41Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Wurzelseppi](https://avatars.discourse-cdn.com/v4/letter/w/eada6e/32.png) [@Wurzelseppi](https://meta.discourse.org/u/Wurzelseppi)\
**Post date:** [December 13, 2024, 11:49am UTC](https://meta.discourse.org/t/aws-s3-upload-unable-to-sign-request-without-credentials-set/342266/1 "2024-12-13T11:49:41Z")

</div>

Hey guys,

I´m using 3.4.0.beta3-dev, and I´m getting the mentioned error (but only in ui, not the logs) when trying to upload an image into a topic.

my config is thus:

```plaintext

["s3_upload_bucket", "<bucketname>/discourse-uploads"],
 ["s3_backup_bucket", "<bucketname>/discourse-backups"],
 ["s3_region", "eu-central-1"],
 ["s3_use_acls", "f"],
 ["enable_direct_s3_uploads", "f"],
 ["enable_s3_uploads", "t"],
 ["s3_access_key_id", ""],
 ["s3_secret_access_key", ""]]

```

and I´m using the ec2 instance profile and override the credentials

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/7/f/c7f1f8cd268729b0f418ebf500e8d5e324a341ee.png)

I get the error in ui:

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/c/8/bc84760a6df42cdf346d2e73e6a8e6ae253e9aaa.png)

but the log is telling me it was ok:

```plaintext
Started POST "/uploads.json?client_id=bb1ab05dbb9d4d1f9930d05f28b17f94" for 10.x.x.x at 2024-12-13 11:46:35 +0000
Processing by UploadsController#create as JSON
  Parameters: {"upload_type"=>"composer", "pasted"=>"true", "name"=>"image.png", "type"=>"image/png", "sha1_checksum"=>"a0f0fe1abd27ce137e0e1b2a28cd9348a08112ff", "file"=>#<ActionDispatch::Http::UploadedFile:0x00007f50b8b01db8 @tempfile=#<Tempfile:/tmp/RackMultipart20241213-386-i7xkqa.png>, @content_type="image/png", @original_filename="image.png", @headers="Content-Disposition: form-data; name=\"file\"; filename=\"image.png\"\r\nContent-Type: image/png\r\n">, "client_id"=>"bb1ab05dbb9d4d1f9930d05f28b17f94"}
Completed 200 OK in 36ms (Views: 0.1ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
Completed 418 in 23ms (Views: 0.2ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.4ms)

```

The bucket is empty afterwards (just setting this up with a fresh bucket)

Any hints ?

Thanks,

WS

---

_[View the full topic](https://meta.discourse.org/t/aws-s3-upload-unable-to-sign-request-without-credentials-set/342266)._
