mirror of
https://github.com/Sea-Haven-Industries/seahaven-door-unlock-api.git
synced 2026-09-30 07:03:12 +00:00
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:
parent
f4c6a2719a
commit
de6e34f827
2 changed files with 3 additions and 2 deletions
|
|
@ -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" },
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue