You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace PREFIX with your own, such as "/aws/lambda/ci"
Run and verify that it (eventually) prints some reasonable commands
Run without the echo safety catch
Features:
The delay + retry uses exponential backoff,as recommended by AWS, slowing down and speeding up depending on whether the commands succeed. See man parallel for details.
Verbose mode prints each command as it runs, so you can review them after the fact.
I ended up with this incantation to delete some unknown number (many thousands) of log groups using GNU parallel to speed things up.
Use:
PREFIX
with your own, such as "/aws/lambda/ci"echo
safety catchFeatures:
man parallel
for details.Notes:
Log group names can only contain
according to the documentation, so it's safe to not deal with any special characters such as space in this command.