AWS S3 - Batch Operations

 

In this post, we will see how to use batch replication - S3. 

A job is used to execute batch operations on a list of S3 objects. The list of S3 objects is contained in a manifest object, which can be an S3 inventory report or a list of objects that you generate. After the total number of objects listed in the manifest has been confirmed, the job status will update to Awaiting your confirmation to run, and you must Run the job within 30 days.

I am going to create a replication job to tag the existing objects in the bucket.

NOTE: The batch job relies on manifest.json which is an inventory of objects. This can be collected from bucket management. It takes 48 hrs to get the first inventory created.


Let's create a batch job.



Select the location were the manifest.json is created.


I am to create tags for all the objects.





Next, the critical portion is assigning the correct IAM role for the batch to perform action.


I created a role with S3 full access. Please refer to the link for the right IAM access. 
https://docs.aws.amazon.com/AmazonS3/latest/userguide/batch-ops-iam-role-policies.html


Once the job is created, it awaits for the user's confirmation to "RUN JOB".




Once the job is completed, you should see the tags added to the objects.




It works.



Comments

Popular posts from this blog

SRE/DevOps Syllabus

AWS Code Commit - CI/CD Series Part 1

Docker - Preventing IP overlapping