Let's say every time a user uploads files to an S3 bucket, you want to move and organize those files in a certain way, meaning if they upload .js I put it inside the /javascript folder, if .txt to the txt folder and so forth.
Is this the use case that you want to build? then this article should be the right one. Alright without further ado let's start with our example.
The main parts of this article:
1- Architecture overview (Terraform)
2- About AWS Services
3- Technical Part (GO code)
4- Result
5- Conclusion
Architecture Overview
In our architecture, we need to make sure that our Lambda function has the right permissions to read and move objects inside the S3 bucket.
📋 Note: If you want to read how to trigger a Lambda function when a new file is uploaded to an S3 bucket, read the following
After uploading we can see the file was moved to the right folder.
.
↗ Original-Artikel auf dev.to lesenVollständiger Original-BerichtAusführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
SOCIAL SHARE CARD GENERATOR