From 30cb30abefba82ffc003b16e254c48c242990b7f Mon Sep 17 00:00:00 2001 From: Sam Sussman Date: Mon, 18 Sep 2023 11:05:56 -0500 Subject: [PATCH] feedback and fix --- packages/@eventual/aws-cdk/src/command-service.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/@eventual/aws-cdk/src/command-service.ts b/packages/@eventual/aws-cdk/src/command-service.ts index 757bb6f3..275b2ba3 100644 --- a/packages/@eventual/aws-cdk/src/command-service.ts +++ b/packages/@eventual/aws-cdk/src/command-service.ts @@ -23,7 +23,13 @@ import aws_iam, { Role, ServicePrincipal, } from "aws-cdk-lib/aws-iam"; -import { Code, Function, FunctionProps, Runtime } from "aws-cdk-lib/aws-lambda"; +import { + Architecture, + Code, + Function, + FunctionProps, + Runtime, +} from "aws-cdk-lib/aws-lambda"; import { Arn, Duration, Lazy, Stack } from "aws-cdk-lib/core"; import { Construct } from "constructs"; import type openapi from "openapi3-ts"; @@ -328,7 +334,9 @@ export class CommandService { "options-command" ), handler: "index.handler", - runtime: Runtime.NODEJS_LATEST, + runtime: Runtime.NODEJS_18_X, + architecture: Architecture.ARM_64, + memorySize: 512, // the headers will be replaced with the correct headers based on the cors configuration // for example, the Access-Control-Allow-Origin header will only return if the cors origin // matches the request origin and will be set accordingly