S3 Batch hands on-example
To test out the power of S3 Batch, we are going to take 75 files, upload them to our bucket, and then use AWS Batch to add a tag to each of the files almost instantly.
Note
If you don't want to re-create all the files for this exercise, then simply go to the GitHub repository for this book; there are 75 small files available in Chapter 4, Amazon S3 Blob Storage, in the batch subfolder.
Also, since all the files have the .txt
extension, you may want to turn off the S3 event notification or unsubscribe from the topic before uploading all of the exercise files to the S3 bucket.
We will now use a hands-on example with S3 Batch to update the tags on a number of files at once. If you have a mandatory tagging strategy in place and files are missing some of those tags, then this can be an efficient way of managing those changes rather than trying to either write a custom script to perform the task or changing the tags on the files manually:
-
...