Elastic Beanstalk
Elastic Beanstalk
Lab overview
This activity provides you with an Amazon Web Services (AWS)
account where an AWS Elastic Beanstalk environment has been pre-
created for you. You will deploy code to it and observe the AWS
resources that make up the Elastic Beanstalk environment.
Duration
This activity takes approximately 30 minutes to complete.
Tip: To refresh the session length at any time, choose Start Lab again
before the timer reaches 0:00.
o Before you continue, wait until the circle icon to the right of the AWS
link in the upper-left corner turns green.
Tip: If a new browser tab does not open, a banner or icon is usually at
the top of your browser with the message that your browser is
preventing the site from opening pop-up windows. Choose the banner
or icon, and then choose Allow pop-ups.
Tip: The script that checks you works may only award points if you
name resources and set configurations as specified. In particular,
values in these instructions that appear in This Format should be entered
exactly as documented (case-sensitive).
Note: If the status in the Health column is not Ok, it has not finished
starting yet. Wait a few moments, and it should change to Ok.
6. Notice that the page shows that the health of your application is Ok.
When you choose the URL, a new browser tab opens. However, you
should see that it displays an HTTP Status 404 - Not Found message.
This behavior is expected because this application server doesn't have
an application running on it yet.
In the next step, you will deploy code in your Elastic Beanstalk
environment.
12. After the deployment is complete, choose the Domain URL link
(or, if you still have the browser tab that displayed the 404 status,
refresh that page).
For example, in the Instance traffic and scaling panel, it indicates the
EC2 Security groups, minimum and maximum instances, and instance
type details of the Amazon Elastic Compute Cloud (Amazon EC2)
instances that are hosting your web application.
Browse through the charts to see the kinds of information that are
available to you.
Note that two instances that support your web application are running
(they both contain samp in their names).
19. If you want to continue exploring the Amazon EC2 service
resources that were created by Elastic Beanstalk, feel free to explore
them. You will find:
o A security group with port 80 open
o A load balancer that both instances belong to
o An Auto Scaling group that runs from two to six instances, depending
on the network load
Though Elastic Beanstalk created these resources for you, you still
have access to them.
After a couple of minutes, the grades panel appears and shows you
how many points you earned for each task. If the results don't display
after a couple of minutes, choose Grades at the top of these
instructions.
Tip: You can submit your work multiple times. After you change your
work, choose Submit again. Your last submission is recorded for this
lab.
22. To find detailed feedback about your work, choose Submission
Report.
Tip: For any checks where you did not receive full points, there are
sometimes helpful details provided in the submission report.
Activity complete
Congratulations! You have completed the activity.
23. At the top of this page, choose End Lab and then to confirm that
you want to end the activity, choose Yes.
24. To close the panel, go to the top-right corner and choose the X.