top of page

Amazon Elastic Container Service(ECS)

Updated: Mar 7

Old tutorial blog. Deploy a Container Web App on Amazon ECS - OLD UI. Use this blog instead, for NEW UI.


Objectives:

  1. Learn To deploy a containerized application on Amazon Elastic Container Service (Amazon ECS).

  2. Learn Create the infrastructure to run your container with ECS

Step 1:

  • In AWS Management Console, go to ECS from search bar.

Step 2:

  • Here, we need to create a Cluster. Click on GET STARTED.

Step 3: From Container definition select sample-app and click on Edit. Scroll down to Advanced container configuration.

Step 4: Paste the following script in Command section from Environment

/bin/sh -c "echo '<html> <head> <title>Amazon ECS Sample App</title><style>body {margin-top: 40px; background-color: #333;} </style></head><body> <div style=color:white;text-align:center> <h1>Welcome toCloud-PlusPlus</h1> <h2>Congratulations! This is Amazon ECS</h2> <p>Yourapplication is now running on a container in Amazon ECS.</p></div></body></html>' >/usr/local/apache2/htdocs/index.html && httpd-foreground"

Keep the rest default and scroll down and click on update.


Step 5: Select Application Load Balancer and keep rest as it is. Click on next.

Step 6: Name your cluster, in this case "ECSDemo" and click next.

Step 7:Review the configuration and Click on Create. Here, the cluster is getting launched. Wait till the services are complete.

Click on view services.

Step 8: The Cluster is Created. Now, select Tasks and click on the first task i.e. the Container from Task status.

Step 9: Here you can review the details of your Container. Scroll down to Network and copy the Public IP.

Step 10: Paste the Public IP in the new window.


Note: If you no longer need the Cluster, delete the Cluster. Also deregister the task from Task definition at left panel from Amazon ECS.



ECS_Blog.
.pdf
Download PDF • 709KB

Was this document helpful? How can we make this document better? Please provide your insights. You can download PDF version for reference.

Recent Posts

See All

8件のコメント


Atchaya B
Atchaya B
4月10日

This blog helps to understand the concept of Amazon elastic container service.

いいね!

Jothipriya
Jothipriya
4月10日

Easy to follow the concept of Amazon elastic container service

いいね!

Gokulnath
Gokulnath
4月09日

Learnt to use the Amazon Elastic Container Service.

いいね!

Yamunadevi K
Yamunadevi K
4月09日

This blog makes it easier to follow the concept of Amazon Elastic Container Service.


いいね!

Gokul M
Gokul M
4月08日

Very easy to understand the ECS

いいね!
bottom of page