Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Elastic Load Balancing automatically
distributes incoming application traffic across
multiple targets, such as Amazon Elastic
Compute Cloud (Amazon EC2) instances,
containers, and IP addresses
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Elastic Secure Integrated Cost effective
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
EC2
Instance
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
EC2
instance
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Layer 4 (network) Layer 7 (application)
Supports TCP Supports HTTP and HTTPS
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
The Elastic Load Balancing (ELB) family
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Application Load Balancer
Advanced request routing with support for
microservices and container-based applications
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Application Load Balancer
Feature rich, layer 7 load-balanced platform
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
API Model
Routing
Security
Availability
Pricing
Migration
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Load Balancer
Listener Listener
Rule (default) Rule (*/img/*) Rule (default)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
EC2
instance
EC2
instance
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
EC2
orders.example.com instance
EC2
ELB
instance
EC2
instance
Running two separate
services with Classic
Load Balancer
EC2
instance
EC2
ELB
instance
EC2
images.example.com instance
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
EC2
instance
EC2
instance
/orders EC2
instance Application Load
Balancer allows for
ELB multiple services to be
EC2
example.com hosted behind a single
instance
load balancer
/images EC2
instance
EC2
instance
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Redirects in ALB
Use cases Examples
1
HTTP to HTTP redirects HTTP://example.com to HTTP://example.org:8080
2
HTTP to HTTPS redirects HTTP://example.com to HTTPS ://example.com
HTTP://example.com: 443 to HTTPS ://example.com: 40443
3
HTTPS to HTTPS redirects HTTPS://example.com: 443 to HTTPS ://example.com: 40443
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Fixed response
You can control which of the client requests should
be served by the application fleet
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Slow start
Slow start allows adding new targets without
overwhelming them with a flood of requests
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Native IPv6 support
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Managing TLS
Legacy Model Cert Request
Deploy
To Hosts Certificate
Amazon
Authority
Route 53
HTTPS
users
instances
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Using Application Load Balancer
Upload to AWS Cert Request
Identity and
Access
Management
(IAM) Signed Cert
Admin
Amazon IAM
Route 53
Deploy
To ALB Certificate
Authority
HTTPS Application
Load Balancer
users
instances
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Application Load Balancer & AWS Certificate Manager
(ACM) Cert Request
Admin
AWS
Certificate
Manager
Amazon (ACM)
Route 53
HTTPS Application
Load Balancer instances
users
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Predefined security policies
ELBSecurityPolicy-TLS-1-1-2017-01 – Supports TLS 1.1
and above
ELBSecurityPolicy-TLS-1-2-2017-01 – Strictly supports
TLS1.2
ELBSecurityPolicy-2016-08 – New default policy -Same
as Classic Load Balancer default policy
Windows XP Security Policy
ELBSecurityPolicy-FS-2018-06 – Supports ciphers that
ensure Forward secrecy
ELBSecurityPolicy-TLS-1-2-Ext-2018-06 –
Strictly supports TLS 1.2 protocol
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Application Load Balancer with AWS WAF
Monitor web requests and protect web
applications from malicious requests at the load
balancer X
Block or allow requests based on conditions such
as IP addresses
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Authentication in ALB
Authenticate users accessing
applications
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
whoami
Will Rose
Senior Security Engineer
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Netflix Identity Platform
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Landscape
Great Variability
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Identity Challenges
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Identity Challenges
Proxy Layer
Additional critical infrastructure to maintain
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Please select one
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Crazy Talk
Please
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
?
Alphabet Soup
Ingredients
1 x AWS
1 x ALB
1 x OIDC
Simmer for 6 months
Serves: everyone
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Under the Hood
Identity Headers
X-Amzn-OIDC-Identity: will.rose@domain.com
X-Amzn-OIDC-Access-Token: 1waGF…YW50
X-Amzn-OIDC-Data: eyJhbG...y4MbQQ
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Adoption
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Thank
you!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Filtering by TAGs in console
Filter load balancers and target groups
by tags
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Health checks
EC2
instance
EC2
instance
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Health checks
Support for HTTP and HTTPS health checks
Amazon
Route 53
instance
HTTPS
Application
instance
instance
Auto Scaling group
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon EC2 Auto Scaling
Amazon
Route 53 Launch
instance instance Configure
Serve
=
HTTPS Minutes
Application
instance instance
instance instance
Auto Scaling group
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Elastic Container Service
Amazon
Route 53
instance
HTTPS
Application
users Load Balancer
instance
Elastic Container Service
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Containers: ALB integration with Kubernetes / EKS
ALB Ingress Controller – Enabling host or path based routing to Kubernetes cluster.
• ALB fronts multiple services and act as a “smart router” or entry
point into the Kubernetes cluster
• Rich Layer 7 routing features of ALB
https://github.com/kubernetes-sigs/aws-alb-ingress-controller
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
ALB w/ Amazon ECS || Amazon EKS Scaling
Amazon
Route 53 Start
Run
instance =
Seconds
HTTPS
Application
users Load Balancer
instance
Elastic Container Service
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon CloudWatch metrics
CloudWatch metrics provided for each load
balancer
HTTPS ECS
users Application
container
Load Balancer
ECS
VPC container
peering
EU-WEST-2
AWS
permissions
WAF
Amazon © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Cognito
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Application Load Balancer pricing
With the Application Load Balancer, you only pay for what you use. You are
charged for each hour or partial hour your Application Load Balancer is running
and the number of Load Balancer Capacity Units (LCU) used per hour
Publishing LCU Metrics for Classic Load Balancer which allows customers
to estimate pricing if they migrate from Classic to ALB
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Network Load Balancer
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Network Load Balancer
New, layer 4 load-balancing platform
Connection-based load balancing
TCP protocol
High performance
Can handle millions of requests per sec
Static IP support
Listeners
Target groups
Targets
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Static IP
Preservation of Source IP
Availability
Pricing
Migration
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Static IP
Automatically gets assigned a single IP per
Availability Zone
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Assign Elastic IP addresses
TargetGroup 1
1a
34.214.45.162
EC2 instances
EC2 instance
Assigning Elastic IP
provides a single IP
Network Load
Balancer
address per Availability
Zone per load balancer
that will not change.
EC2 instances
54.69.111.179 EC2 instance
1b
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Preserve source IP
Preserves client IP to backends
Auto Scaling
Preserves source IP helping firewalls with
Internal Network Load
features like Geo-IP blocking
inside.domain.com
Balancer (NLB)
us-west-1a
34.214.45.162
EC2
NLB Instances
Health Check
Amazon
Route 53
us-west-1b
Health Check EC2
NLB
54.69.111.179 Instances
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Availability Zone fail-over
34.214.45.162 TargetGroup 1
Customer VPC
54.69.111.179
us-west-1a
34.214.45.162
EC2
NLB Instances
Health Check
Amazon
Route 53
us-west-1b
Health Check
NLB
54.69.111.179
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon CloudWatch metrics
CloudWatch metrics provided for each load
balancer.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Traffic and capacity metrics
ActiveFlowCount - Total number of
concurrent TCP flows (or connections)
from clients to targets
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Backend health
HealthyHostCount – Number of targets
that are considered healthy
UnHealthyHostCount – Number of
targets that are considered unhealthy
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Flow logs
Captures the network flow for a
specific quintuple, for a specific
capture window
Packets
Bytes
Capture window start and end
Action - Accepted or Rejected
status
Log status
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Network Load Balancer pricing
With the Network Load Balancer, you only pay for what you use. You are
charged for each hour or partial hour your Network Load Balancer is running
and the number of Load Balancer Capacity Units (LCU) used per hour
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Load balancer capacity units - TCP
An LCU measures the dimensions on which the Network Load Balancer
processes your traffic (averaged over an hour). The three dimensions measured
are as follows
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Migrating to Network Load Balancer
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Which load balancer should I pick?
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Application Load Balancer Network Load Balancer Classic Load Balancer
✓ ✓
WebSockets
✓
Preserve client IP
✓ ✓
Container support
✓
User Authentication
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
For TCP in VPC, use Network Load
Balancer
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.