Skip to content

Tags

Project Lakechain makes it possible to apply a specific tagging strategy to all the AWS resources created by middlewares across your pipelines.

โ„น๏ธ Tagging is a best practice to help you manage your AWS resources. It is a metadata that consists of a key-value pair that you can assign to AWS resources. It allows you to categorize resources, and track costs and usage across your AWS environments.



๐Ÿท๏ธ Default Tags

By default, the Lakechain framework applies a set of tags to all the supported AWS resources it creates, which are documented below.


TagValueDescription
Contextproject-lakechainTags all resources created by Lakechain.
ServiceMiddleware nameTags all resources created by a middleware.
VersionSemantic versionThe version of the specific middleware.


๐Ÿ”– Customize Tags

You can also apply your own tags to the resources created by Lakechain. The following example demonstrates how to apply tags to a specific middleware instance.

import * as cdk from 'aws-cdk-lib';
// Instantiate a middleware.
const trigger = new S3EventTrigger.Builder()
.withScope(this)
.withIdentifier('Trigger')
.withCacheStorage(cache)
.withBucket(source)
.build();
// Apply custom tags.
cdk.Tags.of(trigger).add('Environment', 'Production');
cdk.Tags.of(trigger).add('Team', 'Cloud Engineering');

๐Ÿ’ You can also apply the same principle to an entire CDK stack if you donโ€™t need to apply tags with the granularity of a middleware.