Cloud AWS: Yuwono Marta Dinata - OS
Cloud AWS: Yuwono Marta Dinata - OS
Cloud AWS: Yuwono Marta Dinata - OS
12
Amazon
WebService
Essential Cloud Characteristics
14
Essential Cloud Characteristics
• On-demand self-service: customers can provision computing capabilities.
• Broad network access: Resources are available over the network through standard
mechanisms.
• Resource pooling: the provider’s computing resources are pooled to serve multiple
consumers using a multi-tenant model.
16
Virtualization – the Backbone of Cloud Computing
17
Virtualization
• The division of a single physical
server into multiple “virtual”
servers is the backbone of Cloud
Computing as it allows for far
greater flexibility and resource
utilization.
Source: escope.net
18
Virtualization (contd.)
• To build clouds we need to aggregate large amounts of computing, storage, and
networking resources in a virtualized manner.
Between the VMs and the host platform, a middleware layer (called the Virtual
Machine Monitor (VMM) or a hypervisor) is deployed.
19
Virtualization (contd.)
•Virtual Machines and Virtualization
Middleware
20
Amazon Cloud: EC2
http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/concepts.ht
ml#basic-infrastructure-components
21
Amazon Cloud EC2: AMI
• An Amazon Machine Image (AMI) is a template
that contains a software configuration
(operating system, web/application server, and
applications).
22
Amazon Cloud EC2: AMI
• An instance type is essentially a hardware archetype. The user selects a particular
instance type based on the amount of memory and computing power needed for
the application or software that the user plans to run on the instance.
23
• Amazon has data centers in Amazon Cloud EC2: Regions and Availability Zones
different areas of the world or Regions (for example, North
America, Europe, and Asia). By launching instances in separate Regions, the application
can be closer to specific customers or meet legal or other requirements.
• Each Region contains multiple distinct locations called Availability Zones. Each
Availability Zone is engineered to be isolated from failures in other Availability zones and
to provide inexpensive, low-latency network connectivity to other zones in the same
Region.
24
Amazon Cloud EC2: Storage
• To store data, Amazon EC2 offers the following storage options:
1. Amazon Elastic Block Store (Amazon EBS)
2. Amazon EC2 Instance Store
3. Amazon Simple Storage Service (Amazon S3)
Amazon EBS
• Amazon EBS provides instances with persistent, block-level storage. Amazon EBS volumes are
essentially hard disks that you can attach to a running instance.
• Amazon EBS is particularly suited for applications that require a database, file system, or access to
raw block-level storage.
25
Amazon Cloud EC2: Storage
• To keep a back-up copy a snapshot of the volume can be created, which can
be stored in Amazon S3. Amazon S3 is storage for the Internet. It provides a
simple web service interface that enables storage and retrieval of any amount
of data from anywhere on the web.
• A new Amazon EBS volume can be created from a snapshot, and attached to
another instance.
26
Amazon
WebService
27
Amazon
WebService
28
Amazon WebService
29
• Compute
• Elastic Compute Cloud (EC2): launch on-
demand virtual machines (instances)
AWS service: • Elastic MapReduce: automatically starts
Hadoop implementation of MapReduce for
Compute and parallel applications
monitoring • Amazon handles cluster management
• Auto Scaling: seamlessly increase/decrease
number of EC2 instances function of load
• Done based on metrics reported by
CloudWatch
• Monitoring
• CloudWatch: monitor cloud resources such as
CPU cycles, disk access, network traffic
EC2 instances
• Instances: Virtual machines that run in the EC2 environment
• Each instance is like a “physical” machine that has its own CPU, memory, network
interface, and disk space (volatile – data is lost when the instance is terminated)
• Xen used for virtualization
• AMI (Amazon Machine Image): Encrypted file that captures a complete snapshot of an
EC2 instance at a point in time, including its software, configuration, and data
• Images are stored in S3 and serve as boot disks for instances
• Linux/Solaris and Windows images publicly available
• Users can create AMI from scratch: start from any public AMI, install & customize
the software needed, and then store it as private AMI to use later on
AWS Service: Storage
• Simple Storage Service (S3): provide persistent storage
• Independent of EC2 instances
AWS Service:
• EC2 instances need to “download” data from S3 in
order to access it (cannot issue read/write to S3)
Storage
• Amazon Glacier: low-cost storage service that provides
secure and durable storage for data archiving and backup
• Advantage over S3: offload the administrative
burdens of operating and scaling storage + cost
• Disadvantage: slower than S3
• Storage Gateway: securely store data to the AWS cloud
for scalable and cost-effective storage
• All data is securely transferred to AWS over SSL and
stored encrypted in Amazon S3 using AES 256-bit
encryption
• Elastic Block Store (EBS): provide block level storage
volumes (virtual disk, i.e., disk-like) to EC2 instances
• Persistent even after instances are terminated
• Instances have to mount EBSs (EFS)
• Instance: One running virtual machine.
• Instance Type: hardware configuration: cores, memory,
disk etc.
• Amazon Machine Image (AMI): Description of an
instance. It provides the information required to launch
an instance.
• Key Pair: Credentials used to access VM from command
line.
• Region: Geographic location, price, laws, network
locality.
• EBS: Elastic Block Store: provides persistent block level
storage volumes for use with Amazon EC2 instances in
the AWS Cloud. Terminology
Getting Started
with Amazon EC2
• Step 1: Sign up for Amazon EC2
• Step 2: Create a key pair
• Step 3: Launch an Amazon EC2 instance
• Step 4: Connect to the instance
• Step 5: Customize the instance
• Step 6: Terminate instance and delete the volume created
• Create Amazon account
• http://aws.amazon.com
AWS
• Apply as a student for free
credits
• http://aws.amazon.com/edu
access
cation/awseducate
• Some typical instance types:
• General purpose: T2, M4, M3
• Compute optimized: C4, C3
• Memory optimized: X1, R4, R3
• Accelerated computing instances: P2,
G2, F1 Instance
• Storage optimized: I2, D2 types
https://aws.amazon.com/ec2/instance-types/
Amazon Simple Storage
Service (Amazon S3)
S3
•Is an object storage service that offers industry-leading scalability, data availability, security, and
performance.
•This means customers of all sizes and industries can use it to store and protect any amount of data for a
range of use cases, such as data lakes, websites, mobile applications, backup and restore, archive, enterprise
applications, IoT devices, and big data analytics. Amazon S3 provides easy-to-use management features so
you can organize your data and configure finely-tuned access controls to meet your specific business,
organizational, and compliance requirements.
•Amazon S3 is designed for 99.999999999% (11 9's) of durability, and stores data for millions of applications
for companies all around the world.
https://aws.amazon.com/s3/
Benefit AWS S3