We have 1000s of files that have been deleted in a Versioned S3 bucket. All of these files are nested in a folder.
We need to restore this folder and all the nested files to be the current version. This can be done in AWS CLI or Python BOTO3 using an EC2 with an assumed role.
Can you please write a script that we can parameterize the S3 Bucket Name and Path, and it can find all the delete-marker files and remove the delete-marker.
Feel free to ping me if you have further questions.