Professional Documents
Culture Documents
Aws Fundamental and Beyond
Aws Fundamental and Beyond
• SaaS
• PaaS
• IaaS
• SAAS
• CAAS
• NAAS
• etc…
Confused ???
SaaS vs PaaS vs IaaS
AWS Console
IAM EC2
Route 53
Overview Overview
What is Load
EFS ELB AMI SubNets
Balancing ?
Placement Encryption on
Elastic Cache ASG And More ….
Groups* AWS
Elastic Compute Cloud - EC2
Security Group - SG
Identity Access Management - IAM
Section 1
Section Agenda
• IAM Introduction
• What is EC2 ?
• Hands On : EC2, User Data, SG
• EC2 Launch Types • EC2 Instance Types
• On Demand • R - Ram Optimised
• Reserved Instance • C - CPU Optimised
• M - Balanced (Medium)
• Convertible Reserved Instance
• I - I/O Optimised
• Scheduled Reserved Instance
• G - GPU Optimised
• Spot Instance
• Dedicated Instance
• Dedicated Hosts
IAM Introduction
• IAM (Identity Access Management)
• Divided into :
• Users
• Roles
• Groups
• Root Account should never be used
• Users must be created with proper permissions
• IAM has a global view - not Region scoped, is at the
centre of AWS
• Policies are written in JSON
IAM Introduction
Outbound
SG
Inbound
Internet
SG - Continued
• Controls • By default ALL Inbound traffic is
• Ports access blocked.
• Authorised IP ranges • By default ALL Outbound traffic
• Controls Inbound traffic is allowed.
• Controls Outbound traffic • SG are stateful, NACL is stateless.
• Acts as FIREWALL
Demo - SG rules affects on
EC2
Boot Strapping EC2:
User Data
• EC2 - On Demand
• Pay for what you use
• Billing starts after 1st minute of VMs Instantiation.
• Costliest but not commitment and no upfront
payment.
• Will not be interrupted ?
EC2 Launch Type 2
• EC2 Reserved Instance
• 75% cheeper then On-Demand.
• But upfront payment with Commitment.
• Can be blocked for 1 to 3 years.
• Reservation is done against a particular instance
type ! ? What is instance type now ??
• Good for predictable scenarios.
• Sub Categories
• Convertible Reserved Instances
• Scheduled Reserved Instances - Day, Time, Week
EC2 Launch Types 3
• EC2 Spot Instances
• Have to bid for the instance
• Distributed on price and availability ratio.
• Can be as cheap as 90% of On-Demand.
• Could be reclaimed any time as price of the instance
goes above bidding price with 2 mins of warming.
• Once reclaimed, you won’t be able to get the data
back which was stored in the instance.
• Good for Data processing and big data queries, not
good for important or critical applications.
EC2 Launch Types 4
• EC2 Dedicated Hosts
• Expensive
• Companies or Scenarios which have strong
Compliance or Data regulations.
• Gets Physical Dedicated EC2 servers
• Access to Different connections and sockets of the
server.
Elastic Load Balancer (ELB)
Section Agenda
• Scalability
• Vertical
• Horizontal
• High Availability
• Taking EC2 into consideration
• Scalability
• ASG
• Load Balancer
• High Availability
• LB multi AZ
• ASG multi AZ
Load Balancer
• Single point for DNS
• Handles failure
• Health checks
• SSL termination over https
• Stickiness over cookies
• High availability across zones
• Spreads load across zones
Kinds of ELBs
• AWS offers 3 kinds of ELBs
• Application Load Balancer
• Network Load balancer
• Classic Load Balancer
• Resource Based
• Bucket Access Control List
• Object Access Control List
• Bucket Policy Document
• IAM Rules
S3 Bucket Policy