What’s the Best Way to Store and Upload Images for My Website?

0
0
Asked By TechieNinja42 On

I'm exploring options for storing images for my website and I know that S3 combined with CloudFront can be a solid choice for hosting images with CDN capabilities. However, I'm curious about the best approach from a developer's standpoint. Should I bundle the images in the app code so they're included in the build, or should I store them separately in S3? If I opt for S3, I'm wondering how to handle uploads. Should I give my fellow developers access to the AWS console, or provide them with credentials to use from their local machines via CLI? These sound a bit cumbersome. Is there a more straightforward way for developers to upload images to the website, or is embedding them into the build the way to go?

1 Answer

Answered By DevGal99 On

What type of app are you building? Generally, you could just place your images in a src/images folder and use the AWS CLI to upload them to your CloudFront S3 site. Are you using tools like CDK or ClickOps for deployment?

TechieNinja42 -

The plan is to dockerize the app within our GitLab pipeline and then deploy it using ECS with Fargate. We're also considering Terraform.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.