Last Updated: February 25, 2016
·
5.389K
· rafaelfelix

Use EC2 instance tags as custom facts on puppet

Just put this gist on your custom facts directory:

https://gist.github.com/rafaelfelix/5937611

The EC2 instance tags will be presented as ec2_tag_<key> = <value> on facter. This enabled me to use puppet to bootstrap auto-scaling instances dynamically, without having to manage several different AMIs.