From 746c2b2bc0ecc0ecf3e8f0e6ff771a7430a45d04 Mon Sep 17 00:00:00 2001 From: Johannes Konings Date: Sat, 20 Apr 2024 16:58:37 +0200 Subject: [PATCH] add tags with Tags.of --- src/main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 12b00d2..f6b71ca 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,4 +1,4 @@ -import { App, Stack, StackProps, aws_dynamodb as dynamodb } from 'aws-cdk-lib'; +import { App, Stack, StackProps, Tags, aws_dynamodb as dynamodb } from 'aws-cdk-lib'; import { Construct } from 'constructs'; export class CdkNotfifierFeatureStackExample extends Stack { @@ -20,4 +20,6 @@ console.log(`Deploying with stack postfix ${branchName}`); new CdkNotfifierFeatureStackExample(app, `cdk-notifier-feature-stacks-${branchName}`); +Tags.of(app).add('branch', branchName); + app.synth(); \ No newline at end of file