0
0
AWScloud~30 mins

Why container services matter on AWS - See It in Action

Choose your learning style9 modes available
Why container services matter on AWS
📖 Scenario: You are working as a cloud engineer for a company that wants to modernize its application deployment. They have heard about containers and want to understand why container services on AWS are important for their projects.
🎯 Goal: Build a simple AWS infrastructure setup using container services to demonstrate how containers help deploy applications efficiently and reliably.
📋 What You'll Learn
Create an ECS cluster named MyAppCluster
Define a task definition named MyAppTask with a container running the image amazon/amazon-ecs-sample
Set a desired count of 2 for the ECS service named MyAppService to run the task
Use Fargate launch type for serverless container management
💡 Why This Matters
🌍 Real World
Container services on AWS help companies deploy applications quickly and reliably without managing servers. This project shows the basics of setting up such a service.
💼 Career
Understanding container services like ECS and Fargate is essential for cloud engineers and developers working with modern cloud-native applications.
Progress0 / 4 steps
1
Create an ECS cluster
Create an ECS cluster named MyAppCluster using AWS CloudFormation syntax.
AWS
Need a hint?

Use the resource type AWS::ECS::Cluster and set the ClusterName property.

2
Define a task definition with a container
Add a task definition named MyAppTask with a container named MyAppContainer running the image amazon/amazon-ecs-sample.
AWS
Need a hint?

Use AWS::ECS::TaskDefinition with Fargate compatibility and define the container image.

3
Create an ECS service to run the task
Add an ECS service named MyAppService that runs the MyAppTask task definition with a desired count of 2 using the Fargate launch type in the MyAppCluster cluster.
AWS
Need a hint?

Use AWS::ECS::Service with DesiredCount set to 2 and LaunchType set to FARGATE.

4
Complete network configuration for the ECS service
Add a network configuration to MyAppService with AssignPublicIp set to ENABLED, two example subnet IDs subnet-12345678 and subnet-87654321, and a security group ID sg-12345678.
AWS
Need a hint?

Use NetworkConfiguration with AwsvpcConfiguration to specify subnets and security groups.