This topic describes how to use Resource Orchestration Service (ROS) Infrastructure Composer to deploy an Elastic Compute Service (ECS) instance with an Elastic IP Address (EIP). You will start from scratch and deploy the required virtual private cloud (VPC), vSwitch, and security group. You will also learn how to draw a resource architecture and automate the deployment.
Prerequisites
Create an Alibaba Cloud account and complete identity verification. For more information, see Identity verification.
Step 1: Drag resources and create a connection
Go to the ROS Infrastructure Composer module in the ROS console.
In the navigation pane on the left, choose Architecture Templates and click Create Architecture Template. In the dialog box, select ROS and then click OK.
From the navigation pane on the left, drag Single-zone Network to the canvas.
From the navigation pane on the left, drag ECS Instance into the vSwitch.
From the navigation pane on the left, drag Elastic IP Address into the region.
On the canvas, click Elastic IP Address. The resource is highlighted, and a connection point appears on each of its four sides. Click and hold any connection point, drag it to ECS Instance, and then release the mouse button. This connects the two resources. The result is shown in the following figure.

Step 2: Edit resource properties
On the canvas, click ECS Instance. In the form on the right, configure the resource properties. The following are example settings:
Set ECS Instance Type to ecs.t5-lc1m2.large.
Set Image ID to Alibaba Cloud Linux 3.2104 LTS 64-bit Quick Launch.
Set System Disk Type to Ultra Disk.

On the canvas, click Elastic IP Address. In the form on the right, configure the resource properties. The following are example settings:
Set EIP Billing Method to Pay-as-you-go.
Set EIP Metering Method to Pay-by-bandwidth.

Step 3: Automate the deployment
In the upper-right corner, click Deploy.
On the deployment page, click Next.
On the Price Preview page, view the estimated total cost. You can also click Cost Details to view the details of billable items.
Click Create to start the automated deployment. You can view the resource deployment status and the list of events in real time.
Step 4 (Optional): Delete the stack
If you no longer need the created resources, delete the stack to release the resources and avoid unnecessary charges.
On the Deployment tab, click the Stack ID.
On the stack details page, click Delete.

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