When initialized this package will:
- Read all the EC2 tags into memory
- Read all the AutoScaling group tags into memory (if any)
- Read all the Cloudformation Outputs into memory (if any)
Calls into the Get method will return the value of the first key in the following order:
- EC2 Tag
- ASG Tag
- CFT Output
If no value is found, an error is returned.
##Policy This package needs an AWS role that has permisions to ec2:DescribeTags, autoscaling:DescribeTags, and cloudformation:DescribeStacks
An example is located in the cloudformation.json file.
##TODO
- Tests
- Add CFT resources
- Re-read values, throw events when they change
- Reduce duplication