ECS has two mode; ec2, fargate.
ECS orchestrate how container should be managed.
ECS create cluster; it’s where your container run from.
You need a way to let ECS know how you want to run container images which image will be located in registry.
To tell ECS about your container image, you create container definition; provide just enough info for a single container.
Then we have task definition; it represents what application stores(?). Task definition also save task role; iam that task can assume.
Service definition; how we want container to scale, how we’d like our task to run, can run load balancer.
(ok I’m gonna be honest, idk what they’re talking about lol maybe have to do demo myself)
To summarize:
Container Definition – which Image to use & which Ports exposed
Task Definition – Security (iam role assume), Container, Resources (what will our task consume?)
Task Role – IAM Role which TASK assume
Service – How many copies, HA, Restarts
Leave a comment