Thanks to serverless.
The Serverless Framework – Build applications comprised of microservices that run in response to events, auto-scale for you, and only charge you when they run. This lowers the total cost of maintaining your apps, enabling you to build more logic, faster.
The Framework uses new event-driven compute services, like AWS Lambda, Tencent Cloud Functions, and more. It's a command-line tool, providing scaffolding, workflow automation and best practices for developing and deploying your serverless architecture. It's also completely extensible via plugins.
- Install via npm:
$ npm install -g slsplus
- Set-up your Provider Credentials:
Add the access keys of a Tencent CAM Role with
AdministratorAccess in the
.env file, using this format:
# .env TENCENT_SECRET_ID=XXX TENCENT_SECRET_KEY=XXX
- Create a Project:
# Create a new Serverless Project$ slsplus create --template-url https://github.com/serverless-plus/components/tree/master/templates/tencent-fullstack-react-application# Change into the newly created directory$ cd tencent-fullstack-react-application
- Deploy a Project:
Use this when you have made changes to your Functions, Events or Resources in
serverless.yml or you simply want to deploy all changes within your Project at the same time.
$ slsplus --debug
- Remove the Service:
Removes all Functions, Events and Resources from your AWS account.
$ slsplus remove --debug