Skip to main content

Tagging

Next you might want to tag your resources that are created in AWS.

Depot makes it easy to propagate your custom tags through to all the resources that are created for your environment and datasets.

Using the Environment or Dataset constructs, add the optional tags property to define key-value pair tags for your resources. These will be propagated through to all applicable resources that are created in AWS for your Depot environment.

stack.ts
new Environment(this, "ExampleEnvironment", {
account: { name: "dev", id: Aws.ACCOUNT_ID },
name: "example",
idPrefix: "example-",
useSharedVpc: true,
tags: {
"cost-center": "AB123",
"application": "data aggregator",
"foo": "bar"
}
});

Additionally, a custom tag is automatically added to all your resources with the value set to the name of your own CDK stack that hosts the Depot environment. This makes it a little easier to know what 'parent' stack owns the Depot environment and all it's resources.

parent-stack: The-Parent-Stack-Name