import * as cdk from "@aws-cdk/core" ; import { LambdaStack } from "../lib/lambda-stack" ; import * as pkg from "../../package.json" ; const { BENCHMARK_SUFFIX } = process . env ; const STACK_NAME = BENCHMARK_SUFFIX ? `${ pkg . name }-${ BENCHMARK_SUFFIX }` : pkg . name ; /**
 * Construct for the Serverless Application.
 *
 * NOTE: We export the our construct so that it's possible to stitch it into a larger deployment.
 */ export default class Stack { public lambdaStack : LambdaStack ; constructor ( app ) { this . lambdaStack = new LambdaStack ( app , `${ STACK_NAME }` , { } ) ; } } const app = new cdk . App ( ) ; new Stack ( app ) ;