Skip to content

Aws s3 #2226

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Aws s3 #2226

wants to merge 3 commits into from

Conversation

jonodrew
Copy link

@jonodrew jonodrew commented Jul 19, 2025

This is a longer-term plan, but evidences that it is low-complexity to move to S3 for image storage.

Before this is merged, we have to:

  • create an IAM role with S3 access
  • download the credentials for that role
  • set them in the production environment

@jonodrew
Copy link
Author

If we implement this:

  • all admins will need to re-upload sponsor logos
  • we will need an AWS account with an IAM role to access the bucket

This change uses S3 over SFTP for logos. Although it incurs a cost, it is more stable and will therefore result in fewer errors. Long-term, we should think about how long we hold logos for before we delete them
@jonodrew
Copy link
Author

Getting the existing logos might be tricky. If I try to

import requests

requests.get("https://assets.codebar.io/b/uploads/sponsor/avatar/931/logo.png")

I get a 522 error

@jonodrew
Copy link
Author

Screenshot, just to show it's working:
image

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant