How to update an item in DynamoDB table using Javascript? In this video I will show how to do it with Javascript SDK. We will implement an endpoint to update the metadata of our photos. We will also use it to rename photos.
But the tricky part is that we need to rename it not only in the database, but in S3 bucket too. In order to do it we need to copy the image to a new path, and delete the old file, because we do not have a "move" or "rename" method in s3.
DynamoDB update item documentation https://docs.aws.amazon.com/AWSJavaSc...
S3 copyObject docs https://docs.aws.amazon.com/AWSJavaSc...
S3 deleteObject docs
https://docs.aws.amazon.com/AWSJavaSc...
Repo
https://github.com/nim-f/recognition-...