This topic describes how to deploy Java web development and test environments by creating
a stack in the Resource Orchestration Service (ROS) console.
Background information
You can use the Deploys Java web development and test environments sample template of ROS to create an Elastic Compute Service (ECS) instance that runs
CentOS 7 and install 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 delivers stable performance. After a stack is created by using the sample template,
you can obtain the value of the WebsiteURL parameter to log on to the Tomcat management
console.
Step 1: Create a stack
- Log on to the ROS console.
- In the left-side navigation pane, choose .
- Find the Deploys Java web development and test environments template.
- Click Create Stack.
- In the Configure Template Parameters step of the Use New Resources (Standard) wizard, configure Stack Name and the following parameters.
Parameter |
Description |
Example |
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 Image 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: enhanced SSD (ESSD)
- cloud: basic disk
- ephemeral_ssd: local SSD
For more information, see Disks.
|
cloud_efficiency |
Instance Password |
The password that you use to log on to the ECS instance. |
Test_12**** |
- Click Create.
- On the Stack Information tab, check the status of the stack. After the stack is in the Created state, obtain
the value of the WebsiteURL parameter on the Outputs tab. The WebsiteURL parameter specifies the URL of the Tomcat management console.
- Use the URL to log on to the Tomcat management console.
Step 2: View resources
- Log on to the ROS console.
- In the left-side navigation pane, click Stacks.
- On the Stacks page, click the stack that you created.
- On the page that appears, click the Resources tab to view resources.
The following table describes the resources in this example.
Resource |
Quantity |
Description |
Specifications |
ALIYUN::ECS::Instance |
1 |
You can use this resource type to create an ECS instance to deploy Java web development
and test environments.
|
- An ECS instance of 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 |
You can use this resource type to create a VPC to enhance network security in the
cloud.
|
None. |
ALIYUN::ECS::VSwitch |
1 |
You can use this resource type to create a vSwitch to manage the instance in a zone.
|
None. |
Note For more information about the pricing of resources, refer to the console or the pricing
documentation of each resource.