Find Jobs
Hire Freelancers

AWS Delete 110,000 snapshots - Have script, needs improvements

$30-250 USD

Opravljeno
Objavljeno pred več kot 1 letom

$30-250 USD

Plačilo ob dostavi
I have an AWS CLI script that lists snapshots older than X amount of days (currently 7), puts them into a flat file and then deletes them. The script works but it seems to get stuck probably due to have to manage a file with over 100,000 snapshot ids. I was looking for some improvement to this script so that it works and runs needing to be logged into cli (could trigger by cron). Also there isn't any need to save any snapshots, looking for them all to be deleted. Here's the script: #!/bin/bash -x CURRENT_DATE=$(date +%Y-%m-%d); OWNER_ID=***** OLD_DATE=`date +%Y-%m-%d --date '7 days ago'` aws ec2 describe-snapshots --owner-ids $OWNER_ID --query "Snapshots[?StartTime<=\`$OLD_DATE\`].SnapshotId" --output text > [login to view URL] LIST=`cat [login to view URL] | wc -l` if [ $LIST -eq "0" ]; then echo "No snapshots older than 7 days have been found on your server." exit else echo "Deleted Snapshots:" > [login to view URL] echo "" >> [login to view URL] for i in `cat [login to view URL]` do aws ec2 delete-snapshot --snapshot-id $i echo $i : Deleted >> [login to view URL] done fi
ID projekta: 34385439

Več o projektu

6 ponudb
Projekt na daljavo
Aktivno pred 2 letoma

Želite zaslužiti?

Prednosti oddajanja ponudb na Freelancerju

Nastavite svoj proračun in časovni okvir
Prejmite plačilo za svoje delo
Povzetek predloga
Registracija in oddajanje ponudb sta brezplačna
Dodeljeno:
Avatar uporabnika
$0 USD v 1 dnevu
5,0 (457 ocen)
7,2
7,2
6 freelancerjev je oddalo ponudbo s povprečno vrednostjo $178 USD za to delo
Avatar uporabnika
Hey! I am an expert EC2 coder with skills including Amazon Web Services and Linux. I am DevOps, AWS EC2 RDS S3 CloudFront, cPanel, CentOS, Ubuntu expert I am an expert in installation, tuning and optimisation of servers and PHP applications such as Wordpress, Magento 1 / 2, Opencart, Prestashop, Joomla and etc. I’m using Nginx and Apache servers + Varnish. SKILLS AND TECHS - Excellent understanding of web hosting environments. - OS Linux - RHEL, CentOS / Ubuntu, Debian - Amazon / AWS - EC2, Lightsail / RDS, Aurora / ELB / S3 / Route 53/ CloudFront CDN / AutoScaling Groups / Load Balancers ... - Installing, configuring and maintaining services such as: Apache, MySQL , .. ( LAMP/LEMP ) , cPanel/WHM, Postgres, exim, sendmail, dovecot, courrier, pure-ftpd, BIND, ffmpeg and etc. - CDN - Amazon CloudFront, KeyCDN, Cloudflare, Incapsula... - Control panels: cPanel / WHM, Plesk, Webmin, Vesta, - Load balancing, service optimising for best performance, upgrades and security. - Datastores - MySQL, PostgreSQL, Redis, MongoDB, Memcached, Varnish, ProxySQL - Performance Boosters setups - Nginx, Varnish, Redis, memcache and others pagespeed solutions - Virtualisations - KVM, Hyper-V, LXC, LXD, Docker - Monitoring - Zabbix, Nagios custom developed monitoring system and local checkers and more Please send a message to discuss more regarding this project. Thanks
$250 USD v 2 dneh
4,6 (5 ocen)
4,6
4,6
Avatar uporabnika
Hi I am a python and bash developer experienced in developing scripts to provision, cleanup aws resources. I can help you to fix the issue with this snapshot delete script. please message so we can further discuss Thanks Note-please check my profile for past projects and reviews.
$75 USD v 2 dneh
5,0 (12 ocen)
4,1
4,1
Avatar uporabnika
Hello there, How are you doing? Just saw your project posted. I will do this professionally. I am more than happy to discuss the task and work for you. That would be greater if I get some tasks so you can test my skill and expertise. Waiting for your response and start working for you. Warm Regards, Asif nawaz
$250 USD v 4 dneh
5,0 (2 ocen)
3,3
3,3
Avatar uporabnika
Hello, I am experienced graduate of theoretic informatics, Czech Republic. I can fix your shell aws script in few hours. Hire me and you will get the best possible product. Regards, Bachelor Martin risa
$140 USD v 2 dneh
5,0 (4 ocen)
3,5
3,5
Avatar uporabnika
I have strong shell scripting and AWS experience to cleanup the snapshots as Am Prabhakar having 20+ years of experience with all AWS and Azure skills you are required and I can support on this project
$250 USD v 7 dneh
5,0 (1 ocena)
1,8
1,8

O stranki

Zastava CANADA
Vancouver, Canada
5,0
180
Plačilna metoda je verificirana
Član(ica) od feb. 19, 2006

Verifikacija stranke

Hvala! Po e-pošti smo vam poslali povezavo za prevzem brezplačnega dobropisa.
Pri pošiljanju vašega e-sporočila je šlo nekaj narobe. Poskusite znova.
Registrirani uporabniki Skupaj objavljenih del
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Nalaganje predogleda
Geolociranje je bilo dovoljeno.
Vaša prijavna seja je potekla, zato ste bili odjavljeni. Prosimo, da se znova prijavite.