Alibaba Cloud - Quick Start
This guide is designed to help you get started as quick as possible.
1. Create a new service
- Create a new service with the
serverless create --template aliyun-nodejs --path my-service
- Install the dependencies
cd my-service npm install
2. Set up the credentials
Read through credentials doc to setup the credentials.
credentials in your projects
Make sure that you have activated Function Compute and any other dependent services such as RAM, Log Service, API Gateway and OSS before attempting to deploy your function.
Run the deploy command
Run the invoke command
serverless invoke --function first