Last active
May 29, 2018 14:32
-
-
Save taraspos/b638d37b0425b47b967046f2c408ccf8 to your computer and use it in GitHub Desktop.
Get Latest ECS AMIs as YML with jQuery from https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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