Professional Documents
Culture Documents
They provide you with servers and services that you can use on demand and
scale easily.
AWS REGION
AWS regions are all around the world e.g. us-east1, ap-south1
[A region is cluster of data centers]
COMPUTE
MEMORY OPTIMIZE
STORAGE OPTIMIZE
ACCELERATED COMPUTING
SECURITY GROUPS
By default all inbound traffic is blocked and all outbound traffic is allowed
SSH --> secured shell ( port 22 )
FTP ---> file transfer protocol (port 21)
HTTP ---->port 80
HTTPS ----> port 443
RDP -----> port 3389
1. ON DEMAND INSTANCES
2. RESERVED
3. SAVINGS PLAN
4. SPOT INSTANCES
5. DEDICATED HOST
6. DEDICATED INSTANCES
7. CAPACITY RESERVATION
NOTE: ELASTIC IP --> When you stop and start ec2 instances it changes it public IP,
to have a fix public IP you need an elastic IP
you can have 5 elastic ip in your account
( you can increase that)
EBS VOLUME
An ebs volume is a network drive you can attach to an instance while run.
EBS SNAPSHOTS
1. Backup of you ebs vol at a point in time.
2. Can copy snapshot across availability zones or regions.
LOAD BALANCING
ELB
An elb is an manage load balancer.
Can be many integrated with many aws services
Health checks : They enable load balancer to know if the instances are
available to accept requests or not (200)
ALB, NLB, CLASSIC , GLB
AUTO SCALING GROUPS
Goal of auto scaling is :
1. Scale out
2. Scale in
3. Ensure we have have a min. and max. number of instances
4. Automatically register new instances to load balancer
5. Recreate new instances if found unhealthy
6. Maintain the minimum, maximum and desired state
DATABASES IN AWS
AMAZON RDS :
Managed service
Autoscaling capability for storage
Support read replicas and multi AZ
Security through IAM, SG, Encryption, SSL (secured socket layer)
Automated backup with point in time recovery
Managed and scheduled maintainance
Support for IAM Authentication , Integration
DYNAMO DB:
Managed serverless NoSQL database, milliseconds latency
Capacity with option autoscaling or ondemand capacity
Highly available , Multi AZ by default, read and writes are
decoupled
Security, authentication, authorization are done by IAM
Automated backups upto 35 days , on demand backups
Export and import through S3
Great to rapidly evolve schema
DOCUMENT DB:
Document DB is the same as mongodb( no sql )
Fully managed and highly available with replication across 3 AZ
Document db storage automatically grows in increments of 10 GB
Automatically scales to work load of millions of requests per
second
PUBLIC VS PRIVATE IP :
VPC IN AWS : You can have multiple vpc in a region (max. 5 in per region (soft
per limit))
Your vpc cidr should not overlap with your other networks
BASTION HOST : We can use a bastion host to SSH into a private instance.
It is in the public subnet which is connected to all
private subnets.
BH SG must all inbound from the internet on port 22
for restricted CIDR.
SG on ec2 instance (private) must allow the sg of
BH.
AMAZON ROUTE 53 :
Domain name system which translates human family host
name into machine ip addresses.
DNS is the backbone of internet.
DNS TERMINOLOGIES :
Domain registrar : amazon route 53
DNS records : A, AAAA, CNAME, NS, ....
Top level domain : .com, .us, .in, .org
Second level domain : amazon.com , google.com
A highly available , scalable, fully managed and
authoratize DNS.
Route 53 is also a domain registrar , the only aws
service which provides 100% availability SLA ( service level agreement )
CLOUD FRONT ORIGINS : S3, ALB, EC2 instance, any http backend you
want.
RED SHIFT : red shift is based on postgreSQL but its not use for OLTP (online
transaction process )
it is OLAP used for online anaylitics and data ware housing.
10 times better performance than other data ware houses ,
columnar storage of data.
Pay as you go based on the instances provision.
Has a sql interface for performing queries.
Can be integrated with business intelligence tools like
Tablu.