This topic describes how to use Resource Orchestration Service (ROS) Infrastructure Composer to deploy an Elastic Compute Service (ECS) instance that is associated with an elastic IP address (EIP) and depends on a virtual private cloud (VPC), vSwitch, and security group. This can help you familiarize yourself with how to draw a resource architecture and implement automated deployment by using ROS Infrastructure Composer.
Step 1: Drag resources and create a connection
Go to the ROS Infrastructure Composer module in the ROS console.
In the left-side navigation pane, click Infrastructure Templates. On the Infrastructure Templates page, click Create Infrastructure Template. In the dialog box that appears, select ROS and click OK.
Drag the Single-zone Network card from the left-side navigation pane to the canvas.
Drag the ECS Instance card from the left-side navigation pane to the vSwitch component on the canvas.
Drag the EIP card from the left-side navigation pane to the region component on the canvas.
On the canvas, click the EIP card to highlight the card and display a connector port on each of the four sides. Click a connector port and drag the line to the ECS Instance card. This way, a connection is created between the two cards. The following figure shows the connection.
Step 2: Configure resource properties
On the canvas, click the ECS Instance card. In the right-side panel, configure properties for the ECS instance. The property values are displayed based on the actual query result. The following section provides an example on how to configure the properties:
InstanceType: Specify ecs.t5-lc1m2.large as the property value.
ImageId: Select Alibaba Cloud Linux and 3.2104 LTS 64 bit Quick Boot from the relevant drop-down lists.
SystemDiskCategory: Specify ESSD as the property value.

On the canvas, click the EIP card. In the right-side panel, configure properties for the EIP. The property values are displayed based on the actual query result. The following section provides an example on how to configure the properties:
Step 3: Implement automated deployment
In the upper-right corner of the canvas, click Deploy.
In the panel that appears, click Next.
In the Price Preview section, view the estimated price of all resources. You can also click Cost Details to view the details of billable items.
Click Create to implement automated deployment and view the deployment status and events of the resources in real time.
Step 4: (Optional) Delete the stack
You can delete a stack that you no longer need and release resources from the stack to prevent unnecessary costs.
In the panel below Deploy, click the stack ID.
On the stack details page, click Delete.

In the Delete Stack dialog box, set the Method to Delete the Stack parameter to Release Resources.
Click OK.