Development Notes
  • Introduction
  • Programming Langauges
    • Java
      • Cache
      • Java Fundamentals
      • Multithreading & Concurrency
      • Spring Boot
        • Spring Security
        • Development tips
      • ORM
        • Mybatis
      • Implementation & Testing
    • Node.js
      • Asynchronous Execution
      • Node.js Notes
    • Python
      • Memo
  • Data Structure & Algorithm
  • Database
  • Design Pattern
  • AWS Notes
    • Services
      • API Gateway
      • CloudHSM
      • Compute & Load Balancing
        • Auto Scaling Group
        • EC2
        • ECS
        • ELB
        • Lambda
      • Data Engineering
        • Athena
        • Batch
        • EMR
        • IoT
        • Kinesis
        • Video Streaming
        • Quicksight
      • Deployment
        • CloudFormation
        • Code Deploy
        • Elastic Beanstalk
        • OpsWorks
        • SAM
        • SSM
      • ElasticSearch
      • Identity & Federation
        • Directory Service
        • IAM
        • Organizations
        • Resource Access Manager (RAM)
        • SSO
        • STS
      • KMS
      • Management Tools
        • Catalog
        • CloudTrail
        • CloudWatch
        • Config
        • Cost Allocation Tags
        • GuardDuty
        • Savings Plans
        • Trusted Advisor
        • X-Ray
      • Migration
        • Cloud Migration: The 6R
        • Disaster Recovery
        • DMS
        • VM Migrations
      • Networking
        • ACM
        • CloudFront
        • Direct Connect
        • EIP & ENI
        • Network Security
        • PrivateLink
        • Route53
        • VPC
        • VPN
      • Service Commnucation
        • Amazon MQ
        • SNS
        • SQS
        • Step Functions
        • SWF
      • Storage
        • Aurora
        • DynamoDB
        • EBS
        • EFS
        • ElastiCache
        • RDS
        • Redshift
        • S3
        • Storage Gateway
      • Other Services
        • Alexa for Business, Lex, Connect
        • AppStream 2.0
        • CloudSearch
        • Comprehend
        • Data Tools
        • Elastic Transcoder
        • Mechanical Turk
        • Rekognition
        • WorkDocs
        • WorkSpaces
    • Well Architect Framework
      • Security
      • Reliability
      • Performance Effeciency
      • Cost Optimization
      • Operational Excellence
    • Labs
      • Webserver Implementation
      • ELB Implementation
      • Auto-scaling Implementation
      • A 3-tier Architecture In VPC
  • Architecture
    • Security
  • Spark
    • Memo
  • Conference Notes
    • Notes of JCConf 2017
  • AI Notes
Powered by GitBook
On this page

Was this helpful?

  1. AWS Notes
  2. Services
  3. Compute & Load Balancing

ECS

Introduction

  • Elastic Container Service (ECS) manages Docker applications across a cluster. It's regional.

Feature

  • Task Definition

    • Specify one or more containers, including:

      • Docker repository and image

      • memory and CPU

      • shared data volumes

      • Network mode:

        • none

        • bridge (default): utilizes Docker's built-in virtual network which runs inside the instance.

        • awsvpc: each task is allocated an ENI, and must have a NetworkConfiguration for the ECS service. (provides more control over bridge mode)

        • host: bypasses virtual network to the instance's network directly. Can't run multiple instantiations of the same task on a single container instance when port mappings are used.

  • ECS Cluster can contain multiple different container instance types.

  • Can create IAM policies for Clusters, Task Execution roles.

  • Schedule ECS in 2 ways:

    • Service Scheduler

    • Custom Scheduler

  • Can use ECS agent (Linux only) to connect to EC2 instances of the Cluster.

  • Security Groups operate at instance level, not at the task or container level.

  • ECS can't be the origin of CloudFront.

Reference

  • Docker

    • Packages code, configurations, dependencies into containers (standard units).

    • Docker is infinitely scalable so running docker on AWS is a great way to run distributed applications at any scale.

    • Strength:

      • No more dependency hell

      • Consistent progression from DEV -> TEST -> QA -> UAT -> PROD

      • Isolation (applications are devided into different containers)

      • Extreme code portability

      • Microservices

PreviousEC2NextELB

Last updated 4 years ago

Was this helpful?

Virtualization vs Contrainerization: