Skip to content

Instantly share code, notes, and snippets.

service: sls-layers-python
provider:
name: aws
runtime: python3.6
package:
individually: true
exclude:
service: sls-layers-python-requirements
provider:
name: aws
runtime: python3.6
plugins:
- serverless-python-requirements
custom:
import json
import numpy as np
def hello(event, context):
arr = np.arange(15).reshape(3, 5)
b = arr.tolist()
body = {
"result": b
}