For common framework components, you can quickly develop and deploy your applications in the Tencent Cloud SLS console.
Before deploying your application in the console, you must complete the following permission configuration:
Note:If you have already created
CODING_QCSRole
, please check whether it has complete permissions. It requires the following basic policies:QcloudSLSFullAccess
,QcloudSSLFullAccess
, andQcloudAccessForCODINGRole
. If any policy is missing, please add it manually.
If the Tencent Cloud SLS and Coding DevOps services haven't been activated yet, please contact the root account to activate them and create the roles (as instructed in Directions).
dev
, test
, or prod
. Custom environment is also supported.Note:If you choose to create an application by importing an existing project, you need to make certain modifications to some frameworks. For more information, please see the relevant framework migration documentation.
If you choose to create an application from a template, you can quickly create a web application by selecting a project template provided in the console. During template-based deployment, the following configuration will be completed for you by default:
node_modules
in the layer. For more information on how to use a layer, please see Overview.You can also configure more capabilities for your project in Advanced Configuration, such as custom domain name and detailed function configuration.
Note:When configuring a custom domain name, make sure that an ICP filing has been obtained and a CNAME record has been configured for it. For more information, see Custom Domain Name and Certificate.
The Serverless console allows you to migrate an existing project through code hosting and folder upload.
Code hosting
Currently, GitHub, GitLab, Gitee, and public custom code repositories are supported. You can have your application automatically updated by selecting the trigger method for it.
Folder upload
You can directly import a local project by uploading the folder. For the Node.js framework, Serverless Framework will automatically create a layer and pass the dependency package node_modules
into the layer to complete the deployment.
In the SLS console, click the target application to enter the application details page and view the basic information output after the project is deployed as well as monitoring metric data such as the number of requests and error statistics.
Click Deploy at the top of the application details page, and you can quickly modify the configuration of your project and upload it for re-deployment. Three methods are supported: local upload, code hosting, and CLI development.
Was this page helpful?