Lecture Week5a
Lecture Week5a
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Module objectives
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 2
AWS runtime compute choices
Virtual Machines Platform as a Service
Containers Serverless Specialized Solutions
(VMs) (PaaS)
Amazon Elastic Amazon Elastic AWS Elastic AWS Lambda AWS Outposts
Compute Cloud Container Service Beanstalk
(Amazon EC2) (Amazon ECS)
Different compute services are available to meet the needs of different use cases.
This module will discuss Amazon EC2.
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 3
Amazon EC2
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 4
EC2 instances
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 5
Amazon EC2 use cases
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 6
Provisioning an EC2 instance
Essential instance launch configuration parameters
Amazon Machine
Image (AMI)
Security group
Key pair
Instance type
Instance
Instance store or
Amazon EBS
VPC
Network placement
and addressing
User data
Assumed role
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 7
Amazon Machine Image (AMI)
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 8
AMI benefits
• Repeatability
• An AMI can be used repeatedly to launch
instances with efficiency and precision
• Reusability
• Instances launched from the same AMI are
identically configured
• Recoverability
• You can create an AMI from a configured
instance as a restorable backup
• You can replace a failed instance by
launching a new instance from the same AMI
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 9
Choosing an AMI
Boot time for the instance Boots faster Takes longer to boot
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 11
Amazon EC2 instance lifecycle
Launch Start
Pending
AMI
Reboot
Stop
Rebooting Running Stopping Stopped
Stop-
Hibernate
Terminate
Shutting
down
Terminate
Terminated
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 12
Creating a new AMI
AWS Cloud
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 13
Additional resources
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 14