Professional Documents
Culture Documents
Ec2 - IaaS
Customer - Deploy the OS, patching, backup, monitoring, integration - ITSM (CMDB…etc)
Operating system
https://console.aws.amazon.com/ec2
Amazon Linux 2
GUI
CLI
Templates
REST API / SDK's
Hard disks
Instances = VM's or VS's 400+ instance types avaialble for your workload (busines
Secure and resizable compute capacity
in the market for IaaS and PaaS workloads
Infrastructure - Managed by AWS Virtual Machine, Virtual Servers in the AWS cloud
up, monitoring, integration - ITSM (CMDB…etc) Install the apps, middleware.. Upgrade the OS & Apps
Windows, Linux (Amazon Linux, RHEL, SLES, Ubuntu..etc), MAC OS
x86 and ARM processor
Billed per minute
Only 64-bit OS
AWS Management console - console.aws.amazon.com
Portal
Amazon CLI Powershell
CloudFormation YAML, JSON
Server Hardware
Storage Hardware
AMI Amazon Machine Image Create instance
Templates, Images Images will help you to reduce the manual effort of redoi
Single deployment, mass deployment
Hardening - Best practices, legal /compliance requirements
Amazon Marketplace
Hardened in accordance with the associated CIS Benchmark that has been developed by consens
Reduce cost, time, and risk by building your AWS solution with CIS AMIs.
Community AMI's
Launch Permissions
Public All AWS accounts
Explicit specific aws account, organization or OU
Implicit Owner only
Plain image
Combination of OS + Apps + Tools / Services + configuration
he manual effort of redoing the installation of tools, enabling services and making config changes
An AMI is a template that contains the software configuration
Gold disk / Golden image -
HIPAA, ISO, CIS…etc
Micro instances are eligible for the AWS free usage tier. For the first 12 months following your AWS
t2.micro Free Tier eligible
750 hours per month of Linux, RHEL, or SLES t2.micro or t3.micro instance dependent on region
750 hours per month of Windows t2.micro or t3.micro instance dependent on region
r5.large to r5.xlarge downtime is required
Current generation is recommended
ing capacity, and give you the flexibility to choose the appropriate mix of resources for your applications
Baseline Burstable
test, POC dev Intel AVX, AVXx, Intel turbo
small db servers Intel broadwell
small app
Intel Skylake
Video streaming Live streaming GPU NVIDIA A100 Tensor Core GPU's
Video Rendering
BitCoin mining..etc
Genomic research
X
months following your AWS sign-up date, you get up to 750 hours of micro instances each month. When your free usage tier expires or if
ce dependent on region
ent on region
e is required
ur free usage tier expires or if your usage exceeds the free tier restrictions, you pay standard, pay-as-you-go service rates.
On Demand Pricing Pay as you go pricing Pay as per usage / consumption model
No long term commitment Short term workloads
Scheduled instances based on the particular workload Particular day, particular time of aday
particular month
time of aday
Hibernation Perform Hibernation (Suspend to the disk) Save the contents from Instance Mem
Instance ID
om the same AMI, request Spot instances to take advantage of the lower pricing, assign an access management role to the instance, and m
contents from Instance Memory (RAM) to your Amazon EBS disk / Root Volume
l cost - Enabling the service + storing additional data for the new metrics
enable detailed monitoring, the Amazon EC2 console displays monitoring graphs with a 1-minute period for the instance.
ent role to the instance, and more
the instance.
Placement strategy Affinity
Anti-Affinity
Cluster
Affinity
Same rack
same hardware
Same AZ
Low latency
High perf - Interactions
High network throughput
10 Gbps
Keep the systems that are related together Web/App/DB
Separate the systems that are identical in purpose 2 domain controllers
Partition Spread
Anti-Affinity Span across multiple AZ (DC's)
Different Rack
Different Hardware
Up to 7 Partitions in an AZ (Datacenter)
OS Volume
Always go for latest gen
Min: 1 GiB, Max: 16384 GiB Min: 4 GiB, Max: 16384 GiB
If you are increasing the size of the volume, you must extend the file system to the new size of the
You can only do this when the volume enters the optimizing state
Paravirtual
rsistent storage
Software, binaries..executables
must extend the file system to the new size of the volume.
this when the volume enters the optimizing state
/dev/sda to sdz
/dev/xvdb [a-z]
/dev/sda to sdz
SIEM
Rules with source of 0.0.0.0/0 allow all IP addresses to access your instance. We reco
There can be multiple SG attached to the same EC2 instance - Union of rules from different SG
One SG can be attached to muliple EC2 instances
SG are stateful Allowing inbound, automatically allows outbound traffic on the specific port/protoco
net traffic to reach your instance, add rules that allow unrestricted access to the HTTP and HTTPS ports.
n existing one below
o access your instance. We recommend setting security group rules to allow access from known IP addresses only.
Patching write a query Add the systems - Tag for env : Prod; role:w
Monitoring
Backup
Billing
indexing
ystems - Tag for env : Prod; role:web
Status checks Info
Status checks detect problems that may impair i-004a67efb3fb9ba84 (awswebapp1) from running your applications.
You have to download the private key file (*.pem file) before you can continue. Store it in a secure
Private exchange mail
Creating security groups Successful (sg-097d94d0640c36a81)
Authorizing inbound rules Successful
Initiating launches Successful
You can connect to your Windows instance using a remote desktop client of your choice, and by do
You need to have the private key (pem) file to decrypt the password
n&uzBdB7vy6VWDkjmTa*VoK6!X7-WI3K
that you store.
ur instance securely.
key file is required to obtain the password used to log into your instance. administrator
private key file allows you to securely SSH into your instance. Amazon EC2 supports ED25519 and RSA key pair types.
ntinue. Store it in a secure and accessible location. You will not be able to download the file again after it's created.
puttgen
Putty Key Generator
t of your choice, and by downloading and running the RDP shortcut file below
Machine
Operating system
CLOUD INIT
Startup Script Add some drivers, packages.
Login SCript
#!/bin/bash
yum update -y
yum install httpd -y
systemctl start httpd
systemctl enable httpd
cd /var/www/html
echo "Welcome to Azure with Stan - Apache Web Server 2" > index.html
Add some drivers, packages..etc
EC2 Isntance connect Doesn’t key pair
Load Balancer
High Availabilty / Redundancy
Elastic Load balancers Network Load balancer Distributing load
Distributing Traffic
Virtual IP / Virtual FQDN The Network Load Balancer distributes incoming TCP
Routing decisions Algorithm - Round Robin
stanlb1-ab9fc223b35b2b8a.elb.us-east-1.amazonaws.com
Application LB Layer 7
Health Checks Verify whether the backend systems are online - Ping
Health checks - The associated load balancer periodi
Hash Routing Algorithm
Naming convention Name must be unique within your AWS account and cannot be changed after the load balancer
A maximum of 32 alphanumeric characters including hyphens are allowed, but the name must n
Mapping Select at least one Availability Zone and one subnet for each zone.
We recommend selecting at least two Availability Zones.
The load balancer will route traffic only to targets in the selected Availability Zones.
Zones that are not supported by the load balancer or VPC cannot be selected. Subnets can be a
Listener A listener is a process that checks for connection requests, using the protocol and port you con
Target Group < Register Can be EC2 instances, IP Addresses, Container, ALB
Instance 1 Physical IP 1 A
Instance 2 Physical IP 2 P
Instance 3 Physical IP 3
r distributes incoming TCP and UDP traffic across multiple targets such as Amazon EC2 instances, microservices, and containers. When the
HTTP/HTTPS
3-Tuple
ed after the load balancer is created.
wed, but the name must not begin or end with a hyphen.
lability Zones.
elected. Subnets can be added, but not removed, once a load balancer is created.
protocol and port you configure. Traffic received by the listener is then routed per your specification.
and containers. When the load balancer receives a connection request, it selects a target based on the protocol and port that are specified
ze is supported
Elastic IP Address Permanent Public IP Static Public IP
Dynamic Public IP Get released when instance is not running / rebooted..
Chargeable - even if the instance is stopped
nning / rebooted..
AWS Auto Scaling
Average
Fleet Management
Launch Configuration
Metrics
< 30
y of your applications.
Snapshot Point in time backup Create a point-in-time snapshot of an EBS volume and use it as a b
Restoring to a previous state
First snapshot is full and subsequent is incremental
Delete a snapshot in a series of snapshots - remove
Full snap (File 1) Delta 1
Snapshots that are enabled for fast snapshot restore enable you t
While creating new volume - you can create by using existing snapshots
M or existing VM
snapshot restore enable you to restore volumes that are fully initialized at creation.
Runbook Playbook
IAM Roles
Crash consistent
Snapshot Tier
Archive Tier
Amazon Data Lifecycle Manager Automate the creation, retention, copy and deletion of snapshots and AMIs
Auto-creation Daily
Every hourly - 24 hours..
1
Lightsail Amazon's Virtual Cloud Server
https://lightsail.aws.amazon.com/ls/webapp/home/instances
Small to Mid sized organizations
Build Apps and websites fast with low-cost, pre-configured cloud resources
Choose Region
Choose Availability zone
Choose OS Flavor
Windows / Linux
App + OS Blueprint It will have OS & Apps pre-installed