FPT Software's Technology Community
  • Contact Us

Amazon EC2 Container Service (ECS) – Quick Review

Ting Hsuan Lin | September 26, 2016

What is ECS?

Amazon EC2 Container Service (ECS) is highly scalable, high performance container management services that supports Docker containers and allows you to easily run applications on a managed cluster of Amazon EC2 instances.

  • Your containers will run on ECS instances.
  • There is no additional cost: you pay only for the EC2 resources.
  • The service is currently in preview; general availability will come in the next few months.
  • For now, you can try in console dashboards, CLI and API.
  • For now, you can only start containers from public images hosted on the Docker Registry, but that’s expected to change when the service goes out of preview.

    Glossary

    Container instance

    A “container instance” can be any EC2 instance running any Linux distro (Ubuntu, Centos…). It just needs two extra software components:

    • The Docker daemon
    • The AWS ECS agent

    The ECS agent is open source (Apache license).

    https://github.com/aws/amazon-ecs-agent

    Cluster

    That’s a pool of resources. A cluster starts being empty, and you can dynamically scale up/down by adding and removing instances. It’s a regional object that can span multiple AZs.

    Task definition

    It’s an app definition in JSON.

    Task

    A task in an instanciation of a task definition. In other words, that will be a group of related, running containers.

    Example to run an PHP application on ECS

    Note: I use CLI for this example. You could use console dashboard or API instead.

    Step 1: launch an EC2 instance with Amazon ECS AMI

    Using normal process to launch an EC2. Remember:

    • Use Amazon ECS-optimized AMI in community AMIs
    • Launch EC2 with IAM role in ECS full

    Step 2: List container instance

    Step 3: Register a task definition

    You could use this sample JSON

    It defines a Docker container with configurations below:

    • Memory: 256 MB
    • CPU: 0.5 CPU core.
    • Name: php-app
    • Image: tuna/php5 (I uploaded it to Docker Registry)
    • Essential = true: the failure of that container stops the task
    • Family = ecs-poc: versioning purpose.
    • Port mapping: 80, 22

    Register this task definition:

    $ aws ecs register-task-definition –cli-input-json file://$HOME/tasks/php.json

    Step 4: Run task

    $ aws ecs run-task –cluster default –task-definition ecs-poc:1 –count 1

    Comments

    From Docker point of view

    I would love if:

    • Container instances and clusters could be managed with Docker Machine
    • Task definitions and tasks could be managed with Docker Compose as the frontend
    • Docker Swarm could be used as a custom scheduler

      From AWS point of view

      I would love if:

      • ECS could be integrated with Cloud Formation
      • Images could be pushed to S3-backed registry– TuNA7 – 

Leave a Reply

Your email address will not be published. Required fields are marked *

Normally I don’t read post on blogs, but I would like to say that this write-up very forced me to try and do so! Your writing style has been surprised me. Thanks, very nice article.

Good post. I learn something new and challenging on blogs
I stumbleupon on a daily basis. It’s always useful to read through content from other authors and practice something
from other sites.

https://сказка.СѓРєСЂ/%D1%81%D0%BA%D0%B0%D1%87%D0%B0%D1%82%D1%8C.php?97613 – where buy viagra online costumer review

http://stroitrackmachine.ru/cm1_(58).htm – buy viagra sample

http://bitumoklei.ru/master1_(96).htm – where can i buy viagra in stores

http://blockmountech.ru/teru/silicat2.htm – do i need a prescription to buy viagra from canada

http://zementstroiconstruct.ru/conm1_(147).htm – buy viagra in uk over the counter

who is the girl in the viagra commercial
natural viagra substitute https://edphrm.com/ viagra canada online pharmacy viagra without a doctor prescription
which health insurance provider includes viagra which is better viagra or cialis

how many sildenafil equal 1 viagra what is the cost per year for our military to take viagra?
viagra boner viagra prices https://edphrm.com/ sildenafil 100 mg generic viagra without a doctor prescription
where can i buy viagra in nyc

viagra alternatives that work viagra website
sildenafil 20 mg tablet cheap viagra https://goeedl.com/ sildenafil 20 mg tablet vs viagra cialis over the counter
what is the maximum amount of time viagra can be in your system if you are an older man

how much generic viagra cost at walmart can you take viagra with antidepressants
viagra prescription viagra boner https://lmeed.com/ viagra prices
how many mg of sildenafil in viagra why would you take high blood pressure and viagra

how to talk to your doctor about viagra can i get viagra
natural viagra substitute https://edphrm.com/ viagra canada online pharmacy viagra without a doctor prescription
when viagra patent expires which rhino.tablet supposedly has the ingredient that viagra has in it

Hello just wanted to give you a quick heads up. The text in your post seem to be running off the screen in Opera. I’m not sure if this is a formatting issue or something to do with web browser compatibility but I thought I’d post to let you know. The design and style look great though! Hope you get the problem solved soon. Thanks

It’s the best time to make a few plans for the future and it is time to be happy. I’ve read this put up and if I may just I want to suggest you few interesting issues or suggestions. Maybe you could write next articles relating to this article. I want to read even more things about it!

Thank you for the good writeup. It in fact was a amusement account it. Look advanced to more added agreeable from you! However, how can we communicate?

Architecture entirely to your case generic cialis 5mg online update the ED: alprostadil (Caverject) avanafil (Stendra) sildenafil (Viagra) tadalafil (Cialis) instrumentation (Androderm) vardenafil (Levitra) In place of some men, advanced in years residents may give rise ED. female viagra Tmazqo crcvdi

what happens when a woman takes viagra?
how long does it take for watermelon viagra to work
viagra vs cialis vs levitra reddit

Greetings, I believe your blog could be having internet browser compatibility issues. Whenever I look at your site in Safari, it looks fine however, when opening in I.E., it has some overlapping issues. I merely wanted to provide you with a quick heads up! Other than that, excellent site!

I needed to thank you for this good read!! I certainly enjoyed every little bit of it. I’ve got you book-marked to look at new things you post…

why does the military spend money on viagra
viagra sale trusttnstore.com cialis online
how long does it take viagra to kick in

I’ve been surfing online more than three hours today, yet I never found any interesting article like yours. It is pretty worth enough for me. Personally, if all site owners and bloggers made good content as you did, the web will be much more useful than ever before.

I’ve been surfing online more than 3 hours as of late, yet I by no means found any fascinating article like yours. It is lovely value sufficient for me. In my view, if all web owners and bloggers made excellent content as you probably did, the internet will be a lot more helpful than ever before.

Howdy! I just would like to give you a big thumbs up for your great information you have got right here on this post. I am returning to your site for more soon.

I enjoy what you guys tend to be up too. This sort of clever work and coverage! Keep up the terrific works guys I’ve included you guys to my blogroll.

Howdy! This post couldn’t be written much better! Looking through this post reminds me of my previous roommate! He always kept talking about this. I most certainly will send this article to him. Fairly certain he will have a very good read. Thanks for sharing!

I like what you guys are usually up too. This sort of clever work and exposure! Keep up the fantastic works guys I’ve added you guys to my personal blogroll.

If Japan is area of pre-eminent site to buy cialis online forum regional anesthesia’s can provides, in earliest, you are old to be a Diagnosis: you are high to other treatment the discontinuation to take demanding as it most. purchase viagra sildenafil citrate

KAI FUEM ALL LOVE HITS.A subset of users may notice Xanax working on the first day of administration, but they may not experience a therapeutically-relevant effect.The Redmi Note 8T has a 6.3-inch display, protected by hardened Corning Gorilla Glass 5, and a similar glass covers the rear panel.Drug overdose.For the production of dietary bowls used foliage damiana, seed, ginseng, hawthorn, extract of wild oat seed, cayenne pepper. viagra prices The same is true of speed, compatibility and duration of effect.I Gave My Girlfriend A Special Pill To See How She Would React.Ripe fruits envelop with its aroma, which is pleasantly accompanied by a light chill.But even if your erection goes away after you ve ejaculated, Viagra can help you to get another erection for up to 4 hours after you ve taken a dose.Clomid is used for treating female infertility. buy viagra It does not refer to drugs, but to food additives.To minimize the risk of postural hypotension in patients taking alpha-blockers, the drug Viagra should begin only after stabilization of hemodynamics in these patients.a series of events dedicated to the celebration of the anniversary of the Great Victory was held in the Roven psychoneurological boarding school for social service recipients.Its reception after the expiration date is not safe for the body.What should I watch for while taking this medicine. https://pharm-usa-official.com – viagra online The pills for the potency of boss can be used at all signs of erectile dysfunction caused by age-related changes in the body, stress and fatigue.During clinical studies, side effects such as blurred vision, increased perception of light, rhinitis, dizziness, vasodilation were also reported.Generic viagra online for sale.What would you ask if no one was watching.Number Price Promotion.

buy tadalafil tablets tadalafil online tadalafil 20 mg tadalafil 20 mg generic for cialis tadalafil

tadalafil en ligne adcirca tadalafil tadalafil dosage generic for cialis tadalafil tadalafil 20 mg best price

https://supertadalafil.com/ – generic tadalafil

prix tadalafil tadalafil liquid tadalafil cialis side effects for tadalafil tadalafil generic

tadalafil liquid tadalafil mylan tadalafil generic generic cialis tadalafil best buys tadalafil 20 mg wirkungsdauer

https://xtadalafilx.com/ – cialis tadalafil

liquid tadalafil buy tadalafil online generic tadalafil tadalafil vs vardenafil tadalafil 20mg avis

tadalafil 20mg tadalafila 20mg tadalafil cialis tadalafil online tadalafil reviews

https://supertadalafil.com/ – liquid tadalafil

tadalafil vs viagra prix tadalafil tadalafil cialis tadalafil 10mg prix tadalafil generic cialis 20 mg

tadalafil for women tadalafil tablets 20 mg generic tadalafil vardenafil vs tadalafil tadalafil lilly

https://xtadalafilx.com/ – tadalafil 5mg

liquid tadalafil tadalafil 5mg generic tadalafil cheap tadalafil tadalafil powder

side effects for tadalafil buy tadalafil 20mg price liquid tadalafil adcirca tadalafil tadalafil cost cvs

https://supertadalafil.com/ – cheap tadalafil

what is tadalafil tadalafil prix en pharmacie tadalafil dosage tadalafil tablets 20 mg buy tadalafil 20mg price

adcirca tadalafil tadalafil vs vardenafil generic cialis tadalafil tadalafil 20 mg best price tadalafil vs vardenafil

https://xtadalafilx.com/ – tadalafil generic

tadalafil lilly tadalafil vs vardenafil tadalafil reviews buy tadalafil 20mg price tadalafil 20mg avis

tadalafil generic cialis 20 mg buy cialis ebay find tadalafil generic cialis tadalafil tadalafil citrate cialis tadalafil

https://supertadalafil.com/ – cialis tadalafil

tadalafil 20 mg tablet what is tadalafil tadalafil reviews tadalafil en ligne tadalafil 20mg prix

tadalafil for women buy tadalafil tadalafil 20mg generic cialis tadalafil 20 mg from india tadalafil generic vs cialis

https://xtadalafilx.com/ – tadalafil generic

buy tadalafil 20mg price tadalafil biogaran 20 mg prix tadalafil dosage tadalafil biogaran 20 mg prix buy cialis ebay find tadalafil

tadalafil lilly 5mg prix tadalafil generic cialis 20 mg generic cialis tadalafil tadalafil cialis tadalafil generic usa

https://supertadalafil.com/ – generic tadalafil

generic cialis tadalafil 40 mg tadalafil generic tadalafil cialis tadalafil tablets 20 mg purchase peptides tadalafil

cialis vs tadalafil generic tadalafil 20 tadalafil dosage generic cialis tadalafil 40 mg tadalafil generic

https://xtadalafilx.com/ – cialis tadalafil

tadalafil 20 mg wirkungsdauer tadalafil dosage tadalafil dosage tadalafil vs sildenafil tadalafil generique

tadalafil 20mg avis tadalafil tablets tadalafil cialis generic cialis tadalafil 20 mg from india tadalafil biogaran

https://supertadalafil.com/ – tadalafil liquid

generic cialis tadalafil best buys generic cialis tadalafil 20 mg from india tadalafil liquid tadalafil pronunciation tadalafil generic cialis 20 mg

tadalafil canadian pharmacy tadalafil lilly tadalafil cialis tadalafil generique en pharmacie tadalafil liquid

https://xtadalafilx.com/ – generic tadalafil

tadalafil canadian pharmacy tadalafil 10mg prix tadalafil liquid tadalafil 5mg prix tadalafil prix en pharmacie

tadalafil cost tadalafil cost cvs tadalafil dosage mylan tadalafil tadalafil mylan

https://supertadalafil.com/ – tadalafil 20mg

tadalafila 20mg generic tadalafil tadalafil 20 mg buy cialis ebay find tadalafil tadalafil 20 mg

tadalafil pronunciation what is tadalafil tadalafil 20mg generic cialis tadalafil 20mg cialis generic tadalafil

https://xtadalafilx.com/ – tadalafil reviews

tadalafil cost cvs tadalafil mylan tadalafil 20mg tadalafil 20 tadalafil generic usa

tadalafil 10 mg tadalafil en ligne tadalafil liquid generic cialis tadalafil 20 mg from india tadalafila

https://supertadalafil.com/ – buy tadalafil online

tadalafil biogaran adcirca tadalafil cialis tadalafil tadalafil generic usa purchase peptides tadalafil

tadalafil 5mg prix prix tadalafil tadalafil generic tadalafil lilly tadalafil 20mg avis

https://xtadalafilx.com/ – tadalafil reviews

how many days do you have to fill a prescription for viagra viagra erection after ejaculation viagra how long should you wait when taking viagra wikimedia wikimedia viagra was originally tested to treat what?

teva’s generic viagra reaction to viagra viagra does sideafil work as good as viagra sophia viagra red dress

https://pharm-usa-official.com – viagra