Skip to content

Commit

Permalink
fix: Use Amazon Linux 2 runtime for cognito lambda (#2014)
Browse files Browse the repository at this point in the history
* fix: new lambda version

* fix: change handler name

* chore: bump runtime
  • Loading branch information
NovemberTang authored Sep 12, 2023
1 parent 062d92e commit cd7f84d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/patterns/ec2-app/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -516,9 +516,9 @@ export class GuEc2App extends Construct {
const authLambda = new GuLambdaFunction(scope, "auth-lambda", {
app: app,
memorySize: 128,
handler: "devx-cognito-lambda-amd64-v1",
runtime: Runtime.GO_1_X,
fileName: "deploy/INFRA/cognito-lambda/devx-cognito-lambda-amd64-v1.zip",
handler: "bootstrap",
runtime: Runtime.PROVIDED_AL2,
fileName: "deploy/INFRA/cognito-lambda/devx-cognito-lambda-amd64-v2.zip",
withoutFilePrefix: true,
withoutArtifactUpload: true,
bucketNamePath: NAMED_SSM_PARAMETER_PATHS.OrganisationDistributionBucket.path,
Expand Down

0 comments on commit cd7f84d

Please sign in to comment.