Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions serverless.component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ 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:*' };

const instance = await sdk.deploy(instanceYaml, credentials);

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);
});
Expand Down