AWS Notes Practicioner Overview
AWS Notes Practicioner Overview
Benefints:
Pay for only what you use.
Benefit from massive economies of scale
Stop guessing about capacity, scale your business needs no long term contracts.
Increase speed and agility
Stop spending money running and maintaining data centers
Go global in minutes
---------Global Infrastructure-------------
Edge Location are endpoints for AWS CloudFront Caching content. A distribution is
what we call a series of Edge Locations that make up CDN.
AWS Region:
Data Sovereignty Laws some kind of regulation because of customers
Latency to end users
AWS Services what they need
Root account is the email address you used to set up your account. Root has always full
administrator access.
S3 Transfer Acceleration:
Doesn’t upload data directly to S3 first it uploads to edge location and then to S3.
S3 STORAGE CLASSES:
S3 Standard
99%,99 Availability and durability stored redundantly across multiple devices in multiple
facilities and is designed to sustain the loss of 2 facilities concurrently.
S3 IA
Infrequently Accessed:
For data that is accessed less frequently, but requires rapid access when needed.
Lower fee than s# but you are charged a retrieval fee.
S3 OneZOne-IA
For where you want a lower-cost option for infrequently accessed data, but do not
require the multiple Availability Zone data residence.
S3 Intelligent Tiering
Designed to optimize cost by automatically moving data to the most cost-effective
access tier, without performance impact or operational overhead.
S3 Glacier
Is a secure durable and low-cost storage class for data archiving. Retrieval times
configurable from minutes to hours.
Edge Location This is a location where content will be cached. This is separate to an
AWS region.
Origin This is the origin of the all files that the CDN will distribute. This can be S3
Bucket, an EC2 Instance, An Elastic Load Balancer or Route53.
Distribution
Web Distribution
RTMP Used For Media Streaming
Objects are cached for the life to the TTL (Time to live)
You can clear cached objects, but you will be charged.
Users that want the low cost and flexibility of Amazon EC2 without any up-front payment
or long-term commitment.
Applications with short term, spiky or unpredictable workloads that cannot be
interrupted.
Reserved Provides you with a capacity reservation and offers a significant discount.
1. Applications with steady state
2. Apps that require reserved capacity.
3. User able to make upfront payments
Under Compute:
EC2
LightSail
ECR
ECS
EKS
Lambda
Batch
ElasticBeanStalk
SSD General Purpose SSD GP2 balances price and performance for a wide variety
Provisioned IOPS SSD (IO1) Highest performance SSD volume for mission critical low
latency.
Magnetic
ST1 Throughput Optimized HHD - Low cost HDD volume designed for frequently
accessed throughput intensive workloads.
Cold HDD Lowest cost HDD volume designed for less frequently accessed workloads
File Servers.
Always design for failure. Have one EC2 instance in each availability zone.
Three ways to interact with AWS : Console, Command Line CLI and SDK Software
Development Kit
Roles are universal, also you can apply roles on EC2 instances at any time.
Load Balancer
Application Load Balancer
When you need a flexible feature set for your web application with HTTP and HTTPs
traffic.Make intelligent Decisions.
Network LoadBalancer
When you need ultra high performance and static IP addresses for your application.
Classic Load Balancer
When you have an existing application running on EC2 Classic network. For test and
dev. Low cost.
ElastiCache is a web service that makes it easy to deploy, operate and scale an in-
memory cache in the cloud. The service improves the performance of web applications
by allowing you to retrieve information from fast , in-memory caches instead of relying
entirely on slower disk based databases.
DNS Domain Name System It is a process computers use to resolve domain names to
IP Address.
Amazon DNS service is called Route53. It’s global similar to IAM and S3.
Works on port 53
CloudFormation is a service that helps you to model and set up your Amazon
WebServices Resources so that you can spend less time managing those resources
and more time focusing on your applications that run in AWS. You create a template
that describes all the AWS resources that you want and AWS CloudFormation takes
care of provisioning and configuring those resources for you.
Elastic BeanStalk And CloudFormation are free. But services that provide are not.
For example EC2 Instance. Elastic BeanStalk is limited in what can provision and is not
programmable. CloudFormation can provision almost any AWS service and is
completely programmable.
Capex Vs Opex:
Capex Stands for Capital Expenditure where you pay up front fixed cost like you buy
server.
Opex stands For Operational Expenditure pay for what you use.
Duration Pricing
400 000 GB Seconds per month free
If Lambda reads and write data to or from S3 you will be charged for that.
SnowBall it’s gigantic disk to move your data to AWS cloud from local machine.
Pricing depends from storage, daly charge Data Transfer first 15 days is free after that
15$ per day. Transfer to S3 is free. Transfer out is not free.
Cost Explorer is used to explore cost AFTER they have been incurred.
Tags
Key value pairs attached to AWS resources
Metadata
Tags can sometimes be inherited
Resource groups make it easy to group your resources using the tags that are assigned
to them. You can group resources that share one or more tags.
Region
Name
Health checks
Using Resource Groups you can apply automation to resources tagged with specific
tags. For example we stopped all EC2 instances in the one region.
Resource Groups in combination with AWS System manager allow you to control
and execute automation against entire fleets of EC2 instances, all at the push of a
button.
AWS Organizations:
Best practices:
Enable multi factor authentication on root account
Always use a strong and complex password on the root account.
Paying accounts should be used for billing purposes only. Do not deploy resources into
the paying account.
Linked Accounts:
20 linked accounts only
Billing Alerts:
When monitoring is enabled on the paying account the billing data for all linked
accounts will be included.
You can still create billing alerts per individual account.
CloudTrail:
Per AWS account and is enabled per region.
Can Consolidated logs using an S3 bucket:
Turn on CloudTrail in paying account.
Create a bucket policy that allows cross-origin account access.
Turn on CloudTrail in the other accounts and use the bucket in the paying account.
Consolidated billing allows you to get volume discounts on all your accounts.
Unused reserved instances for EC2 are applied across the group
CloudTrail is on a per account and per region basis, but can be aggregated into a single
belonging to the paying account.
AWS Landing Zone is a solution that helps customers more quickly set up a secure,
multi-account AWS environment based on AWS best practices.
AWS Calculators
AWS Simple Monthly Calculator is used to calculate your running costs on AWS on a
per month basis. It is not a comparison tool.
AWS Total Cost of Ownership TCO calculator is used to compare costs of running
your infrastructure on premise vs in the AWS Cloud. It will generate reports that you can
give to your C- level execs to make a business case to move to the cloud.
Security in The Cloud
While AWS manages security of the cloud, security in the cloud is the responsibility of
the customer. Customers retain control of what security they choose to implement to
protect their own content, platform, applications, system and networks, no differently
than they would in an on-site datacenter.
AWS responsibility:
Regions, Availability zones, Edge locations, Hardware, Compute, Storage, Database
Networking.
Customer responsibility:
Client Side Data encrypting data integrity authentication, Server side encryption,
Networking traffic, Operation system, Network, Firewall configuration, Platform,
Applications, Identity access management, Customer data.
WAF is a Web Application Firewall that helps you to protect your web application from
common web exploits that could affect application availability, compromise security, or
consume excessive resources. Protect from Cross side scripting attacks, Sql
injections. Goes to OSI layers 7
AWS Shield in a managed Distributed Denial of Service DDoS Protection service that
safeguards web applications running on AWS. AWS Shield provides always-on
detection and automatic inline mitigations that minimize application downtime and
latency, so there is no need to engage AWS Support to benefit from DDoS protection.
There are two tiers of AWS Shield- Standard and Advanced. Protect from DDoS
attacks.
AWS Configuration
Is all about configuration. Provides a detailed view of the configuration of AWS
resources in your AWS account. This includes how the resources are related one to
another.
Athena vs Macie
Athena is an interactive query service which enables you to analyse and query data
located in S3 using standard SQL.
Macie is security service that use machine learning and NLP Natural language
processing to discover classify and protect sensitive data stored in S3
Uses AI to recognise if your S3 objects contain sensitive information such as PII
Dashboard reporting and alerts
Works directly with data stored in S3
Can also analyze CloudTrail Logs