CS/클라우드컴퓨팅

Lec 03: Cloud Platforms, AWS Intro

호프 2023. 10. 13. 18:47

Lec 03: Cloud Platforms, AWS Intro

Cloud platforms

Software as a Service (SaaS)

  • CSP(Cloud Service Provider) provides an entire application
  • Customer don't need to install and run the app on their computer
  • CSP manages everything
  • ex) Google Docs, Gmail

Platform as a Service (PaaS)

  • CSP exposes a set of tools (a platform) which allow users to create SaaS applications
  • SaaS application runs on CSP's infrastructure
  • CSP manages underlying hardware and requirements <-> User manages applications and data
  • ex) Google App Engine, Microsoft Azure

Infrastructure as a Service (IaaS)

  • CSP rents servers and storage to customers
    • use virtualization technology to share each server for multiple customers
    • can create virtual machine
  • User has access to standard OS environment and can install and configure all the layers above it -> managing applications, data, runtime, middleware, os
  • ex) AWS EC2

Cloud deployment models

Public cloud

  • open to anyone, commercial service

Community cloud

  • shared by several similar organizations

Private cloud

  • shared within a single organization

Amazon Web Service

AWS offers many cloud services that you can use in combinations tailored to your business or organizational needs

 

Why AWS?

  • AWS is PaaS/IaaS with a broad menu of choices -> there is no common standard

Regions

  • resources on AWS split into geographic regions except for S3 -> only S3 is global
  • priced differently, simple latency
  • each regions have multiple Availability Zones: Zones within a region networked with low-latency connections = Clusters

Interacting with AWS

  • AWS Management Console: fastest way to get started with AWS, nothing to install
  • AWS Command Line Interface (CLI): text-based tool you install on your computer, manages multiple AWS services
  • Software Development Kits (SDKs): easiest way to write applications that manage AWS
  • Query APIs: low-level APIs, call by using HTTP requests

AWS EC2

Elastic Compute Cloud (EC2)

  • virtual machines running on a hypervisor
  • virtual machines based on Amazon Machine Image (AMI), Instance type
  • IaaS : rent a server

Prefix

  • t#: the cheapest one, general purpose
  • c#: compute cptimized
  • m#, r#: memory optimized
  • p#, f#: accelerated computing
  • h#, i#, d#: storage optimized
    where # means generation number (the bigger, the newer)

Suffix

  • no suffix: Intel Xeon series
  • -a: AMD EPYC series (cheaper then Intel Xeon)
  • -g: ARM Neoverse series (cheapest one)
  • -d: NVMe storage

Levels

  • namno, micro, small, medium, large, xlarge, 2xlarge ...
  • metal: bare-metal server

Pricing

  • On-demand, Spot instance, Reserved

Security

  • Security Group: firewall, instance is not accessible by default
  • Configure ssh access: generate public/private key pairs

Elastic IP

  • EC2 instance gets assigned a dynamic IP
  • possible to assign a static IP (= Elastic IP) -> belongs to AWS account, can be associated with an instance
  • 1 per instance is free