0
I need to make a script to delete my snapshots in mine AWS
longer than 7 days.
To perform the creation use this script, I hope it helps.
AWS ec2 create-image --no-reboot --instance-id i-131e8e06 --name "SITELINK-BKP-DIARIO-%date:~7,2%-%date:~4,2%-%date:~10,4%" --description "SITELINK-BKP-DIARIO"
This script works or is in trouble?
– rray
So man, this scrip that I talked about is what I use to accomplish the creation of the image. I need one to delete these created images longer than 7 days
– Filipe Castro
That doesn’t look like a powershell, I could be wrong
– rray
This in dos os the script to delete can be in powershell or Docs has no problem, you know ?
– Filipe Castro