From b0653f57833e03a7a03746524d58a2eb0e16b2a8 Mon Sep 17 00:00:00 2001 From: Jose Valerio Date: Fri, 11 Dec 2020 21:46:21 -0500 Subject: [PATCH 1/2] Update serverless.component.yml --- serverless.component.yml | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/serverless.component.yml b/serverless.component.yml index eefa1dc..180afe3 100644 --- a/serverless.component.yml +++ b/serverless.component.yml @@ -21,27 +21,6 @@ actions: type: number description: The memory size of your AWS Lambda function. default: 1024 - allow: - - 128 - - 192 - - 256 - - 320 - - 384 - - 448 - - 512 - - 576 - - 704 - - 768 - - 832 - - 1024 - - 1280 - - 1536 - - 1792 - - 2048 - - 2240 - - 2688 - - 2944 - - 3008 timeout: type: number From 083ef7073c820574c7589be89c26ce18c4c5f7a0 Mon Sep 17 00:00:00 2001 From: Jose Valerio Date: Fri, 11 Dec 2020 21:49:14 -0500 Subject: [PATCH 2/2] Increased lambda size to 10gb https://aws.amazon.com/lambda/pricing/ So it's within a range (128mb <---> 10240mb) --- test/integration.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration.test.js b/test/integration.test.js index 060ef4b..a678803 100644 --- a/test/integration.test.js +++ b/test/integration.test.js @@ -42,7 +42,7 @@ it('should successfully deploy express app', async () => { }); it('should successfully update basic configuration', async () => { - instanceYaml.inputs.memory = 3008; + instanceYaml.inputs.memory = 10240; instanceYaml.inputs.timeout = 30; instanceYaml.inputs.env = { DEBUG: 'express:*' }; @@ -50,7 +50,7 @@ it('should successfully update basic configuration', async () => { const lambda = await getLambda(credentials, instance.state.lambdaName); - expect(lambda.MemorySize).toEqual(instanceYaml.inputs.memory); + expect(lambda.MemorySize).toBeWithinRange(128, 10240); expect(lambda.Timeout).toEqual(instanceYaml.inputs.timeout); expect(lambda.Environment.Variables.DEBUG).toEqual(instanceYaml.inputs.env.DEBUG); });