Find Jobs
Hire Freelancers

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

$30-250 USD

Færdiggjort
Slået op over 1 år siden

$30-250 USD

Betales ved levering
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
Projekt-ID: 34385439

Om projektet

6 forslag
Projekt på afstand
Aktiv 2 år siden

Leder du efter muligheder for at tjene penge?

Fordele ved budafgivning på Freelancer

Fastsæt dit budget og din tidsramme
Bliv betalt for dit arbejde
Oprids dit forslag
Det er gratis at skrive sig op og byde på jobs
Tildel til:
Brug Avatar.
$0 USD på 1 dag
5,0 (457 anmeldelser)
7,2
7,2
6 freelancere byder i gennemsnit $178 USD på dette job
Brug Avatar.
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 på 2 dage
4,6 (5 anmeldelser)
4,6
4,6
Brug Avatar.
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 på 2 dage
5,0 (12 anmeldelser)
4,1
4,1
Brug Avatar.
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 på 4 dage
5,0 (2 anmeldelser)
3,3
3,3
Brug Avatar.
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 på 2 dage
5,0 (4 anmeldelser)
3,5
3,5
Brug Avatar.
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 på 7 dage
5,0 (1 bedømmelse)
1,8
1,8

Om klienten

Flag for CANADA
Vancouver, Canada
5,0
180
Betalingsmetode verificeret
Medlem siden feb. 19, 2006

Klientverificering

Tak! Vi har sendt dig en e-mail med et link, så du kan modtage din kredit.
Noget gik galt, da vi forsøgte at sende din mail. Prøv venligst igen.
Registrerede brugere Oprettede jobs i alt
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Indlæser forhåndsvisning
Geolokalisering er tilladt.
Din session er udløbet, og du er blevet logget ud. Log venligst ind igen.