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;