2.0.2 ā¢ Published 1 year ago
@workcast-org/cdk-tags v2.0.2
A simple CDK aspect that adds a tag called with the key 'project' and any optional tags to all resources in a stack
š WorkCast Homepage
Installation
NPM:
npm install @workcast-org/cdk-tags
Yarn:
yarn add @workcast-org/cdk-tags
Usage
import { Aspects, Stack } from 'aws-cdk-lib';
import { GlobalTags } from '@workcast-org/cdk-tags';
class MyStack extends Stack {
constructor(scope: App, id: string) {
super(scope, id);
Aspects.of(this).add(new GlobalTags({
productType: 'myProduct',
environment: 'dev',
tags: { // optional extra tags
myTag: 'myTagName',
},
}));
}
}
Tags and environment are optional, tags are applied to all resources
Author
š¤ WorkCast
- Website: www.workcast.com
- Twitter: @WorkCast
- Github: @The-WorkCast-Corporation
- LinkedIn: @workcast