Cost Allocation Tags – tracking costs of your EC2 instances

AWS provides Cost Allocation Tags to track costs of instances so you can separately track costs in different Stacks / Environments – e.g. Development and Production

https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html

See also here on Activating these Tags: https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/activate-built-in-tags.html

Jinja Templates and JSON with Python

  1. Loading up a Jinja Template and some JSON using Python then outputting that JSON in the template:

k.py

template.j2

api.json

2. Outputting the value of api when done is true

api.json

template.j2

See also:

http://jinja.pocoo.org/docs/dev/templates/#expressions