Skip to content

Instantly share code, notes, and snippets.

@taraspos
Last active May 29, 2018 14:32
Show Gist options
  • Save taraspos/b638d37b0425b47b967046f2c408ccf8 to your computer and use it in GitHub Desktop.
Save taraspos/b638d37b0425b47b967046f2c408ccf8 to your computer and use it in GitHub Desktop.
// Open in your browser: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html
// Open browser console
// Copy and run the code below in the browser console
var yml = "";
$('#w302aac19c19b5c10b8 tr').each(function(){
var region = $(this).find("td").eq(0).text();
var ami = $(this).find("td").eq(1).text();
if (region && ami) {
yml += region + ":\n\tAMIID: "+ ami + "\n"
}
})
console.log(yml)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment