Skip to content

Commit

Permalink
Update Lambda runtime`
Browse files Browse the repository at this point in the history
Update to PROVIDED_AL2023 as GO_1_X is deprecated
  • Loading branch information
conradhodge committed Jan 7, 2024
1 parent c168ff1 commit 39c39e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion infrastructure/lib/constructs/get-next-tram-lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class GetNextTramLambda extends Construct {
description: "Lambda function that will get the next tram",
code: lambda.Code.fromAsset("lambda/get-next-tram"),
handler: "main",
runtime: lambda.Runtime.GO_1_X,
runtime: lambda.Runtime.PROVIDED_AL2023,
memorySize: props.memorySize,
timeout: Duration.seconds(props.timeout),
environment: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ test("Lambda is created with parameters given", () => {
FunctionName: "get-next-tram-lambda",
Description: "Lambda function that will get the next tram",
Handler: "main",
Runtime: "go1.x",
Runtime: "provided.al2023",
Environment: {
Variables: {
TRAVELINE_API_USERNAME: "api-username",
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/test/next-next-tram.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ test("Stack is created with lambda", () => {
FunctionName: "get-next-tram-lambda",
Description: "Lambda function that will get the next tram",
Handler: "main",
Runtime: "go1.x",
Runtime: "provided.al2023",
Environment: {
Variables: {
TRAVELINE_API_USERNAME: "api-username",
Expand Down

0 comments on commit 39c39e8

Please sign in to comment.