2.0.2 ā€¢ Published 1 year ago

@workcast-org/cdk-tags v2.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

workcast header

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

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago