This topic describes how to activate and configure Elastic Compute Service (ECS).
Background information
An Elastic Compute Service (ECS) instance is the recommended environment for building the short video demo. Unlike physical hardware, an ECS instance lets you purchase computing power, storage, and bandwidth as needed. In this example, the ECS instance provides a public IP address. By attaching a RAM role, applications on the instance can use Security Token Service (STS) temporary authorization to access other cloud products, such as Video on Demand (VOD). This method is more secure and convenient than using an AccessKey to access resources.
Configure the ECS service
You can purchase an ECS instance. For more information, see Elastic Compute Service.
NoteThis example requires only a basic ECS instance, such as an s6 shared instance or a t5 burstable instance, with 1 vCPU and 1 GB of memory on a weekly subscription. If you set the bandwidth billing method to pay-by-traffic, the cost is approximately CNY 10. You can release the instance after you finish the setup.
Set a custom password as the logon credential to simplify the Secure Shell (SSH) logon and Secure Copy (SCP) file transfer processes for the demo. For a production environment, purchase an appropriate ECS instance and use a key pair as the logon credential.
This topic uses Ubuntu 18.04 as an example image. You can also select another Linux distribution.
Log on to the ECS console.
Click the ID of the ECS instance that you purchased.
In the navigation pane on the left, select Security Groups.
Click the ID of the security group of the ECS instance that you purchased.
On the Inbound tab, click Add Rule. Set Destination to 8080 and Source to 0.0.0.0/0.
NoteTo open other ports, repeat this step and configure the settings as needed.