
- #Npm serverless update function how to
- #Npm serverless update function install
- #Npm serverless update function upgrade

Timeout: 10 # optional, in seconds, default is 6 MemorySize: 128 # optional, in MB, default is 1024 You can configure memory size and timeout for function in AWS lambda: # 🏈 Configuration (serverless.yml) Memory Size, Timeout, etc in AWS lambda
#Npm serverless update function install
Pip install requests -t /app/lib/requests

If you want to use library, please install pip libraries as follows: # In docker # Check the event documentation for detailsĮnable to confirm your devloping function on local # Call the functionĪfter development, you can deploy your code by one command: sls deploy -vĮnable to confirm your devloping function on local or you can call your API by curl: # Call the function ( diff -no-index -unified=1 serverless.yml): -25,3 +25,3 provider: Modify serverless.yml configuration file: 🐰 Create lambda function with Pytnon3 templateĬreate new service: # Create service with Python 3.x 🐹 Set AWS Access key sls config credentials -provider aws -key $AWS_ACCESS_KEY_ID -secret $AWS_SECRET_ACCESS_KEY 😎 Start the image for dev docker-compose up -d Please add your AWS Access information and do not commit the. env.docker: aws_access_key_id=YOUR_ACCESS_KEY_IDĪws_secret_access_key=YOUR_SECRET_ACCESS_KEY
#Npm serverless update function upgrade
RUN apt-get update -y & apt-get upgrade -yĪlso, create docker-compose.yml: version: '3.5'Īfter then, create. If you want to develop a function with Python, it is better to use Dockerfile, because it is easy to use pip library in lambda.Ĭreate Dockerfile for development: FROM python: 3.6

🎂 Installation yarn global add serverless
#Npm serverless update function how to
In this article, I would like to introduce how to build basic lambda API by Node.js/Python with Docker. Serverless is toolkit for deploying and operating serverless framework due to focus your application.
