An application needs more than a place to store its code. Something must start it, supply processing capacity and keep the intended workload running. Container services divide those jobs. Serverless options move more of the underlying server work to AWS, but they do not take responsibility for your application.
An Image Is a Package, Not a Running Application
A container image packages application code and the software dependencies it needs. A container is a running instance of that image in a compatible execution environment. Packaging improves consistency, but it does not remove requirements such as suitable CPU architecture, memory and access to data.
Amazon Elastic Container Registry (Amazon ECR) stores and distributes images. A repository organizes stored images. Pushing an image uploads it; pulling retrieves it for use. ECR supports private and public repositories, with access controls appropriate to each. Storing a release in ECR does not automatically start it or publish a website.

The image-delivery and control arrows mean different things. The lower function example is an alternative workload, not the next step in this pipeline.
The runtime receives the image and starts containers with the chosen configuration. The orchestrator manages their desired execution. Image access needs authorization and connectivity; the image does not pass through an application request path on every visitor request. The separate function path starts with an event and invokes code through Lambda.
ECS and EKS Manage Execution
Orchestration coordinates deploying and managing containers. Amazon Elastic Container Service (Amazon ECS) supplies AWS-managed orchestration. A task definition describes how an ECS task runs, including its containers and resource requirements. A service can maintain a desired number of tasks for a continuing application. Running tasks still need underlying compute capacity.
Amazon Elastic Kubernetes Service (Amazon EKS) provides managed Kubernetes, an open-source container orchestration system. The control plane coordinates the cluster; worker compute runs application workloads. Standard EKS manages the Kubernetes control plane. Worker responsibilities vary with the compute option; Auto Mode manages more infrastructure as well. Do not interpret "managed Kubernetes" as AWS managing every application setting.
A team that specifically needs Kubernetes APIs and tooling has a reason to consider EKS. A team seeking AWS container orchestration without that requirement can consider ECS. Neither name describes an image format or guarantees a particular security or cost outcome.
Fargate Supplies Compute
AWS Fargate runs supported ECS or EKS container workloads without requiring you to provision and maintain the host virtual machines. With ECS, you still specify the application, CPU and memory requirements, networking and IAM permissions. Fargate does not replace ECS orchestration.
For EKS, supported workloads can be scheduled onto Fargate through matching configuration. This does not make every Kubernetes workload compatible with Fargate. A workload needing host-level access or other unsupported capabilities needs a different supported compute choice. Compatibility and regional availability matter before deployment.
Here serverless describes the server-management responsibility, not an absence of servers, charges or application operations. A running container can still need monitoring, an updated image and access to external data. When using self-managed EC2 hosts instead, the team also takes on their operating-system and capacity management.
Lambda Functions Respond to Invocations
An AWS Lambda function runs code when invoked, for example by a configured upload event or an API request. An event supplies information about what happened; the function's handler is the code entry point that processes it. AWS manages the function's underlying execution infrastructure.
You choose the code, dependencies, permissions and configuration. Function execution has resource and duration limits, and application logic must handle its inputs and failures correctly. This lesson covers the function model, not every newer compute feature listed under the Lambda product.
Lambda functions can also be packaged as compatible container images stored in ECR. Consequently, "it uses an image" does not prove that ECS is the only valid choice. Lambda's image compatibility and function execution requirements still apply; an arbitrary server image cannot be assumed to work unchanged.
A Document Service and an Upload Task
A team already has a containerized document-search service that listens for requests throughout the day. It has no requirement for Kubernetes or direct host access, and its resource needs fit supported Fargate configurations. ECR can hold its image, ECS can manage its tasks, and Fargate can supply their compute. The team still configures application access and updates its image.
Separately, each new document needs a brief metadata-validation task. Suppose that code fits Lambda's function model and limits. A configured upload trigger can invoke the function, which checks the metadata and records the outcome. The team must grant appropriate data access and decide how failures are handled. That function is not automatically responsible for the continuing search server.
If Kubernetes compatibility becomes a requirement, evaluate EKS and suitable worker compute. If an execution requirement does not fit Fargate or Lambda, reconsider the compute option rather than assuming "serverless" always wins.
Check Your Understanding
The team has uploaded the search-service image to ECR and reports that its website is now deployed. What is missing? If the validation function is also packaged as an image, must it become an ECS service?
Answer and Reasoning
An image upload stores an artifact; it does not establish running application capacity, orchestration, networking or access. The search service needs those execution arrangements. The validation task can remain a Lambda function if its image and behavior meet Lambda requirements. Choose by the workload's execution needs, not just the packaging format.
References
- S05: Domain 3 and S08: scope.
- S122: ECR, S123: ECS and S124: EKS.
- S125: Fargate with ECS and S126: Fargate with EKS.
- S52: Lambda overview and S127: compatible function images.
Sources checked on 24 September 2026. The service-selection examples require no container build or AWS deployment.