AWS
AWS
Fonctionnalités :
Cas d'usages :
● Gestion:
● Utilisateurs
● Groupes
● Rôles
● Stratégies
● Sécurité de mot de passe
● Fournisseur d'identité (Fédération web)
● Accès via programmation ou via la console
Bonne pratiques :
création
les sous réseaux
la table de routage
la liste de contrôle d’accès réseaux
la passerelle internet
les zones de disponibilités
redimensionnable
Paiement à l’usage
cas d’usages
web / App
Bases de données
Jeux
Courriels
Fichiers, documents
ETC
INSTANCES TYPES:
The General Purpose Instance balances computing, memory, and networking resources.
The General Purpose Instances are best when there is a balance between the resources.
This type is also good for application servers, gaming servers, and web applications.
The main difference is that this type is ideal for high-performance and compute-intensive
needs.
It loads from storage, holds the data, and processes it before the computer can run it.
The processing allows for a preloading process and gives the CPU direct access to the
computer program.
The Memory Optimized Instances are best when huge amounts of data need to be
preloaded before running the app.
The Accelerated Computing Instances are best for graphics applications and streaming.
Some examples:
The Storage Optimized Instances are designed to deliver many inputs as fast as possible.
Saving plan : it’s a commitment for 1 or 3 years it give you a discounted price
if you surpass the budget the cost goes to normal (on demand)
Reserved instances :
spot instances
the reason behind the price is that aws can optimize its capacity giving you better prices.
Dedicated Host
SCALING
Otherwise if you want to have the scaling possibility your architecture must be scalable.
Autoscaling
AWS EC2 Auto Scaling allows you to add or remove EC2 instances automatically.
It can add new instances to the application when necessary and terminate them when no
longer needed.
Here you can set a minimum capacity of instances that will always be running. The rest will
operate when necessary.
You can set the desired number of AWS EC2 instances in the scaling group.
However, the desired capacity defaults to your minimum capacity if not specified.
You set the minimum capacity, the desired number, and the maximum capacity.
The group will operate within the config and give you a predictable and cost-effective
architecture.
The Load Balancer is a single point of contact for incoming web traffic.
The single point of contact means that the traffic hits the Load Balancer first, spreading out
the load between the resources.
It ensures that one resource won't get overloaded, and that the traffic is spread out.
AWS EC2 and Elastic Load Balancing are two different services that work well together.
AWS ELB is built to support increased traffic without increasing the hourly cost.
Load Allocation
The service allocates incoming traffic between the available resources.
The principle is the same with both high and low demand periods.
it can be use also the scall back-end instances and give the possibilities to front end to
communicate with multiple back-end using ELB.
Monolithic Application
An architecture with tightly coupled components can be called a monolithic application.
In the worst case, this can cause the whole service to go down.
Microservices can help to keep your service available if one component fails.
Microservices
Microservices can help to maintain the service if one component fails.
The services can be maintained because they communicate with each other and the
components are not tightly coupled.
The difference between the Monolithic and Microservices approach is tight coupled vs.
loosely coupled.
Application-to-person messaging to users is possible with SMS, mobile push, and email.
Message Endpoints
AWS SNS can publish messages to many different endpoints:
SQS is a queuing system, and the receivers have to pull the messages to be processed and
deleted from the queue.
Synchronous = tightly coupled system if a component failed the entire of the system failed.
don’t wait for the result to continue the process because messaging are put inside a Queue.
This service lets you run code without needing to think about servers.
It lets you focus on what's most important, such as making a great application.
You only pay for the compute time that you use.
Pay for what you use translates to that you only pay when your code is running.
The container isolates the code and removes the dependencies to other components.
It runs in isolation.
Containerized Approach
Having the application in a container makes debugging easier.
It makes it easier because the application is inside of an isolated container.
Cluster
task
service example (ELB)
What is Kubernetes?
AWS continuously keeps the AWS EKS service updated to the latest
Kubernetes features.
● Cloud Deployment
● Deployment on your infrastructure
● Deployment with your tools
AWS Cloud Fargate
Serverless Compute for Containers - AWS Fargate
It helps to deploy and manage applications.
You do not have to think about the provision of servers and infrastructure
management when using Fargate.
AWS REGIONS
Your company might require that all company data shall reside in the country.
Customer Proximity
Selecting a region near your customers can help to make the services faster.
AWS Cloud Availability Zones
Availability Zone is a single Data Center or a group of Data Centers in a
region.
In an Availability Zone the Data Centers are located many miles apart from
each other.
Having them apart reduces the risk of them all going down if a disaster
happens in the region.
Simultaneously, have the Data Center(s) close enough to have low latency.
The content is delivered faster because the data is no longer requested from
the primary location.
It is delivered from the Edge Location (cloudFront). The location nearest to the
user.
Once someone requests the data, it is copied and stored at the Edge
Location.
When the next person requests the same data, it will be delivered faster from
the nearest Edge Location.
The mobile view is best used for monitoring and accessing billing information.
The API is fitted to the platform or programing language that you use.
AWS SDKs supports programming languages such as C++, Java, .NET, and
more.
● Adjust capacity
● Load balancing
● Automatic scaling
● Application health monitoring
AWS CloudFormation
With AWS CloudFormation, you can treat your infrastructure as code.
Using this service you can build an environment by writing lines of code.
VPC is a service that lets you isolate your AWS resources in an isolated
network.
The boundaries created around the resources let AWS restrict the network
traffic.
In addition, it allows you to include the sections of the AWS Cloud that you
want in the isolated network.
Internet Gateway
Public traffic can be allowed to your VPC.
The Virtual Private Gateway encrypts the internet traffic, keeping it protected.
Only you and your data can travel through the connection.
Subnets and Network Access Control Lists Video
Subnets control access to the gateways.
Subnets
A Subnet is a section of a VPC.
ACL is a firewall that controls the traffic, both inbound and outbound.
However, if they are not on the list, they will be denied access.
They have no memory and will forget the request once checked.
Security Groups
A Security Group is a firewall that controls inbound and outbound traffic.
The default config denies all inbound traffic and allows all outbound.
They remember the actions that they have done with Packets in the past.
Configuration
ACLs and Security groups can be configured.
So ACL are using for all the subnet and security Group for Each
Instance
AWS Route 53
Route 53 is a DNS web service.
Route 53 connects users and their requests to AWS resources and external
resources.
The picture explained:
The data in an instance store persists during the lifetime of its instance.
If an instance reboots, data in the instance store will persist.
When the instance hibernates or terminates, you lose any data in the instance store.
If an instance starts from a stopped state, it might start on another host where the used
instance store does not exist.
Instance Stores are good for temporary files, and data that can be easily recreated.
After creating an EBS volume, you can attach it to an AWS EC2 instance.
If the EC2 instance stops or is terminated, all the data on the attached EBS
volume remains.
To attach EBS volume the volume and EC2 must be in the same AZ
Only the data unique to that snapshot is removed when you delete a
snapshot.
If the EC2 instance stops, or is terminated, all the data on the attached
EBS volume remains.
S3 is a storage service.
S3 Standard
S3 Intelligent-Tiering
S3 Glacier
Faster performance than AWS S3 Data does not suffer loss, degradation,
or a corruption for a very long time (99,99999999%)
compare to AWS EBS AWS EFS saves the data in many availability zones
scaling Efs not disrupt applications.
it’s a regional resource so all Ec2 instances regions can be attach to the
volume
AWS RDS database engines offer data encryption while data is stored, sent,
and received.
It is a serverless database.
Your source database will remain operational during the migration process.
CLOUDWATCH
● Identity
● Time
● IP address
● and much more.
CloudTrail gives a complete history of user activity and API calls on your resources.
● Always Free
● 12 Months Free
● Trials
Always Free
The offers in Always Free do not expire.
12 Months Free
This offer is free for the first 12 months.
Trials
Trials are short-term offers.
This option is for those who know that they need the resources in the future.
Use the groups to simulate how your business is organized. For example, by cost centers.
The Billing Dashboard lets you pay your AWS bill, monitor usage, and analyze costs.
The central location allows you to have one bill cross all the accounts.
● Basic
● Developer
● Business
● Enterprise
Basic Support
Basic is the default support option.
There are limitations for what you can contact AWS for.
Developer Support
Access to everything in Basic plus:
● Best practice guidance
● Client-side diagnostic tools
● Building-block architecture support on how to use AWS services together
Business Support
Everything in Basic and Developer plus:
● Use-case guidance
● All TrustedAdvisor checks
● Limited support for third-party software
Enterprise Support
Everything in Basic, Developer, and Business plus:
She helps you with design, architecture, and how to grow with AWS.
AWS Marketplace
AWS Marketplace lets you list and sell software.
Marketplace is a digital catalog where vendors can list and sell their software.
Here you can explore, test, and purchase software that runs on AWS.
● Pricing
● Support options
● Customer reviews
1. Business
2. People
3. Governance
4. Platform
5. Security
6. Operations
Business Perspective
The Business Perspective is about justifying the investment.
The Business Perspective ensures that business and IT objectives meets the investment.
● Budget owners
● Business managers
● Finance managers
● Strategy stakeholders
People Perspective
The People Perspective evaluates skills, requirements, and roles in your organization.
It is about making sure that you have the right skills, competence, and processes in place to
move to the cloud.
The evaluation process helps you implement necessary changes or improvements.
● People managers
● Human resources (HR)
● Staffing
Governance Perspective
The Governance Perspective is about minimizing the risk.
Platform Perspective
The Platform Perspective helps you deploy new cloud solutions.
Security Perspective
The Security Perspective ensures that the organization's security objectives are met.
Operations Perspective
The Operations Perspective is about running the business.
It helps define the necessary changes needed for successful cloud adoption.
● IT operations managers
● IT support managers
There are six most common strategies you can implement for your application migration:
1. Rehosting
2. Replatforming
3. Refactoring
4. Repurchasing
5. Retaining
6. Retiring
Rehosting
Rehosting is also called lift-and-shift.
Refactoring
Refactoring is also called re-architecting.
Repurchasing
Repurchasing is a process of changing business type.
Retaining
Retaining involves keeping crucial business applications.
Retiring
It is a process of removing unnecessary applications.
● AWS Snowcone
● AWS Snowball
● AWS Snowmobile
AWS Snowcone
AWS Snowcone is a secure and small device.
It transfers data.
AWS Snowball
AWS Snowball has 2 types of devices, described in the table below.
Great for large-scale data Great for services that require a large amount of
migrations computing resources.
Have 80 TB of HDD storage Have 42 TB of HDD storage for object storage, and 7.68
space for object storage TB of NVMe SSD storage space for AWS EBS block
volumes.
Have 1 TB of SSD storage for Work on 208 Gib of memory and 52 vCPUs.
block volumes
AWS Snowmobile
AWS Snowmobile moves large amounts of data to AWS.
Some options for solving your problems that AWS offers you are:
Those areas are also called the five pillars of AWS Well-Architected Framework.
It includes:
Reliability Pillar
The reliability pillar is the ability to minimize disruptions of the system.
It helps you avoid unnecessary investments in infrastructure like servers or data centers.
Because of the high number of clients in the cloud, you can achieve lower pay-as-you-go
rates.
Go Global in Minutes
AWS Cloud allows you to deploy apps quickly and with little latency.
S3 :
Rappels
.Service transversal
.service de stockage d’objets
. accéssible par d’autres services aws
. ompartiments, nommage universel (global)
. classes de stockage (Std, APF (accès peu fréquent), Glacier ) => avec définition ou non de
la duréee de vie
. Version, Cycles de vie, Expiration
. Permissions S3 ou KMS, en transit et au repos
. Durabilité 99,9999999
. Possibilité de remonter les métriques vers CLOUDWATCH
Cas d’usages
● stockage de données
● stockage de sauvegardes (snapshot Ec2) => reprise d’activité après sinistre
● hébergement de sites statiques
● Archivage bas cout (Glacier)
● Zone de stockage pour les données du <<BigData>>
ROUTE 53 👍
Service de nom de domaine (DNS) global
Service de haute disponibilité
Surveillance de ressources aws et non aws
😀
Annuaire
utilise le port 53 (TCP/UDP) Route 53
Fonctionnalités
Résolveur
Flux de trafic
Routage basé sur la latence
Geo DNS
DNS privé pour Amazone VPC
Basculement DNS
contrôle et surveillance avec cloudwatch de l’état de santé des equipment
Intégré à Amazone ELB
SUMMARY
Gestion de DNS
Hébergement de zones
Couvre les différents enregistrements DNS
.SOA (centralise la liste des top level) -NS (précise quel serveur à autorité pour un
domaine précis)-A (rédirection nom d’hote vers IP)-CNAMES (permet d’appeler une
machine par un ou plusieurs noms d’hotes)-MX (redirection de mail)-PTR (reverse DNS)
Routage conditionnel
Routage simple, pondéré, latence, bascule, géographique
métrique de santé (sauf pour le routage simple)
lié aux autres services cloudwatch, ELB
RDS
Hautement évolutif
Hautes performances
Administration facile
Disponible et durable
Sûr et conforme (licenses)
SNS
FOnctionnement publication-souscription
contrôlé par API ou console
Multiples types d’envoie de message
Faibles coût
service régionale
👍
Ajustement de la capacité en fonction du besoin
Automatiser le plus possible
<< un système automatisé est un ensemble d’éléments qui effectue des actions sans
intervention de l’utilisateur>>.
Bootstrap EC2
#!/bin/bash
yum update -y
yum install httpd -y
chkconfig httpd on
service httpd start
cd /var/www/html
echo " <html> <h1> instance PARIS 01 </h1> </html>" > index.html