I have an S3 bucket with roughly a thousand folders. Inside each folder, I want to copy a file to a new folder a level in. Something like:
foreach (folder in myBucket){
cp folder/myFile.abc folder/myNewFolder/myFile.abc;
}
How can I execute this one-off logic in S3?