Skip to content

Commit

Permalink
add tags with Tags.of
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesKonings committed Apr 20, 2024
1 parent a8af3e1 commit 746c2b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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();

0 comments on commit 746c2b2

Please sign in to comment.