Serverless Framework Configuration
Serverless framework configuration files
| Type | object |
|---|---|
| File match |
serverless.yml
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/latest.json |
| Source | https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/reference.json |
Validate with Lintel
npx @lintel/lintel check
Schema for serverless framework configuration files
Properties
Configuration for Serverless AWS
46 nested properties
2 nested properties
Enabling this will make AWS scan image for CVE(Common Vulnerabilities and Exposures)
13 nested properties
Optional binary media types the API might return
Disable the default 'execute-api' HTTP endpoint (default: false)
Use ${service}-${stage} naming for API Gateway. Will be true by default in v3.
2 nested properties
Change this to use a custom name for the API Gateway API
Configure the S3 bucket used by Serverless Framework to deploy code packages to Lambda
11 nested properties
Prevents public access via ACLs or bucket policies (default: false). Note: the deployment bucket is not public by default. These are additional ACLs.
On deployment, serverless prunes artifacts older than this limit (default: 5)
Name of an existing bucket to use (default: created by serverless)
Skip the creation of a default bucket policy when the deployment bucket is created (default: false)
Enable bucket versioning (default: false)
4 nested properties
7 nested properties
5 nested properties
Log format to use for access logs. Ref:- https://docs.aws.amazon.com/apigateway/latest/developerguide/websocket-api-logging.html
Enables HTTP access logs (default: true)
Enable execution logging (default: true)
Log full requests/responses for execution logging (default: true)
2 nested properties
2 nested properties
Use function versioning (enabled by default)
2 nested properties
Method used for CloudFormation deployments: 'changesets' or 'direct' (default: changesets). See https://www.serverless.com/framework/docs/providers/aws/guide/deploying#deployment-method
Disable automatic rollback by CloudFormation on failure. To be used for non-production environments.
7 nested properties
Definitions
Optional binary media types the API might return
Disable the default 'execute-api' HTTP endpoint (default: false)
Use ${service}-${stage} naming for API Gateway. Will be true by default in v3.
2 nested properties
3 nested properties
2 nested properties
2 nested properties
Collection of Lambda layers to make it available for this lambda. Can use Cloudformation here as well. Usage on:- https://www.serverless.com/framework/docs/providers/aws/guide/layers#using-your-layers
2 nested properties
3 nested properties
1 nested properties
Configure the S3 bucket used by Serverless Framework to deploy code packages to Lambda
Prevents public access via ACLs or bucket policies (default: false). Note: the deployment bucket is not public by default. These are additional ACLs.
On deployment, serverless prunes artifacts older than this limit (default: 5)
Name of an existing bucket to use (default: created by serverless)
Skip the creation of a default bucket policy when the deployment bucket is created (default: false)
Enable bucket versioning (default: false)
2 nested properties
4 nested properties
3 nested properties
2 nested properties
3 nested properties
Aws Lambda function Eventbridge event source
9 nested properties
2 nested properties
5 nested properties
4 nested properties
Aws Lambda function Eventbridge event source
2 nested properties
3 nested properties
7 nested properties
5 nested properties
Log format to use for access logs. Ref:- https://docs.aws.amazon.com/apigateway/latest/developerguide/websocket-api-logging.html
Enables HTTP access logs (default: true)
Enable execution logging (default: true)
Log full requests/responses for execution logging (default: true)
1 nested properties
Configuration for Serverless AWS
2 nested properties
Enabling this will make AWS scan image for CVE(Common Vulnerabilities and Exposures)
13 nested properties
Optional binary media types the API might return
Disable the default 'execute-api' HTTP endpoint (default: false)
Use ${service}-${stage} naming for API Gateway. Will be true by default in v3.
2 nested properties
Change this to use a custom name for the API Gateway API
Configure the S3 bucket used by Serverless Framework to deploy code packages to Lambda
11 nested properties
Prevents public access via ACLs or bucket policies (default: false). Note: the deployment bucket is not public by default. These are additional ACLs.
On deployment, serverless prunes artifacts older than this limit (default: 5)
Name of an existing bucket to use (default: created by serverless)
Skip the creation of a default bucket policy when the deployment bucket is created (default: false)
Enable bucket versioning (default: false)
4 nested properties
7 nested properties
5 nested properties
Log format to use for access logs. Ref:- https://docs.aws.amazon.com/apigateway/latest/developerguide/websocket-api-logging.html
Enables HTTP access logs (default: true)
Enable execution logging (default: true)
Log full requests/responses for execution logging (default: true)
2 nested properties
2 nested properties
Use function versioning (enabled by default)
2 nested properties
Method used for CloudFormation deployments: 'changesets' or 'direct' (default: changesets). See https://www.serverless.com/framework/docs/providers/aws/guide/deploying#deployment-method
Disable automatic rollback by CloudFormation on failure. To be used for non-production environments.
@deprecated and doesn't work in serverless framework v3
3 nested properties
Log format to use for access logs. Ref:- https://docs.aws.amazon.com/apigateway/latest/developerguide/websocket-api-logging.html
Enables HTTP access logs (default: true)
Enable execution logging (default: true)
Log full requests/responses for execution logging (default: true)