UPD: Increased sleep wait
This commit is contained in:
@@ -3,11 +3,10 @@
|
|||||||
S3 Batch Restore Script
|
S3 Batch Restore Script
|
||||||
Restores objects from S3 Glacier Deep Archive using AWS S3 Batch Operations.
|
Restores objects from S3 Glacier Deep Archive using AWS S3 Batch Operations.
|
||||||
|
|
||||||
Generate objectlist.csv with the following script:
|
# Generate objectlist.csv with the following script:
|
||||||
|
# BUCKET=whk1-bea-icc-mbk-prd-s3-log-infra-log
|
||||||
BUCKET=whk1-bea-icc-mbk-prd-s3-log-infra-log
|
# PREFIX=elb/alb-icc-mbk/AWSLogs/851239346925/elasticloadbalancing/ap-east-1/2025/08/11/
|
||||||
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
|
||||||
aws s3 ls s3://$BUCKET/$PREFIX | awk "{print \"$BUCKET,$PREFIX\"\$NF}" | tee /tmp/objectlist.csv
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
@@ -229,7 +228,7 @@ def main():
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Wait a bit before approving
|
# Wait a bit before approving
|
||||||
time.sleep(5)
|
time.sleep(10)
|
||||||
|
|
||||||
# Approve job
|
# Approve job
|
||||||
print(f"Approving submitted job {job_id}...")
|
print(f"Approving submitted job {job_id}...")
|
||||||
|
|||||||
Reference in New Issue
Block a user