Aws 1
Aws 1
• 5. Task
1. What is cloud computing?
Runtime
• IAAS
Middleware
• PAAS o/s
Virtualization
• SAAS
Server
Storage
Network
Platform Examples
PAAS(Platform-as-a-service)
SaaS(Software-as-a-service)
IaaS(Infrasturcture-as-a-service)
• Private cloud
• Hybrid cloud
Pricing models
Capex and opex(most popular)
• Scale Up
• Scale Out
Vertical scaling Horizontal Scaling
• Increase size of instance Add similar type of instances
AWS Global Infrastructure
• Regions –>31 all around the world
• Compliance:
• Proximity
• Available Services
• Pricing
Access AWS Account
• 1. AWS Management Console
• m: instance class
• 5: generation
• 2xlarge: size within the instance class
EC2 Instance Types
• 1. General purpose
• 2. Compute Optimized
• 3. Memory Optimized
• 4. Accelerated Optimized
• 5. Storage Optimized
• 6. HPC optimized
General Purpose
• • Great for a diversity of workloads such as web servers or code
repositories
• Balance between:
• Compute
• Memory
• Networking
Eg:- Mac, T4g, T3, T3a, T2, M6g, M5, M5a, M5n, M5zn, M4, A1
EC2 Instance Types – Comput Optimized
• Great for compute-intensive tasks that require high performance
processors:
• Batch processing workloads
• Media transcoding
• High performance web servers
• High performance computing (HPC)
• Scientific modelling & machine learning
• Dedicated gaming servers
Eg:- C6g, C6gn, C5, C5a, C5n, C4
EC2 Instance Types – Memory Optimized
• Fast performance for workloads that process large data sets in
memory
• Use cases:
• High performance, relational/non-relational databases
• Distributed web scale cache stores
• In-memory databases optimized for BI (business intelligence)
• Applications performing real-time processing of big unstructured
data
Eg:- R6g, R5, R5a, R5b, R5n, R4, X1e, X1, High memory z1d
EC2 Instance Types – Storage Optimized
• Great for storage-intensive tasks that require high, sequential read and
write access to large data sets on local storage
• Use cases:
• High frequency online transaction processing (OLTP) systems
• Relational & NoSQL databases
• Cache for in-memory databases (for example, Redis)
• Data warehousing applications
• Distributed file systems
Eg: I3, I3en, D2, D3, D3en, H1
Introduction to Security Groups
• Security Groups are the fundamental of network security in AWS
• They control how traffic is allowed in or out of our EC2 Instances.
• Security groups only contain rules
• Security groups rules can reference by IP or by security group
Some point on security groups
• Can be attached to multiple instances
• Locked down to a region vpc combination
• If application is not accessible(time out) , then it’s a security group
issue
• All inbound traffic is blocked by default
• All outbound traffic is authorised by default
Some important ports
• 22 = SSH (Secure Shell) - log into a Linux instance
• 21 = FTP (File Transfer Protocol) – upload files into a file share
• 22 = SFTP (Secure File Transfer Protocol) – upload files using SSH
• 80 = HTTP – access unsecured websites
• 443 = HTTPS – access secured websites
• 3389 = RDP (Remote Desktop Protocol) – log into a Windows instance
3306 = MySQL/Aurora
Amazon EC2 pricing options
• 1). On-demand
• On-demand instances let you pay for compute capacity by the hour or second
(minimum 0f 60 seconds) with no long-term commitments.
• If you want to use then request to AWS to increase the capacity of the
services.
• Public IP
• Public IP means the machine can be identified on the internet.
• Must be unique across the whole web ( not two machines can have the same
public IP).
• Cab be geo-located easily
• Private IP
• Private IP means the machine can only be identified on a private network only
• The IP must be unique across the private network
• Machines connect to WWW using a NAT + internet gateway (a proxy)
• Only a specified range of IPs can be used as private IP
Elastic IPs
• When you stop and then start an EC2 instance, it can change its public
IP
• If you need to have a fixed public IP for your instance, you need an
Elastic IP
• An Elastic IP is a public IPv4 IP you own as long as you don’t delete it
• You can attach it to one instance at a time
• You can only have 5 Elastic IP in your account (you can ask AWS to
increase that)
Storage
• We have two types of storage
• 1). DAS (direct attach storage)
• 2). NAS (network attach storage)
• A). Block Storage
• B). File storage
• C). Object storage
• Block storage – technology that controls data storage and storage
devices. [ SAN – storage area network (block level access) ]
• Hard disk – block storage device, when we format this device (file
system) . It divide in different block.
• Block storage – high speed internet connectivity mandatory
• EBS volume and instance on the same zone.
• Drawback 1). At running time attach with only one instance.
2). AZs of EBS and machine same mandatory
• Throughput Mode
• Bursting –
• Provisioned –
• Elastic –
How to create EFS
• Create file system
• Name
• Availability and durability
• Regional / standard
• One zone
• Automatic backups
• Lifecycle Management
• Transition into IA Transition out of IA
• Pricing difference up to 70-80%
• Encryption
• Throughput mode
• Bursting - standard
• Enhanced -
• Network Access
• Here we can select the mount targets
• Review
• Create
How to use EFS
• Click on the EFS – Attach ( to check how we can mount this on our
machine )
• Install amazon-efs-utils in machine to mount EFS.
• Make directory to mount
• Add security group to the EFS
•
Use of load balancer
• Spread load across multiple downstream instances
• Expose a single point of access to your application
• Do regular health check on your website
• Provide SSL termination for your websites
• High availability across zones
• Sperate public traffic from private traffic
ENI (Elastic Network Interface)
• Aws ENI or network interface are virtual network cards attached to
EC2 instances that help facilitate network connectivity for instances.
• Having two or more AWS network interface connected to an instance
permits it to communicate on two separate subnets.
• One ENI lives in only one subnet means single availability zones.
EFA (Elastic Fabric Adapter)
• EFA is a network interface for Amazon EC2 instances that enables
customers to run applications requiring high levels of inter-node
communications at scale on AWS.
ENA (Elastic Network Adaptor)
• To enhance the speed of network
• A custom network interface optimized to deliver high throughput and
packet per second(PPS) performance, and consistently low latencies
on EC2 instance.