Skip to content

Commit

Permalink
Add tags lambda sqs worker cdk template (#1643)
Browse files Browse the repository at this point in the history
  • Loading branch information
zbrydon authored Aug 27, 2024
1 parent 6796f5f commit 48c4208
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/hungry-keys-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'skuba': patch
---

template: Add required tags to `lambda-sqs-worker-cdk` template
2 changes: 1 addition & 1 deletion template/lambda-sqs-worker-cdk/infra/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const ENVIRONMENTS = ['dev', 'prod'] as const;

type Environment = (typeof ENVIRONMENTS)[number];

const environment = Env.oneOf(ENVIRONMENTS)('ENVIRONMENT');
export const environment = Env.oneOf(ENVIRONMENTS)('ENVIRONMENT');

interface Config {
appName: string;
Expand Down
8 changes: 7 additions & 1 deletion template/lambda-sqs-worker-cdk/infra/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import { App } from 'aws-cdk-lib';

import { AppStack } from './appStack';
import { config } from './config';
import { config, environment } from './config';

const app = new App();

// eslint-disable-next-line no-new
new AppStack(app, 'appStack', {
stackName: config.appName,
tags: {
'seek:env:label': environment,
'seek:source:sha': process.env.BUILDKITE_COMMIT ?? 'na',
// 'seek:source:url': 'TODO: add source URL',
// 'seek:system:name': 'TODO: add system name',
},
});

0 comments on commit 48c4208

Please sign in to comment.