Re: Deleting old AMIs in AWS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dne 21. 10. 24 v 8:47 dop. Miroslav Suchý napsal(a):

I continued with all older than 2024-01-01

55 AMIs deregistered

I continued with all older than 2024-02-01

13 AMIs deregistered

Full log is here https://k00.fr/b96c2y2v

Hmm, I quickly checked if Fedora 40 AMIs are tagged - so I do not accidentally delete it in next days. They were not.

I tagged them

$ ./label-ami-id.py ami-04d91473d6ab0eb84
Found AMI ami-04d91473d6ab0eb84 in ap-northeast-1
Tagged ami ami-04d91473d6ab0eb84 in ap-northeast-1 with {'Key': 'FedoraGroup', 'Value': 'ga-archives'}
Found Snapshot snap-0a61e303ec3d59210 for AMI ami-04d91473d6ab0eb84 in ap-northeast-1
Tagged snapshot snap-0a61e303ec3d59210 in ap-northeast-1 with {'Key': 'FedoraGroup', 'Value': 'ga-archives'}
🎩[msuchy@triple/~/projects/fedora-infra-scripts{main}]$ cat /tmp/ids.txt  
ami-0b9e37d36fa8859bb
ami-07dc7a11eca06eccc
ami-0e4a3a32304cedfaf
ami-0bbff6b12ddeda7c3
ami-016fcb6ce04d7b7d9
ami-06aa46f98ac220143
ami-00050c079abc52c85
ami-05a5944c1a28d223d
ami-08b4257b37b902e30
ami-004f552bba0e5f64f
ami-097f74237291abc07
ami-0aca2ed5c7b247386
ami-089b6143ef0e57f4b
🎩[msuchy@triple/~/projects/fedora-infra-scripts{main}]$ for i in $(cat /tmp/ids.txt); do  
./label-ami-id.py "$i"
done

Found AMI ami-0b9e37d36fa8859bb in ap-northeast-2
Tagged ami ami-0b9e37d36fa8859bb in ap-northeast-2 with {'Key': 'FedoraGroup', 'Value': 'ga-archives'}
Found Snapshot snap-041567ba05d4f6471 for AMI ami-0b9e37d36fa8859bb in ap-northeast-2
Tagged snapshot snap-041567ba05d4f6471 in ap-northeast-2 with {'Key': 'FedoraGroup', 'Value': 'ga-archives'}
Found AMI ami-07dc7a11eca06eccc in ap-south-1
Tagged ami ami-07dc7a11eca06eccc in ap-south-1 with {'Key': 'FedoraGroup', 'Value': 'ga-archives'}
Found Snapshot snap-078d8a14651133cd7 for AMI ami-07dc7a11eca06eccc in ap-south-1
Tagged snapshot snap-078d8a14651133cd7 in ap-south-1 with {'Key': 'FedoraGroup', 'Value': 'ga-archives'}
Found AMI ami-0e4a3a32304cedfaf in ap-southeast-1
Tagged ami ami-0e4a3a32304cedfaf in ap-southeast-1 with {'Key': 'FedoraGroup', 'Value': 'ga-archives'}
Found Snapshot snap-0d3a1269a85394171 for AMI ami-0e4a3a32304cedfaf in ap-southeast-1
Tagged snapshot snap-0d3a1269a85394171 in ap-southeast-1 with {'Key': 'FedoraGroup', 'Value': 'ga-archives'}
Found AMI ami-0bbff6b12ddeda7c3 in ap-southeast-2
Tagged ami ami-0bbff6b12ddeda7c3 in ap-southeast-2 with {'Key': 'FedoraGroup', 'Value': 'ga-archives'}
Found Snapshot snap-0a369f76070e15955 for AMI ami-0bbff6b12ddeda7c3 in ap-southeast-2
Tagged snapshot snap-0a369f76070e15955 in ap-southeast-2 with {'Key': 'FedoraGroup', 'Value': 'ga-archives'}
Found AMI ami-016fcb6ce04d7b7d9 in ca-central-1
Tagged ami ami-016fcb6ce04d7b7d9 in ca-central-1 with {'Key': 'FedoraGroup', 'Value': 'ga-archives'}
Found Snapshot snap-0d1181f0a3f0947cb for AMI ami-016fcb6ce04d7b7d9 in ca-central-1
Tagged snapshot snap-0d1181f0a3f0947cb in ca-central-1 with {'Key': 'FedoraGroup', 'Value': 'ga-archives'}
Found AMI ami-06aa46f98ac220143 in eu-central-1
Tagged ami ami-06aa46f98ac220143 in eu-central-1 with {'Key': 'FedoraGroup', 'Value': 'ga-archives'}
Found Snapshot snap-044c66a670488129e for AMI ami-06aa46f98ac220143 in eu-central-1
Tagged snapshot snap-044c66a670488129e in eu-central-1 with {'Key': 'FedoraGroup', 'Value': 'ga-archives'}
Found AMI ami-00050c079abc52c85 in eu-west-1
Tagged ami ami-00050c079abc52c85 in eu-west-1 with {'Key': 'FedoraGroup', 'Value': 'ga-archives'}
Found Snapshot snap-0cb75ac14cc2bacef for AMI ami-00050c079abc52c85 in eu-west-1
Tagged snapshot snap-0cb75ac14cc2bacef in eu-west-1 with {'Key': 'FedoraGroup', 'Value': 'ga-archives'}
Found AMI ami-05a5944c1a28d223d in eu-west-2
Tagged ami ami-05a5944c1a28d223d in eu-west-2 with {'Key': 'FedoraGroup', 'Value': 'ga-archives'}
Found Snapshot snap-0391a2048b8c80ea2 for AMI ami-05a5944c1a28d223d in eu-west-2
Tagged snapshot snap-0391a2048b8c80ea2 in eu-west-2 with {'Key': 'FedoraGroup', 'Value': 'ga-archives'}
Found AMI ami-08b4257b37b902e30 in sa-east-1
Tagged ami ami-08b4257b37b902e30 in sa-east-1 with {'Key': 'FedoraGroup', 'Value': 'ga-archives'}
Found Snapshot snap-05103d108c17c1099 for AMI ami-08b4257b37b902e30 in sa-east-1
Tagged snapshot snap-05103d108c17c1099 in sa-east-1 with {'Key': 'FedoraGroup', 'Value': 'ga-archives'}
Found AMI ami-004f552bba0e5f64f in us-east-1
Tagged ami ami-004f552bba0e5f64f in us-east-1 with {'Key': 'FedoraGroup', 'Value': 'ga-archives'}
Found Snapshot snap-0c32b1bd7d1bb2c89 for AMI ami-004f552bba0e5f64f in us-east-1
Tagged snapshot snap-0c32b1bd7d1bb2c89 in us-east-1 with {'Key': 'FedoraGroup', 'Value': 'ga-archives'}
Found AMI ami-097f74237291abc07 in us-east-2
Tagged ami ami-097f74237291abc07 in us-east-2 with {'Key': 'FedoraGroup', 'Value': 'ga-archives'}
Found Snapshot snap-03ff1b292a3329900 for AMI ami-097f74237291abc07 in us-east-2
Tagged snapshot snap-03ff1b292a3329900 in us-east-2 with {'Key': 'FedoraGroup', 'Value': 'ga-archives'}
Found AMI ami-0aca2ed5c7b247386 in us-west-1
Tagged ami ami-0aca2ed5c7b247386 in us-west-1 with {'Key': 'FedoraGroup', 'Value': 'ga-archives'}
Found Snapshot snap-0b0424ffed195b731 for AMI ami-0aca2ed5c7b247386 in us-west-1
Tagged snapshot snap-0b0424ffed195b731 in us-west-1 with {'Key': 'FedoraGroup', 'Value': 'ga-archives'}
Found AMI ami-089b6143ef0e57f4b in us-west-2
Tagged ami ami-089b6143ef0e57f4b in us-west-2 with {'Key': 'FedoraGroup', 'Value': 'ga-archives'}
Found Snapshot snap-0d4d7720a28535f5a for AMI ami-089b6143ef0e57f4b in us-west-2
Tagged snapshot snap-0d4d7720a28535f5a in us-west-2 with {'Key': 'FedoraGroup', 'Value': 'ga-archives'}

-- 
Miroslav Suchy, RHCA
Red Hat, Manager, Packit and CPT, #brno, #fedora-buildsys
-- 
_______________________________________________
infrastructure mailing list -- infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to infrastructure-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue

[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux