serverless / serverless/serverless
Unzipped size must be smaller than 182402329 bytes
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 46.9k
- Forks
- 5.7k
- Avg merge
- 10h 7m
- Merged PRs (30d)
- 57
Description
Hi,
I have a Symfony 4 website and I would like deploy it but I have this error :
An error occurred: ConsoleLambdaFunction - Unzipped size must be smaller than 182402329 bytes (Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException; Request ID: 8c900c39-3347-4c60-9e9f-3b14a3eb3fbb).
when I use this following command :
serverless deploy -v

serverless.yaml :
service: bref-symfony
provider:
name: aws
region: eu-west-3
runtime: provided
environment:
# Symfony environment variables
APP_ENV: prod
plugins:
- ./vendor/bref/bref
functions:
website:
handler: public/index.php
timeout: 30 # in seconds (API Gateway has a timeout of 30 seconds)
layers:
- ${bref:layer.php-73-fpm}
events:
- http: 'ANY /'
- http: 'ANY /{proxy+}'
console:
handler: bin/console
timeout: 120 # in seconds
layers:
- ${bref:layer.php-73} # PHP
- ${bref:layer.console} # The "console" layer
How can I make it work please?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the serverless.yaml configuration and reproduce the failure with serverless deploy -v. Investigate how the Symfony 4 application and its dependencies are packaged for the AWS Lambda console function. Done means the deployment completes without the unzipped-size error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, php, symfony
- Domain
- cloud, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100