Amazon EC2

Amazon Elastic Compute Cloud (Amazon EC2) offers secure and resizable compute capacity for virtually any workload.

Amazon EC2 Instance Types

  • Defines the processor, memory, and storage type
  • Cannot be changed without downtime
  • Provided in the following categories
    • General purpose
    • Compute, memory, and storage optimised
    • Accelerated computing
  • Pricing is based on the instance type - https://instances.vantage.sh/

Root Device Type

  • Instance Store: Ephemeral storage that is physically attached to the host the virtual server is running on
  • Elastic Block Store (EBS): Persistent storage that exists separate from the host the virtual server is running on

Amazon Machine Image (AMI)

  • It’s a template that defines an EC2 instance
  • AWS provided many AMI’s that can be leveraged
  • Custom AMI’s can be created based on your configuration
  • Commercial AMI’s are available in the AWS marketplace

Use cases

  • Web-application hosting
  • Batch processing
  • Web services endpoint
  • Desktop in the cloud

Demo

  • Create an EC2 instance using management console
  • Access EC2 instance via SSH
  • Install Jupyter Lab
  • Create new notebook, install libraries, process data.