Skip to content

Commit

Permalink
feedback and fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thantos committed Sep 18, 2023
1 parent 05486df commit 30cb30a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/@eventual/aws-cdk/src/command-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -328,7 +334,9 @@ export class CommandService<Service = any> {
"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
Expand Down

0 comments on commit 30cb30a

Please sign in to comment.