serverless.yml
Serverless framework uses configuration in serverless.yml to deploy your project to the AWS Lambda.
# Name of your application/service
service: "My-Application-Name"
provider:
# Currently only supports AWS
name: aws
# Aws region
region: ap-south-1
# bref runtime provided for the lambda function
runtime: provided
# if set to true, Lambda will store code from all your deployments
versionFunctions: false
# Plugins to be included with the service
plugins:
- ./vendor/bref/bref
# You can define multiple functions here
functions:
# function details
function_name:
handler: index.php
description: 'Describe Your functions task'
layers:
- ${bref:layer.php-73}
# Exclude files from deployment
package:
exclude:
- 'tests/**'
- '.idea/**'
- '.gitignore'
Last updated
Was this helpful?