@wheatstalk/cdk-git-tags

Add tags to your resources from info in your git repository

Usage no npm install needed!

<script type="module">
  import wheatstalkCdkGitTags from 'https://cdn.skypack.dev/@wheatstalk/cdk-git-tags';
</script>

README

CDK Git Tags

Use this construct to tag your stack and resources with information from your git repository.

An example of the applied tags

Usage

// Create your CDK app as usual
const app = new cdk.App();

// Apply GitTags to your app and all stacks and resources will be tagged.
GitTags.add(app);

Tags Produced

Tag Description
@wheatstalk/cdk-git-tags The version of the construct
@wheatstalk/cdk-git-tags.git.HEAD The output of git rev-parse HEAD
@wheatstalk/cdk-git-tags.git.remotes All unique remote URLs separated by spaces