1)AWS-Amazon Web Services(Basic Services)-EC2-Elastic Cloud Compute -Overview-Part-1

Venkatramanan - Sep 16 - - Dev Community

So Hi guys myself Venkat ,Im working as a Cloud & Devops Engineer for past 3 years and this is my first blog in this platform and I like to cover more topics based on Cloud and Devops platform

So lets get started… I would like to keep things short and cripsy to save your time

EC2 Overview:
EC2 stands for Elastic Cloud Compute
Its a virtual Server deployed by AWS Platform
EC2 allows users to scale their compute capacity up or down based on demand
Types of EC2
On-Demand Instances:
Pay for compute capacity by the hour or second, with no long-term commitments.

Reserved Instances:
Provide a significant discount (up to 75%) compared to On-Demand pricing.

Users has to commit for using EC2 for a one- or three-year term.

Spot Instances:
Bid for unused EC2 capacity, which can be 90% cheaper than On-Demand prices. This can be interrupted. Cost efficient

Dedicated Hosts:
Physical servers dedicated for your use, which can help meet compliance requirements and reduce costs by allowing the use of existing software licences.

Components of EC2:
OS:
OS- Operating System. This options lets us decided on what OS we want to deploy our Server and we have few default servers OS available in AWS Console

Instance Type:
Amazon EC2 offers a variety of instance types designed to fit different use cases.

Each instance type provides a different combination of CPU, memory, storage, and networking capacity, allowing users to choose the right mix for their applications

  1. General Purpose Instances These instances provide a balance of compute, memory, and networking resources and can be used for a variety of diverse workloads.

t4g, t3, t3a, t2: Burstable performance instances that provide a baseline level of CPU performance with the ability to burst CPU usage at any time.
m7g, m6g, m6i, m6a, m5, m5a, m5n, m5zn, m4: General-purpose instances that offer a balance of compute, memory, and networking resources.

  1. Compute Optimized Instances These instances are ideal for compute-bound applications that benefit from high-performance processors.

c7g, c6g, c6i, c6a, c6gn, c5, c5a, c5n, c4: Optimized for compute-intensive tasks and offer high performance at a low cost.

  1. Memory Optimized Instances These instances are designed to deliver fast performance for workloads that process large datasets in memory.

r7g, r6g, r6i, r6a, r5, r5a, r5n, r4: Ideal for memory-intensive applications such as high-performance databases and real-time big data analytics.
x2gd, x2iezn, x1e, x1: Provide a high ratio of memory to CPU, suitable for in-memory databases and applications with significant memory requirements.
u-6tb1.metal, u-9tb1.metal, u-12tb1.metal: High memory instances with up to 12 TB of memory.

  1. Storage Optimised Instances These instances are designed for workloads that require high, sequential read and write access to very large datasets on local storage.

i4i, i3, i3en: Optimized for I/O intensive applications and offer low latency storage.
d2, d3, d3en: Designed for data-intensive workloads that require sequential read and write access to very large datasets.
h1: High-disk throughput instances optimized for data-intensive workloads such as MapReduce and distributed file systems.

  1. Accelerated Computing Instances These instances use hardware accelerators, or co-processors, to perform functions such as floating-point number calculations, graphics processing, or data pattern matching more efficiently than software running on general-purpose CPUs.

p4de, p4d, p3, p2: GPU instances designed for machine learning, high-performance computing, and graphics-intensive applications.
inf2, inf1: Optimized for deep learning inference workloads.
g5, g4ad, g4dn, g3: GPU instances optimized for graphics-intensive applications.
f1: Instances with customizable hardware acceleration using FPGAs.

  1. High Performance Computing (HPC) Instances These instances are designed for high-performance computing applications requiring high levels of processing power.

hpc6id, hpc6a: Optimized for high-performance computing applications that benefit from high throughput and low latency networking

  1. Mac Instances These instances are built for Apple developers to build, test, and sign applications for the Apple ecosystem.

mac1, mac2: Mac instances allow you to run macOS on Amazon EC2 and are ideal for developing and testing macOS applications
AMI- Amazon Machine Image
An Amazon Machine Image (AMI) is a crucial component in Amazon Web Services (AWS) that provides the information required to launch an instance. Here are the key points defining an AMI:

Template for Instances:An AMI serves as a template that contains the software configuration (operating system, application server, and applications) needed to launch an EC2 instance.
It includes an operating system, application software, and any associated configurations.
Components of an AMI:
A Template for the Root Volume: This could be an Amazon EBS snapshot or an instance store-backed volume.
Launch Permissions: Control which AWS accounts can use the AMI to launch instances.
Block Device Mapping: Specifies the volumes to attach to the instance when it is launched.
Elastic IP Address:
Elastic IPs are static IP addresses that do not change over time, unlike dynamic IP addresses which may change when an instance is stopped and started.

They are public IP addresses, meaning they are accessible from the internet.

Market Place
This options lets us purchase the AMI of Server with specific OS which aren’t available in Default Option

For example :

Incase we need to deploy SUSE Linux Enterprise 15 SP3 we need to use marketplace to purchase this ,because the default option provide OS with only latest version

Key pair
Key pair consists of a public key and a private key that are used for securelyaccessing and managing EC2 instances.

Types of keypair:
Public Key: Stored by AWS and associated with your EC2 instances.

Private Key: Downloaded and stored by the user. It’s used to securely access the

Instance. Key pairs are primarily used for SSH (Secure Shell) access to Linux

instances and for RDP (Remote Desktop Protocol) access to Windows instances. The

private key acts as a secure password to authenticate and connect to the instance.

Security Group:
a Security Group acts as a firewall for your instances to control incoming and

outgoing traffic

Inbound Rules:
Define what traffic is allowed to reach the instances.

For example, you can allow HTTP traffic (port 80) from anywhere or SSH traffic (port 22) from a specific IP address.

Outbound Rules:
Define what traffic is allowed to leave the instances. By default, all outbound traffic is allowed.

EBS:
Amazon Elastic Block Store (EBS) is a scalable, high-performance block storage service designed for use with Amazon EC2

Volume Types:

General Purpose SSD (gp2/gp3): Balances price and performance for a wide variety of workloads.
Provisioned IOPS SSD (io1/io2): Designed for I/O-intensive applications that require high performance, such as large databases.
Throughput Optimized HDD (st1): Designed for large, sequential workloads such as data warehousing and log processing.
Cold HDD (sc1): Lowest cost HDD storage, designed for less frequently accessed workloads.
Venkat C S****

.
Terabox Video Player