Installation
Check out the [Facter documentation|https://docs.puppetlabs.com/facter/2.3/custom_facts.html#loading-custom-facts]
Requirements
gem 'aws-sdk-core'
Instance must have an IAM Role with read-only permission for EC2 resources (at least ec2:Describe*). See here and here Usage:
The value of each tag can be accessed using fact aws_tag_, or all tags in JSON format using fact aws_tags. Ex:
Single tag
$ facter aws_tag_name my_ec2_instance $ facter aws_tag_environment Test All Tags