Compute Nest provides standardized processes and example templates to help you quickly get started with service creation and deployment. This document shows how to quickly create a service using the sample template.
Overview
In Compute Nest, you can use sample templates to quickly build and deploy services. The sample templates include best-practice configurations for common business scenarios, greatly simplifying the service creation process. They are well-suited for users with no technical background or those looking to launch services quickly. To help such users easily understand how to create and deploy services, Compute Nest provides standardized templates and example processes. The workflow is as follows:
When creating a service using a template, you can choose ECS or ACK as the infrastructure for running your service as needed.
ECS: Suitable for traditional application deployment, providing virtual machine-level computing capabilities.
ACK: Suitable for containerized application deployment, supporting Kubernetes-based microservice architecture, facilitating high availability and elastic scaling for service deployment.
Create a service based on the service architecture
Select the architecture (such as ECS or ACK) and deployment method (such as image or software package) based on your requirements.
If you only want to experience Compute Nest, executing this part to complete the service creation. Subsequent steps are not required.
Open My Services page in the Compute Nest console and click Create Service.
On the Create Service page, select Quick Launch (From Template) and Select a Service Type based on the delivery type.
Service type
Description
Private Service
Software and resources are deployed within the accounts of customers.
Fully Managed Service
Software and resources are deployed within the accounts of service providers.
In the Select Template section, click View Details on a specific service card to check whether the service description and architecture meet your business requirements. Click Next: Configure Settings.

Fill in the service information based on your requirements and click Create Service.

View the status of the service creation in My Services.
Replace deployment packages/scripts (optional)
To help service providers quickly build their own services, you can replace the deployment packages or scripts in the template based on your software requirements to adapt to different business scenarios. Compute Nest curated templates support replacing deployment packages and running scripts, improving the flexibility and applicability of templates.
Replace deployment packages
You have completed the creation of deployment packages, including ECS images, Helm images, files, container images. For more information, refer to Overview of deployment packages.
Click the service card to enter the service details page. Click Modify Version in the upper-right corner and select Update in Console in the dialog box.

In the Deployment Package Association section, you can see the deployment package currently associated with the service. Click Associate Deployment Package.
In the Select Deployment Package dialog box, you can select the deployment package and version that you have created. Click OK to complete the replacement. This section uses Example-SpringBoot-ECS Image as an example.

Click Save Update.
Replace running scripts
Click the service card to enter the service details page. Click Modify Version in the upper-right corner and select Update in Console in the dialog box.

In the Template Content section, modify the scripts in the template. Click Save Update.
ECS: Find the resource
ALIYUN::ECS::RunCommandand modify theCommandContentsection to the script required for your business.
ACK: Find the resource
ALIYUN::CS::ClusterApplicationand modify theyamlContentsection to the script required for your business.
Modify the template (optional)
Add cloud resources
The example templates provided by Compute Nest include only basic cloud resources (such as ECS and VPC). If additional resources are required, service providers must modify the template accordingly. For example, in an ECS image–based service deployment, if an RDS resource needs to be added, proceed with the following steps:
Open the My Services page in the Compute Nest console, enter the service details page, click Modify Version in the upper-right corner, and select Update in Console in the dialog box. Find the Resources section in the current template.
In this section, to add RDS, you need to add an RDS resource in the Resources section.
Go to Resource Orchestration Service to find the corresponding resource code example section. In this example, for RDS resources, find the ALIYUN::RDS::DBInstance document and locate the resource example section.
Copy the corresponding code to the
Resourcessection of the Compute Nest template to add the RDS resource.NoteThe parameters in the
Refsection may need to be modified according to the specific parameter names in the template.
Configure cloud resource parameters
Add cloud resource parameters
If you want to add cloud resource parameters, go to Resource Orchestration Service to find the corresponding resource code example section and add the required parameters to the Properties field of the cloud resource. For example, if you want to set the network type of the database instance to public access for RDS:
Read the documentation to find the corresponding cloud resource parameter
DBInstanceNetType.Add the parameter to the template to complete the configuration.
Modify cloud resource parameters
If you want to modify parameters of an existing cloud resource, first refer to the documentation to confirm the parameters that need to be changed. Then, update the relevant values in the Properties section of the resource configuration. For example, to change the database type used by the current RDS resource from MySQL to SQL Server, follow the steps below:
Go to Resource Orchestration Service to find the corresponding resource code. Read the parameter properties section of the documentation to get the parameters
EngineandEngVersionyou need to modify.Modify the corresponding parameters in the Compute Nest template.
If you want to delete a parameter, confirm that the resource parameter is not required to avoid affecting your normal business.
Expose cloud resource parameters as an input
You can add parameters in the Parameters section of the Compute Nest template and reference it in Properties using the Ref function. This allows the cloud resource parameter to be exposed as user input.
Test and publish
After saving the service, you can perform self-testing or share the service with specific customers for testing by publishing it as a pre-release. For more information, refer to Test a service.
After the service passes testing, submit it for review. After the review is approved, the service can be published. For more information, refer to Publish a service.
Advanced configuration (optional)
To customize the template or adjust the service configuration (such as adjusting resource specifications and upgrading the service), you can proceed with modifications. For more information, refer to Advanced features.