UPD: Minor update on script output messages and documentation

This commit is contained in:
xpk
2025-11-11 12:38:56 +08:00
parent 6284be7394
commit b74c82943b
+7 -1
View File
@@ -2,6 +2,12 @@
"""
S3 Batch Restore Script
Restores objects from S3 Glacier Deep Archive using AWS S3 Batch Operations.
Generate objectlist.csv with the following script:
BUCKET=whk1-bea-icc-mbk-prd-s3-log-infra-log
PREFIX=elb/alb-icc-mbk/AWSLogs/851239346925/elasticloadbalancing/ap-east-1/2025/08/11/
aws s3 ls s3://$BUCKET/$PREFIX | awk "{print \"$BUCKET,$PREFIX\"\$NF}" | tee /tmp/objectlist.csv
"""
import sys
@@ -243,7 +249,7 @@ def main():
print(f"Approving submitted job {job_id}...")
approve_job(s3control_client, account_id, job_id)
print(f"\nTo delete the manifest bucket:")
print(f"\nReview s3 batch job status. When it is completed, delete the manifest bucket:")
print(f"aws s3 rb s3://{manifest_bucket} --force")