Skip to content

Commit

Permalink
check region is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
marjisound committed Jan 23, 2024
1 parent 27b6177 commit 783cf48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/cdk/lib/transcription-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ export class TranscriptionService extends GuStack {
super(scope, id, props);

const APP_NAME = "transcription-service";
const apiId = `${APP_NAME}-${props.stage}`
const apiId = `${APP_NAME}-${props.stage}`;
if (!props.env?.region) throw new Error("region not provided in props");

const ssmPrefix = `arn:aws:ssm:${props.env.region}:${GuardianAwsAccounts.Investigations}:parameter`;

const apiLambda = new GuApiLambda(this, "transcription-service-api", {
Expand Down

0 comments on commit 783cf48

Please sign in to comment.