This topic describes how to deploy a Java web development and test environment by creating a stack in the Resource Orchestration Service (ROS) console.
Background information
You can use the Deploys JavaWeb development and test environments sample template of ROS to create an Elastic Compute Service (ECS) instance that runs CentOS 7 and install Apache Tomcat and Java Development Kit (JDK) on the instance. Apache Tomcat is a free and open source web application server that features advanced technologies and provides stable performance. After you create a stack by using the sample template, you can obtain the value of WebsiteURL to log on to the Apache Tomcat management console.
Step 1: Create a stack
Log on to the ROS console.
In the left-side navigation pane, choose .
Find the Deploys JavaWeb development and test environments template.
Click Create Stack.
In the Configure Parameters step, configure Stack Name and the following parameters.
Parameter
Description
Example
Zone ID
The zone ID of the ECS instance.
Qingdao Zone C
VPC CIDR Block
The CIDR block of the virtual private cloud (VPC).
For more information, see Overview of VPCs and vSwitches.
192.168.0.0/16
VSwitch CIDR Block
The CIDR block of the vSwitch. The value must be a subnet of the VPC CIDR block.
For more information, see Overview of VPCs and vSwitches.
192.168.1.0/24
Image ID
The image ID of the ECS instance. By default, centos_7 is used.
For more information, see Overview.
centos_7
Instance Type
The instance type of the ECS instance.
Select a valid instance type. For more information, see Overview of instance families.
ecs.xn4.small
Instance System Disk Category
The system disk category of the ECS instance. Valid values:
cloud_efficiency: ultra disk
cloud_ssd: standard SSD
cloud_essd: Enterprise SSD (ESSD)
cloud: basic disk
ephemeral_ssd: local SSD
For more information, see Disks.
cloud_efficiency
Instance Password
The password of the ECS instance.
Test_12****
Click Create.
On the Stack Information tab, view the status of the stack. Wait until the stack is created. Then, click the Outputs tab to obtain the value of WebsiteURL.
Use the value of WebsiteURL to log on to the Apache Tomcat management console.
Step 2: View resources
In the left-side navigation pane, click Stacks.
On the Stacks page, click the name of the created stack.
Click the Resources tab to view the information about resources in the stack.
The following table describes the resources in this example.
Resource
Quantity
Description
Specifications
ALIYUN::ECS::Instance
1
Creates an ECS instance to deploy a Java web development and test environment.
An ECS instance that has the following specifications is created:
Instance type: ecs.xn4.small.
Disk category: ultra disk.
System disk size: 40 GB.
Public IP address: A public IP address is allocated.
ALIYUN::ECS::VPC
1
Creates a VPC to enhance network security in the cloud.
None.
ALIYUN::ECS::VSwitch
1
Creates a vSwitch to manage the instance in a zone.
None.
NoteTo view the pricing details of resources, go to the relevant console or refer to the pricing documentation of each resource.