AmazonAWSFundamentals 2 AWS Reminders
AmazonAWSFundamentals 2 AWS Reminders
AW S C L O U D P L AT F O R M AN D R E S O U R C E S
Agenda
1. F U N D AM E N T AL S O F T H E AW S P L AT F O R M 5. N E T W O R K I N G R E M I N D E R S I N AW S
1. AW S G L O B AL I N F R AS T R U C T U R E 1. AM AZ O N V P C
2. AW S R E G I O N S , AV AI L AB I L I T Y Z O N E S , L O C AL Z O N E S , 2. SUBNETS
AW S O U T P O S T S 3. N AC L
2. COMPUTE 4. R O U T E T AB L E S
1. W H AT I S T H E AM AZ O N E C 2 ?
2. I N S T AN C E T Y P E S AN D AM I S
3. SECURITY GROUPS
4. AU T OS C AL I N G
5. ECS and EKS
3. S T O R AG E
1. EBS & EFS
2. G L AC I E R AN D S 3
4. D AT AB AS E I N AW S
2
1
• Regions
• Availability Zones
• Local Zones
• Wavelength Zones
• AWS Outposts
4
Amazon Web Services Fundamentals - 1. Fundamentals of the AWS platform
5
Amazon Web Services Fundamentals - 1. Fundamentals of the AWS platform
6
2
8
Amazon Web Services Fundamentals - 2. Amazon Elastic Compute Cloud Instance
There are multiple EC2 instance type families, where the instance
configuration is designed for different use-cases:
• General Purpose (M6g, T4g, M5, M5a, M4, T3, T3a, T2).
9
Amazon Web Services Fundamentals - 2. Amazon Elastic Compute Cloud Instance
An Amazon Machine Image (AMI) is a supported and maintained image provided by AWS that provides the information
required to launch an instance.
You must specify an AMI when you launch an instance. You can launch multiple instances from a single AMI when you require
multiple instances with the same configuration. You can use different AMIs to launch instances when you require instances
with different configurations.
You can launch an instance from an existing AMI, customize the instance (for example, install software on the instance), and
then save this updated configuration as a custom AMI.
After you create an AMI, you can keep it private so that only you can use it, or share it with other AWS accounts. You can also
make your custom AMI public so that the community can use it.
10
Amazon Web Services Fundamentals - 2. Amazon Elastic Compute Cloud Instance
Instance lifecycle
An AWS EC2 instance transitions through multiple different states from the moment you launch it, until its termination.
From the graph above, only running and / or stopping (when preparing to hibernate) are billed. The other instance states (pending, stopped,
shutting down, terminated) are not billed.
11
Amazon Web Services Fundamentals - 2. Amazon Elastic Compute Cloud Instance
Auto Scaling
AWS Autoscaling allows you to automatically add or remove EC2 instances according to user-defined conditions. You can
also use dynamic scaling, which responds to changing demand and automatically schedules the right number of EC2
instances based on predicted demand. Dynamic scaling and predictive scaling can be used together to scale faster.
12
Amazon Web Services Fundamentals - 2. ECS and EKS
13
Amazon Web Services Fundamentals - 2. ECS and EKS
14
Amazon Web Services Fundamentals - 2. ECS and EKS
15
Amazon Web Services Fundamentals - 2. ECS and EKS
EKS is a managed service to allow users to run Kubernetes on AWS without the need to install, operate or maintain the Kubernetes control-
plane or nodes. Unlike ECS, EKS does have a cost of $0.10 per hour for each EKS cluster that gets created, on top of additional costs based
on the resources used.
16
Amazon Web Services Fundamentals - 2. ECS and EKS
• Amazon EKS nodes that are registered with the control plane
The EKS control plane consists of control-plane nodes that run Kubernetes
services (such as etcd and Kubernetes API server) The plane runs in the account
managed by AWS and the Kubernetes API is exposed via the AWS EKS endpoint
associated with the cluster.
Self-managed nodes – EKS nodes run in the AWS account and connect to the
control plane of the cluster. You deploy one or more nodes in a node-group.
EKS managed nodes – the provisioning and lifecycle of nodes (AWS EC2
instances) is automated. This means you don’t need to separately provision or
register the EC2 instances.
17
3
Storage
Amazon Web Services Fundamentals - 3. Storage
Amazon EBS or Elastic Block Store is a block-storage service that stores data in block volumes. EBS volumes behave like raw, unformatted
block devices that can be mounted as devices to instances. EBS volumes that are attached to an instance become storage volumes that persist
independently from the instance itself.
Attached to an instance, the EBS volume size can be dynamically increased, the provisioned IOPS capacity can be modified and the volume type
on live production volumes can be changed. Multiple EBS volumes can be attached to a single-instance, or a volume can be attached to multiple
instances.
19
Amazon Web Services Fundamentals - 3. Storage
Data security – EBS volumes are presented as raw, unformatted block devices.
These are logical devices created on the EBS infrastructure and AWS ensures
that they are logically empty (raw blocks are zeroed or they contain
cryptographically pseudorandom data) before being used.
20
Amazon Web Services Fundamentals - 3. Storage
21
Amazon Web Services Fundamentals - 3. Storage
22
Amazon Web Services Fundamentals - 3. Storage
23
Amazon Web Services Fundamentals - 3. Storage
24
4
Database in AWS
Amazon Web Services Fundamentals - 4. Databases in AWS
The RDS service can work with MySQL, PostgreSQL, MariaDB, Oracle and Microsoft SQL Server.
26
Amazon Web Services Fundamentals - 4. Databases in AWS
• Compute storage can scale vertically, increasing up to 244 GiB RAM and
32 vCPUs.
27
Amazon Web Services Fundamentals - 4. Databases in AWS
Aurora splits the compute and storage into two different components.
Storage is handled by a custom data-layer that takes advantage of AWS’
cloud infrastructure.
Compared to the RDS service, Aurora has some very different architectural
changes:
• Every Aurora cluster has six storage nodes that spread across three AZs,
even with one compute node.
28
5
Amazon Virtual Private Cloud (Amazon VPC) is a service that allows you
to create a logically isolated virtual network to use with other Amazon
resources.
You have absolute control of the environment, including the ability to choose
your IP address range, the capacity to create public-facing subnets for web-
servers with access to the internet, or private-subnets with no internet
access. The VPC also allows you to set-up multiple layers of security,
including security groups and network access control-lists to help control
access to various resources in each subnet.
• Subnet
• Routing Table
30
Amazon Web Services Fundamentals - 5. AWS Networking architecture - VPC
A subnet is a grouped range of IP addresses in your VPC. You can launch various AWS
resources into a specified subnet.
Each subnet must reside entirely within one availability zone and cannot span zones.
Additionally, a subnet can be added in a Local Zone (allows you to place resources and
services closer to end-users).
Subnet types:
• Public Subnets – The subnet traffic is routed to the public internet through an internet
gateway or an egress-only internet gateway.
• Private Subnet – The subnet traffic doesn’t have access to the internet through a gateway.
It may use a NAT device to get access to the public internet.
• VPN only subnet – Subnet traffic is routed through a VPN connection through a virtual
private gateway. Subnet traffic can’t reach the internet through an internet gateway.
When creating a subnet, you can specify its IP addresses, depending on the VPC config. It
can be IPv4 only, dual-stack (IPv4 and IPv6) or IPv6 only.
31
Amazon Web Services Fundamentals - 5 AWS Networking architecture - VPC
• By default, each ACL denies all inbound and outbound traffic, until you
add rules.
• Each subnet in your VPC must be associated with a NACL. If you don’t
associate a NACL with a subnet, the subnet automatically is associated
with the default NACL.
• You can associate one NACL to multiple subnets. However, a subnet can
only be associated with one NACL at a time.
• AWS evaluates the network ACL rules when traffic enters and leaves the
subnet, but not as it’s routed within the subnet.
32
Amazon Web Services Fundamentals - 5. AWS Networking architecture - VPC
Each VPC has an implicit VPC router, which has the function
to take all of the route tables defined within that VPC and
direct the traffic flow within that VPC, as well as to subnets
outside of the VPC, based on the routes defined within those
tables. Each subnet in your VPC must be associated with a
route table, which controls the routing for the subnet.
33
THANK YOU!
ANDREI DANEASA
PRINCIPAL DATA CONSULTANT, ENDAVA BHD
Petrus-Iulian Fatu
DevOps Consultant, Endava BHD
Q&A