感谢 AWS Lambda 和 Symfony Bref,我想部署我的 Symfony 4 网站,我遵循了这个文档:
但我有这个错误:
我的 serverless.yaml 文件:
service: bref-symfony
package:
exclude:
- node_modules/**
- venv/**
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
请问是什么问题?