After you create the ECS instances, deploy applications on them. In this tutorial, two static web pages are deployed on the ECS instances using Apache.

Procedure

  1. Log on to the ECS instance.


  2. Enter the following command to install Apache.
    sudo apt-get install apache2
  3. Enter the following command to modify the content of the index.html file.
    cd /var/www/html
    
    echo "Hello World ! This is ECS01." > index.html

    After modifying the content, enter the Elastic IP of the ECS instance in the web browser, you will see the following content.



  4. Repeat the preceding steps to create a web page on the other ECS instance and change the content to Hello World ! This is ECS02..
    After modifying the content, enter the Elastic IP of the ECS instance in the web browser, you will see the following content.