Skip to content

Commit

Permalink
Reduce Lambda memory
Browse files Browse the repository at this point in the history
Try running the Lambda with only 128MB of memory.
  • Loading branch information
martincostello committed Nov 22, 2023
1 parent 77e0639 commit 7f31a6e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ env:
LAMBDA_DESCRIPTION: 'Deploy build ${{ github.run_number }} to AWS Lambda via GitHub Actions'
LAMBDA_FUNCTION: 'alexa-london-travel'
LAMBDA_HANDLER: 'LondonTravel.Skill::MartinCostello.LondonTravel.Skill.AlexaFunctionHandler::HandleAsync'
LAMBDA_MEMORY: 256
LAMBDA_MEMORY: 128
LAMBDA_ROLE: ${{ vars.AWS_LAMBDA_ROLE }}
LAMBDA_RUNTIME: 'provided.al2023'
LAMBDA_TIMEOUT: 10
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ jobs:
LAMBDA_ARCHITECTURES: 'arm64'
LAMBDA_DESCRIPTION: ${{ needs.setup.outputs.function-description }}
LAMBDA_HANDLER: 'LondonTravel.Skill::MartinCostello.LondonTravel.Skill.AlexaFunctionHandler::HandleAsync'
LAMBDA_MEMORY: 256
LAMBDA_MEMORY: 128
LAMBDA_ROLE: ${{ vars.AWS_LAMBDA_ROLE }}
LAMBDA_RUNTIME: 'provided.al2023'
LAMBDA_TIMEOUT: 10
Expand Down
2 changes: 1 addition & 1 deletion src/LondonTravel.Skill/aws-lambda-tools-defaults.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"configuration": "Release",
"framework": "net8.0",
"function-runtime": "provided.al2023",
"function-memory-size": 256,
"function-memory-size": 128,
"function-timeout": 10,
"function-handler": "LondonTravel.Skill::MartinCostello.LondonTravel.Skill.AlexaFunctionHandler::HandleAsync"
}

0 comments on commit 7f31a6e

Please sign in to comment.