From cfd528d0a0a160e7c34d9656a40d3a09f12a731c Mon Sep 17 00:00:00 2001 From: Niall Creech Date: Mon, 31 Oct 2016 16:47:57 +0000 Subject: [PATCH] Add version tag Use setup tools to get the bootstrap cfn version and add it as a tag. --- bootstrap_cfn/fab_tasks.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bootstrap_cfn/fab_tasks.py b/bootstrap_cfn/fab_tasks.py index 2edccc4..f75ced5 100755 --- a/bootstrap_cfn/fab_tasks.py +++ b/bootstrap_cfn/fab_tasks.py @@ -13,6 +13,8 @@ from fabric.colors import green, red from fabric.utils import abort +import pkg_resources + from bootstrap_cfn.autoscale import Autoscale from bootstrap_cfn.cloudformation import Cloudformation from bootstrap_cfn.config import ConfigParser, ProjectConfig @@ -735,7 +737,8 @@ def get_cloudformation_tags(): """ return { "Env": env.environment, - "Application": env.application + "Application": env.application, + "Bootstrap-cfn-Version": pkg_resources.require("bootstrap-cfn")[0].version }