Summary
Lambda memory (currently hardcoded at 1024MB) and timeout (hardcoded at 30s) should be configurable in nextdeploy.yml.
Current Behavior
In aws_lambda.go, memory and timeout are hardcoded:
MemorySize: aws.Int32(1024),
Timeout: aws.Int32(30),
Expected Behavior
Read from config:
serverless:
provider: aws
region: us-east-1
lambda:
memory: 1024 # MB (128-10240)
timeout: 30 # seconds (1-900)
Files to Modify
shared/config/types.go — Add Lambda struct to ServerlessConfig with Memory and Timeout fields
cli/internal/serverless/aws_lambda.go — Read from config instead of hardcoded values
sample.nextdeploy.yml — Add example config
Validation
- Memory must be between 128 and 10240 MB
- Timeout must be between 1 and 900 seconds
- Use current defaults (1024MB, 30s) if not specified
Difficulty: Easy · Language: Go
Summary
Lambda memory (currently hardcoded at 1024MB) and timeout (hardcoded at 30s) should be configurable in
nextdeploy.yml.Current Behavior
In
aws_lambda.go, memory and timeout are hardcoded:Expected Behavior
Read from config:
Files to Modify
shared/config/types.go— AddLambdastruct toServerlessConfigwithMemoryandTimeoutfieldscli/internal/serverless/aws_lambda.go— Read from config instead of hardcoded valuessample.nextdeploy.yml— Add example configValidation
Difficulty: Easy · Language: Go