Good morning folks,
It’s been years that I’ve been thinking of doing that script, but never been bothered to be honest :D
But today I got annoyed at it, for the thousands’ time, so here I go.
Let’s say, you want to create a mappings in Cloudformation for the Amazon Linux AMI, to be used by your instances.
You will need to specify the AMI id in the Mappings section, but it’s not that easy to get the AMI id in every single region …
You would need to change region and check the ID, plus you would need to know the name of each region …
So you might go in the AWS Console, and search for the AMI, use the name as filter, and change the region to copy / paste the AMI Id of the Amazon Linux.
Yes… that’s what I did… sounds awful? Because it is!!!
So here’s a script I’m now going to use everything I need to do this:
Boom! Enjoy fellas!