I am using AWS dynamodb to store users data. Now I want to add profile images, images can be uploaded by users. Initially I thought of using S3 but after calculating price I decided to use own server for images and dynamodb to store user data.
For simplicity, lets say my user data at AWS dynamo looks like this:
{
name:"Tom",
profile_img:"https://myserver.com/a/b/c/d/4rwffdsg344322fe.png"
}
During profile creation or update stage I have uploaded images to my server and updated profile_image
url to dynamodb.
My question is what is that best approach to secure images?