Overview
Prerequisites
- Good knowledge of AWS service
- Elastic Container Service (ECS)
- Elastic Compute (EC2)
- Laptop/Desktop
- Internet Browser
- Internet connection
Challenge Instructions
- Region : Make sure to use us-east-1 region to create all the resources.
- You will be provided with the requirements of the challenge. If you are new to AWS Cloud, we recommend you go through our hands-on Labs before taking this challenge.
- Challenge Duration: 1 Hour
How to submit the challenge
- After building the infrastructure, click on the Check my work button, to validate if you have built the required infrastructure and completed the challenge successfully
- Validation status
- Success - You have completed the challenge successfully.
- Failed - You have failed to complete the challenge.
- Once you have successfully validated the challenge, click on End lab button to end the challenge.
Launching Challenge Environment
- To launch the challenge environment, Click on the Launch lab button.
- Please wait until the cloud environment is provisioned. It will take less than a minute to provision.
- Once the Challenge is started, you will be provided with IAM user name, Password, Access Key, and Secret Access Key.
Lab guide
Sign in to AWS Management Console
- Click on the Open console button, and you will get redirected to AWS Console in a new browser tab.
- On the AWS sign-in page,Leave the Account ID as default. Never edit/remove the 12 digit Account ID present in the AWS Console. otherwise, you cannot proceed with the challenge.
- Now copy your User Name and Password in the Lab Console to the IAM Username and Password in AWS Console and click on the Sign in button.
- Once Signed In to the AWS Management Console, Make the default AWS Region as US East (N. Virginia) us-east-1.
Cloud Challenge Details
In this challenge, your Amazon Elastic Container Service (ECS) skills are put to the test. You’ll be given a requirement and you have to reach it using your knowledge of Elastic Container Service (ECS), Task definitions and docker used for this challenge. This Challenge will help you understand the real-time scenarios. A company XYZ wants to automatically scale its application on an Elastic Container Service (ECS) using task definitions and attach to the task running on instance. The below are the tasks that need to be performed by you in order to create the stack.- Create Key Pair
- Launch ECS Cluster:
- Use Amazon EC2 and create New Autoscaling group
- EC2 Instance Type: t2.micro
- Capacity: 1-2
- Build Task Definition:
- Container details: Enter httpd
- URL: Enter httpd2:4
- Port Map:
- Port: 80
- Protocol: TCP
- Infrastructure Requirements:
- Task size**: .25 vCPU and .5 GB**
- Deploy service and run HTTPD container:
- Configurations: REPLICA as service type
- Desired task: 1
- Run container in ECS cluster:
- Edit inbound rules in Security group, SSH as Type and IPv4 as Source.
- Access the main EC2 instance using SSH and perform Docker commands.
- Click on the Validate to complete the challenge.
- Sign out of the AWS Account.
- You have successfully completed the challenge.
- Click on End lab button in the IP Lab Portal and wait till the process gets completed.
What gets checked
When you press Check my work, the platform verifies each of these:- Check ECS Cluster Exists — Check ECS cluster is created or not
- Create ECS Task Definition — Check whether ECS task definition created or not
- Create ECS Service — Check whether ECS service created or not
- Launch an EC2 Instance — Check whether an EC2 Instance is launched or not.
- Validate EC2 Instance Type t2.micro — Check whether the EC2 instance type is t2.micro.
- Launch EC2 AMI type Amazon Linux — Check whether the EC2 instance is launched using an Amazon AMI.