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.
This commit is contained in:
Adam Moussa 2026-04-28 14:43:48 -04:00
parent f4c6a2719a
commit de6e34f827
2 changed files with 3 additions and 2 deletions

View file

@ -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" },
});

View file

@ -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;