Skip to content

Instantly share code, notes, and snippets.

@samuelstevens9
Created August 24, 2018 03:26
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save samuelstevens9/235c16529f586bcdf2f4d27a6b82d63e to your computer and use it in GitHub Desktop.
AWS EB Application Versions Select From Bottom Console JS
/**
If you Ever receive the following error from AWS Elastic Beanstalk:
"com.amazonaws.services.elasticbeanstalk.model.TooManyApplicationVersionsException:
You cannot have more than 1000 Application Versions. Either remove some Application Versions or request a limit increase. "
And you want to delete several versions at once but don't want to click all day, open the JavaScript console and script it!
Probably a way to script it using AWS CLI...
*/
var cb = document.querySelectorAll("input[type=checkbox]");
for(var e = 1; e < 100; e++){ cb[cb.length-e].click(); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment