2026-11-04 02:00:01 [INFO] Log file: /data/log/aws_bkup-git-repo_archive_delete.1233972.log
2026-11-04 02:00:01 [INFO] ******** LIVE MODE ********
2026-11-04 02:00:01 [INFO] Starting backup pruning for plan 'bkup-git-repo'
2026-11-04 02:00:01 [INFO] Found credentials in shared credentials file: ~/.aws/credentials
2026-11-04 02:00:01 [INFO] Found backup plan ID 51cd3ce2-aec9-4162-a0d0-1c0f8dad4ea5 for 'bkup-git-repo'.
2026-11-04 02:00:01 [INFO] Vaults used by this plan: backup-daily
2026-11-04 02:00:01 [INFO] Retrieving recovery points from vault 'backup-daily'...
2026-11-04 02:00:01 [INFO]   Found 5 recovery points in backup-daily
2026-11-04 02:00:01 [INFO] Total recovery points found: 5
2026-11-04 02:00:01 [INFO] Monthly archive months: 2026-11, 2026-10, 2026-09, 2026-08, 2026-07, 2026-06, 2026-05, 2026-04, 2026-03, 2026-02, 2026-01, 2025-12
2026-11-04 02:00:01 [INFO] Weekly retention Mondays: 2026-10-19, 2026-10-26, 2026-11-02
2026-11-04 02:00:01 [INFO] ==================================================
2026-11-04 02:00:01 [INFO] KEEP: 4 recovery points
2026-11-04 02:00:01 [INFO] KEEP: arn:aws:ec2:us-west-2::image/ami-0af45efa7824d7492 | 2026-10-19 05:00:00+00:00 | EC2
2026-11-04 02:00:01 [INFO] KEEP: arn:aws:ec2:us-west-2::image/ami-078d812b565980767 | 2026-11-02 06:00:00+00:00 | EC2
2026-11-04 02:00:01 [INFO] KEEP: arn:aws:ec2:us-west-2::image/ami-0d253d456dc068669 | 2026-11-03 06:00:00+00:00 | EC2
2026-11-04 02:00:01 [INFO] KEEP: arn:aws:ec2:us-west-2::image/ami-0159a813b5b110635 | 2026-11-04 06:00:00+00:00 | EC2
2026-11-04 02:00:01 [INFO] ==================================================
2026-11-04 02:00:01 [INFO] ARCHIVE: 1 recovery points
2026-11-04 02:00:01 [INFO] ARCHIVE: arn:aws:ec2:us-west-2::image/ami-080c59c1f4fc2dfda | AMI=ami-080c59c1f4fc2dfda | 325.00 GB | METHOD=S3-DEEP-ARCHIVE | 2026-11-01 06:00:00+00:00
2026-11-04 02:00:01 [INFO] ==================================================
2026-11-04 02:00:01 [INFO] SKIP: 0 recovery points
2026-11-04 02:00:01 [INFO] ==================================================
2026-11-04 02:00:01 [INFO] DELETE: 0 recovery points
2026-11-04 02:00:01 [INFO] Waiting for global AMI archive lock...
2026-11-04 03:34:58 [INFO] AMI archive lock acquired.
2026-11-04 03:34:58 [INFO] Starting S3 Deep Archive workflow for ami-080c59c1f4fc2dfda
2026-11-04 03:34:58 [INFO] AMI ami-080c59c1f4fc2dfda is 325.00 GB <= 5000 GB. Using S3-DEEP-ARCHIVE.
2026-11-04 03:34:58 [INFO] ==================================================
2026-11-04 03:34:58 [INFO] ARCHIVING AMI: ami-080c59c1f4fc2dfda
2026-11-04 03:34:58 [INFO] Creating S3 AMI store task for ami-080c59c1f4fc2dfda...
2026-11-04 03:35:05 [INFO] AWS store task created: s3://backup-old-amis/ami-080c59c1f4fc2dfda.bin
2026-11-04 03:35:05 [INFO] Waiting for CreateStoreImageTask for ami-080c59c1f4fc2dfda...
2026-11-04 03:35:05 [INFO] AMI ami-080c59c1f4fc2dfda: state=InProgress progress=0% object=ami-080c59c1f4fc2dfda.bin
2026-11-04 03:36:06 [INFO] AMI ami-080c59c1f4fc2dfda: state=InProgress progress=10% object=ami-080c59c1f4fc2dfda.bin
2026-11-04 03:37:06 [INFO] AMI ami-080c59c1f4fc2dfda: state=InProgress progress=22% object=ami-080c59c1f4fc2dfda.bin
2026-11-04 03:38:06 [INFO] AMI ami-080c59c1f4fc2dfda: state=InProgress progress=37% object=ami-080c59c1f4fc2dfda.bin
2026-11-04 03:39:06 [INFO] AMI ami-080c59c1f4fc2dfda: state=InProgress progress=52% object=ami-080c59c1f4fc2dfda.bin
2026-11-04 03:40:06 [INFO] AMI ami-080c59c1f4fc2dfda: state=InProgress progress=67% object=ami-080c59c1f4fc2dfda.bin
2026-11-04 03:41:06 [INFO] AMI ami-080c59c1f4fc2dfda: state=InProgress progress=82% object=ami-080c59c1f4fc2dfda.bin
2026-11-04 03:42:06 [INFO] AMI ami-080c59c1f4fc2dfda: state=InProgress progress=98% object=ami-080c59c1f4fc2dfda.bin
2026-11-04 03:43:06 [INFO] AMI ami-080c59c1f4fc2dfda: state=Completed progress=100% object=ami-080c59c1f4fc2dfda.bin
2026-11-04 03:43:06 [INFO] Verifying temporary S3 object...
2026-11-04 03:43:06 [INFO] Temporary S3 object exists: 64999961540 bytes
2026-11-04 03:43:06 [INFO] Final archive key: s3://backup-old-amis/git_ami-080c59c1f4fc2dfda.bin
2026-11-04 03:43:06 [INFO] Copying archive to Deep Archive using AWS CLI...
2026-11-04 03:43:06 [INFO] Running AWS CLI S3 copy: s3://backup-old-amis/ami-080c59c1f4fc2dfda.bin -> s3://backup-old-amis/git_ami-080c59c1f4fc2dfda.bin
2026-11-04 03:46:57 [INFO] Verifying Deep Archive object...
2026-11-04 03:46:57 [INFO] Final archive: size=64999961540 bytes, storage_class=DEEP_ARCHIVE
2026-11-04 03:46:57 [INFO] Deep Archive verification PASSED for ami-080c59c1f4fc2dfda
2026-11-04 03:46:57 [INFO] Deleting temporary Standard S3 object: ami-080c59c1f4fc2dfda.bin
2026-11-04 03:46:58 [INFO] AMI ami-080c59c1f4fc2dfda successfully archived as git_ami-080c59c1f4fc2dfda.bin
2026-11-04 03:46:58 [INFO] S3 archive verified successfully: s3://backup-old-amis/git_ami-080c59c1f4fc2dfda.bin
2026-11-04 03:46:58 [INFO] AMI archive lock released.
2026-11-04 03:46:58 [INFO] S3 archive successful. Deleting AWS Backup recovery point.
2026-11-04 03:46:58 [INFO] Deleting recovery point arn:aws:ec2:us-west-2::image/ami-080c59c1f4fc2dfda from vault backup-daily
2026-11-04 03:46:58 [INFO] Deleted recovery point: arn:aws:ec2:us-west-2::image/ami-080c59c1f4fc2dfda
2026-11-04 03:46:58 [INFO] ==================================================
2026-11-04 03:46:58 [INFO] JOB COMPLETE for backup plan 'bkup-git-repo'.
2026-11-04 03:46:58 [INFO] ==================================================
