From c89040592a9bd787fa321ed8a0d25fc9a3af8cf3 Mon Sep 17 00:00:00 2001 From: Adam Moussa <166072409+amoussa1229@users.noreply.github.com> Date: Tue, 28 Apr 2026 14:43:48 -0400 Subject: [PATCH] Fix stack and API naming to follow kebab-case convention Pin existing CloudFormation stack name via stackName property so the live stack is not affected. Construct ID and API Gateway name now follow the org kebab-case standard. --- bin/app.ts | 3 ++- lib/door-unlock-stack.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/app.ts b/bin/app.ts index 943c6bb..fd95269 100644 --- a/bin/app.ts +++ b/bin/app.ts @@ -4,6 +4,7 @@ import * as cdk from "aws-cdk-lib"; import { DoorUnlockStack } from "../lib/door-unlock-stack"; const app = new cdk.App(); -new DoorUnlockStack(app, "SeaHavenDoorUnlockStack", { +new DoorUnlockStack(app, "door-unlock-api", { + stackName: "SeaHavenDoorUnlockStack", env: { account: "328440206208", region: "us-east-1" }, }); diff --git a/lib/door-unlock-stack.ts b/lib/door-unlock-stack.ts index 0bea5d3..2976860 100644 --- a/lib/door-unlock-stack.ts +++ b/lib/door-unlock-stack.ts @@ -64,7 +64,7 @@ export class DoorUnlockStack extends cdk.Stack { doorIdParam.grantRead(unlockHandler); const httpApi = new apigwv2.HttpApi(this, "DoorUnlockApi", { - apiName: "SeaHavenDoorUnlock", + apiName: "door-unlock-api", }); const defaultStage = httpApi.defaultStage!.node.defaultChild as apigwv2.CfnStage;