Created
September 23, 2020 08:34
-
-
Save HieronyM/a710d4c59044c797513403b8c0d7c65f to your computer and use it in GitHub Desktop.
List s3 object that already moved to Glacier
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| aws s3api list-objects-v2 --bucket BUCKET_NAME --prefix folder1/folder2 --query "Contents[?StorageClass=='GLACIER']" --output text | awk '{print $2}' > glacier-objects.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment