500 error in AWS s3 code

I have values entered for the following:

  • SiteSetting.s3_access_key_id
  • SiteSetting.s3_backup_bucket
  • SiteSetting.s3_region
  • SiteSetting.s3_secret_access_key
  • SiteSetting.s3_use_iam_profile (= false)

EDIT: also had SiteSetting.enable_s3_uploads set

Not set:

  • SiteSetting.s3_cdn_url
  • SiteSetting.s3_upload_bucket

As I understand it, the values look reasonable.

Could it be that the problem arises because I have set SiteSetting.s3_backup_bucket, but not SiteSetting.s3_upload_bucket? That seems reasonable to do in that I’m curently concerned with off-site backups, not storing uploads off-site, but perhaps it doesn’t work to do this?