SlideShare uma empresa Scribd logo
1 de 63
Baixar para ler offline
Deep Dive: Virtual Private Cloud
Julien Simon"
Principal Technical Evangelist
julsimon@amazon.fr
@julsimon
aws vpc –-expert-mode
Agenda
Configurations réseau
EC2-Classic
Simple à démarrer –
toutes les instances
ont une connectivité
Internet, des
adresses IP privées
et publiques auto-
attribuées
Groupes de sécurité
entrants
VPC par défaut
Le meilleur des deux
Mise en route avec
l'expérience EC2-
Classic
Si et quand cela
s'avère nécessaire,
commencez à utiliser la
fonctionnalité VPC dont
vous avez besoin
VPC
Services de mise en
réseau avancée :
ENI et plusieurs IP,
Tables de routage,
Groupes de sécurité,
ACL réseau,
Connectivité privée,
Mise en réseau
améliorée,
etc.
VPC
Services de mise en
réseau avancée :
ENI et plusieurs IP
Tables de routage
Groupes de sécurité
ACL réseau
Connectivité privée
Mise en réseau
améliorée
Etc.
Configurations réseau
VPC par défaut
Le meilleur des deux
Mise en route avec
l'expérience EC2-
Classic
Si et quand cela
s'avère nécessaire,
commencez à utiliser la
fonctionnalité VPC dont
vous avez besoin
EC2-Classic
Simple à démarrer –
toutes les instances
ont une connectivité
Internet, des
adresses IP privées
et publiques auto-
attribuées
Groupes de sécurité
entrants
Tous les comptes créés après
le 04/12/2013 prennent en
charge VPC uniquement et
ont un VPC par défaut
dans chaque région
Identifier le VPC par défaut
describe-account-attributes
Configuration VPC
VPC par défaut
Routing & Private Links
Building an Hybrid Architecture
Enterprise Data Center
Create a VPC
Enterprise Data Center
aws ec2 create-vpc --cidr 10.10.0.0/16
aws ec2 create-subnet --vpc vpc-c15180a4 --cidr 10.10.1.0/24 --a us-west-2a
aws ec2 create-subnet --vpc vpc-c15180a4 --cidr 10.10.2.0/24 --a us-west-2b
Create a VPN connection
Enterprise Data Center
aws ec2 create-vpn-gateway --type ipsec.1
aws ec2 attach-vpn-gateway --vpn vgw-f9da06e7 --vpc vpc-c15180a4
aws ec2 create-customer-gateway --type ipsec.1 --public 54.64.1.2 --bgp 6500
aws ec2 create-vpn-connection --vpn vgw-f9da06e7 --cust cgw-f4d905ea --t ipsec.1
http://docs.aws.amazon.com/fr_fr/AmazonVPC/latest/UserGuide/VPC_VPN.html
http://docs.aws.amazon.com/fr_fr/AmazonVPC/latest/NetworkAdminGuide/Introduction.html
Launch instances
Enterprise Data Center
aws ec2 run-instances --image ami-d636bde6 --sub subnet-d83d91bd --count 3
aws ec2 run-instances --image ami-d636bde6 --sub subnet-b734f6c0 --count 3
Using AWS Direct Connect
Enterprise Data Center
aws directconnect create-connection --loc EqSE2 --b 1Gbps --conn My_First
aws directconnect create-private-virtual-interface --conn dxcon-fgp13h2s --new
virtualInterfaceName=Foo, vlan=10, asn=60, authKey=testing,
amazonAddress=192.168.0.1/24, customerAddress=192.168.0.2/24,
virtualGatewayId=vgw-f9da06e7
http://www.slideshare.net/JulienSIMON5/an-introduction-to-aws-direct-connect
Best pratices for remote connections
Enterprise Data Center
AZ
Each VPN link uses
2 redundant IPSec tunnels.
Use BGP for routing.
AZ
Best pratices for remote connections
Enterprise Data Center
AZ
 AZ
BGP
2 VPN connections
(4 IPSec tunnels total)
on different devices
à no SPOF
BGP
Best pratices for remote connections
Enterprise Data Center
AZ
 AZ
BGP
Redudant Direct
Connect connections
+ backup VPN
BGP selects best route
https://aws.amazon.com/fr/directconnect/partners/
Route selection (customer site à VGW)
When multiple connections are available, multiple routes to the
VPN Gateway will exist on your router.
•  You have to manage this yourself J
•  Static routes: what about failover?
•  BGP is the best option
•  Active / passive: you can favor one path, e.g. DX > VPN "
(Cisco: WEIGHT and LOCAL_PREFERENCE attributes)
•  Active / Active : you can set up BGP Multipath "
(Cisco : BGP Link Bandwidth)
Route selection (VGW à customer site)
When multiple connections are available, multiple routes to the same
customer destination may exist on the VGW.

1.  The most specific IP Prefix is favored (10.0.0.0/24 > 10.0.0.0/16)
2.  Identical prefix? Static routes are favored over BGP routes
3.  Multiple BGP routes? The shortest AS path is favored
•  You can use the AS_PATH prefix to penalize a route
•  If AS paths have the same length, their origin will be taken into account
(IGP > EGP > unknown)
http://docs.aws.amazon.com/fr_fr/AmazonVPC/latest/NetworkAdminGuide/Introduction.html#MultipleVPNConnections
Routing: default route
Enterprise Data Center
192.168.0.0/16
aws ec2 create-route --ro rtb-ef36e58a --dest 0.0.0.0/0 --gateway-id vgw-f9da06e7
Each VPC has a routing table used
by all subnets
Routing: private and public connectivity
Enterprise Data Center
192.168.0.0/16
aws ec2 create-internet-gateway
aws ec2 attach-internet-gateway --internet igw-5a1ae13f --vpc vpc-c15180a4
aws ec2 delete-route --ro rtb-ef36e58a --dest 0.0.0.0/0
aws ec2 create-route --ro rtb-ef36e58a --dest 0.0.0.0/0 --gateway-id igw-5a1ae13f
aws ec2 create-route --ro rtb-ef36e58a --dest 192.168.0.0/16 --gateway-id vgw-f9da06e7
Routing: propagating routes from the VGW to the VPC
Enterprise Data Center
192.168.0.0/16
aws ec2 delete-route --ro rtb-ef36e58a --dest 192.168.0.0/16
aws ec2 enable-vgw-route-propagation --ro rtb-ef36e58a --gateway-id vgw-f9da06e7
VPC routing table(s) will be automatically
updated when a route changes on the VGW
Routing: subnet-specific routing table
Enterprise
Data Center
Data Center
192.168.0.0/16
aws ec2 create-subnet --vpc vpc-c15180a4 --cidr 10.10.3.0/24 --a us-west-2b
aws ec2 create-route-table --vpc vpc-c15180a4
aws ec2 associate-route-table --ro rtb-fc61b299 --subnet subnet-60975a17
aws ec2 create-route --ro rtb-ef36e58a --dest 0.0.0.0/0 --gateway-id igw-5a1ae13f
Subnet connected to the Internet and
to the other subnets but not to the
Enterprise Data Center
Setting up a software VPN in EC2 across VPCs
# VPC A
aws ec2 modify-network-interface-attribute --net eni-f832afcc --no-source-dest-check
# VPC B
aws ec2 modify-network-interface-attribute --net eni-9c1b693a --no-source-dest-check
Setting up a software VPN in EC2 across VPCs
Tunnel between
these instances
Setting up a software VPN in EC2 across VPCs
Add a route to the other subnet
through the EC2 instance
# VPC A
aws ec2 create-route --ro rtb-ef36e58a --dest 10.20.0.0/16 --instance-id i-f832afcc
# VPC B
aws ec2 create-route --ro rtb-67a2b31c --dest 10.10.0.0/16 –-instance-id i-9c1b693a
Setting up a software firewall on EC2
All subnet traffic goes through
the NAT/FW before going to the
Internet
aws ec2 modify-network-interface-attribute --net eni-f832afcc --no-source-dest-check
# The default routing table sends traffic to the NAT/FW instance
aws ec2 create-route --ro rtb-ef36e58a --dest 0.0.0.0/0 --instance-id i-f832afcc
# Route from 10.10.3.0/24 to the Internet
aws ec2 create-route --ro rtb-67a2b31c --dest 0.0.0.0/0 --gateway-id igw-5a1ae13f
VPC Peering
Sharing a service VPC through peering
Core services
•  Authentication / Directory
•  Monitoring
•  Logging
•  Remote management
•  Security audits
Partitioning your infrastructure with peering

Development : VPC B

Test : VPC C

Production : VPC D
VPC peering – things you should know
VPCs should be in the same region.

VPC address ranges must not overlap.

Routing: use private IP addresses - IPv4 or IPv6 (since December 2016).

Security groups: since March 2016, you can reference them across VPCs.

DNS: since July 2016, you can resolve private addresses across VPCs.
"
No transitivity for VPN peering or Direct Connect
•  Example : A peers with B, B peers with C à A doesn’t peer with C
•  Solution : set up peering explicitely between A and C
VPC peering in the same account
aws ec2 create-vpc-peering-connection --vpc-id vpc-c15180a4 --peer-vpc vpc-062dfc63
aws ec2 accept-vpc-peering-connection --vpc-peer pcx-ee56be87
VPC A> aws ec2 create-route --ro rtb-ef36e58a --des 10.20.0.0/16 --vpc-peer pcx-ee56be87
VPC B> aws ec2 create-route --ro rtb-67a2b31c --des 10.10.0.0/16 --vpc-peer pcx-ee56be87
VPC A - 10.10.0.0/16
vpc-c15180a4
VPC B - 10.20.0.0/16
vpc-062dfc63
VPC peering in different accounts
aws ec2 create-vpc-peering-connection --vpc-id vpc-c15180a4 --peer-vpc vpc-062dfc63
--peer-owner 472752909333
# In account 472752909333
aws ec2 accept-vpc-peering-connection --vpc-peer pcx-ee56be87
VPC A - 10.10.0.0/16
vpc-c15180a4
VPC B - 10.20.0.0/16
vpc-062dfc63
Account 472752909333
Enhanced Networking
Latency: how many packets per second?
Instance 1 Instance 2
...........
Packet processing in Amazon EC2: VIF
Virtualization Layer
eth0
eth1
Instance
Virtual Network
Interface
Physical
Network
Interface
Packet processing in Amazon EC2: SRIOV
eth0
Instance
Pilote VF
eth1
VF
Virtualization Layer
Physical
Network
Interface
Packets do not go
through the virtualization
layer any more.

The network driver has
direct access to the
physical network
interface.

This must be configured
on your instance
Latency across instances
SRIOV: can I use it?
On recent AMIs, Enhanced Networking is
enabled by default
•  AMI Amazon Linux 
•  AMI Windows Server 2012 R2

No configuration necessary
SRIOV: Linux
No
 Yes!
[ec2-user@ip-10-0-3-70 ~]
$ ethtool -i eth0
driver: vif
version:
firmware-version:
bus-info: vif-0
…
[ec2-user@ip-10-0-3-70 ~]$
ethtool -i eth0
driver: ixgbevf
version: 2.14.2+amzn
firmware-version: N/A
bus-info: 0000:00:03.0
…
SRIOV support
•  Instance families"
C3, C4, I2, I3, D2, R3, R4, M4, P2, X1
•  HVM virtualization
•  OS version
•  Linux : >= 2.6.32
•  Windows : >= Server 2008 R2
•  VF driver
•  Linux : module ixgbevf 2.14.2+
•  Windows : Intel® 82599 driver
Enable Enhanced Networking (Amazon Linux)
amzn-ami-hvm-2012.03.1.x86_64-ebs
hvm
Enable Enhanced Networking (Amazon Linux)
--attribute
sriovNetSupport
InstanceId i-37c5d1d9
Not yet
Enable Enhanced Networking (Amazon Linux)
[ec2-user@ip-10-0-3-125 ~]$ sudo yum update
Update the OS
Enable Enhanced Networking (Amazon Linux)
reboot-instances
Reboot to use the
new OS
Enable Enhanced Networking (Amazon Linux)
stop-instances
Stop the instance
stop-instances
--sriov-net-support
simple
Enable SRIOV
(you can’t go back!)
Enable Enhanced Networking (Amazon Linux)
Enable Enhanced Networking (Amazon Linux)
start-instances
Start the
instance
Enable Enhanced Networking (Amazon Linux)
start-instances
--attribute
sriovNetSupport
InstanceId i-37c5d1d9
Value simple
Done!
SRIOV: Windows
No
 Yes !
Enable Enhanced Networking (Windows)
http://docs.aws.amazon.com/fr_fr/AWSEC2/latest/WindowsGuide/sriov-networking.html
Enable Enhanced Networking (Windows)
Install the new driver
VPC Endpoints for S3
Points de terminaison VPC pour Amazon S3
Utile pour les sous-réseaux privés qui
n’ont pas d’accès direct à Internet,
voire pas d’accès du tout

Possibilité d’utiliser S3 à l’intérieur du
VPC, sans passer par Internet (via VPN
ou Direct Connect)

Optimisation de la bande passante,
meilleures performances et sécurité
accrue
Points de terminaison VPC pour Amazon S3
Compartiment
'mypics'
Instance
 Routage 
VPC
région
Point de terminaison VPC
vpce-abcd1234
Création d'un point de terminaison VPC
ec2-create-vpc-endpoint
Points de terminaison VPC pour Amazon S3
Compartiment
'mypics'
Instance
 Routeur 
VPC
région
Point de terminaison VPC
vpce-abcd1234
L'application résout mypics.s3.amazonaws.com
Le DNS répond avec les adresses IP habituelles d’Amazon S3
L'application se connecte à l'adresse IP sélectionnée
Points de terminaison VPC pour Amazon S3
Compartiment
'mypics'
Instance
 Routeur 
VPC
région
Point de terminaison VPC
vpce-abcd1234
Destination Cible
pl-1a2b3c4d vpce-abcd1234
Liste de préfixe
com.amazonaws.us-west-1.s3
Points de terminaison VPC pour Amazon S3
Compartiment
'mypics'
Instance
 Routeur 
VPC
région
Point de terminaison VPC
vpce-abcd1234
Stratégie IAM sur le point de terminaison VPC vpe-abcd1234
•  Autoriser l'accès au compartiment ’mypics’
•  Refuser l'accès aux autres compartiments
Stratégie IAM de point de terminaison VPC
Points de terminaison VPC pour Amazon S3
Compartiment
'mypics'
Instance
 Routeur 
VPC
région
Point de terminaison VPC
vpce-abcd1234
Stratégie IAM sur le compartiment ‘mypics’
•  Autoriser l'accès à partir de vpce-abcd1234
•  Refuser tous les autres
IAM policy for S3 bucket
Additional Resources
‪AWS re:Invent 2016: Tuesday Night Live with James Hamilton‬
https://www.youtube.com/watch?v=AyOAjFNPAbA 
AWS re:Invent 2016: Creating Your Virtual Data Center: VPC Fundamentals and Connectivity (NET201)"
https://www.youtube.com/watch?v=Ul2NsPNh9Ik 
AWS re:Invent 2016: NEW LAUNCH IPv6 in the Cloud: Protocol and AWS Service Overview (NET204)
https://www.youtube.com/watch?v=Uvgyxncu9MY 
AWS re:Invent 2016: NextGen Networking: New Capabilities for Amazon’s Virtual Private Cloud (NET303)
https://www.youtube.com/watch?v=G24h4PuAOrs
‪AWS re:Invent 2016: Extending Datacenters to the Cloud (NET305)‬
https://www.youtube.com/watch?v=F2AWkGem7Sw 
AWS re:Invent 2016: Another Day, Another Billion Packets (NET401)
https://www.youtube.com/watch?v=St3SE4LWhKo
AWS re:Invent 2016: Deep Dive: AWS Direct Connect and VPNs (NET402)
https://www.youtube.com/watch?v=Qep11X1r1QA
Julien Simon
julsimon@amazon.fr
@julsimon 
Your feedback 
is important to us!

Mais conteúdo relacionado

Mais procurados

Securing your AWS Resources with Amazon VPC - AWS Summit 2012 - NYC
Securing your AWS Resources with Amazon VPC - AWS Summit 2012 - NYCSecuring your AWS Resources with Amazon VPC - AWS Summit 2012 - NYC
Securing your AWS Resources with Amazon VPC - AWS Summit 2012 - NYC
Amazon Web Services
 
Amazon Virtual Private Cloud VPC Architecture AWS Web Services
Amazon Virtual Private Cloud VPC Architecture AWS Web ServicesAmazon Virtual Private Cloud VPC Architecture AWS Web Services
Amazon Virtual Private Cloud VPC Architecture AWS Web Services
Robert Wilson
 
AWS Network Topology/Architecture
AWS Network Topology/ArchitectureAWS Network Topology/Architecture
AWS Network Topology/Architecture
wlscaudill
 

Mais procurados (20)

(NET405) Build a Remote Access VPN Solution on AWS
(NET405) Build a Remote Access VPN Solution on AWS(NET405) Build a Remote Access VPN Solution on AWS
(NET405) Build a Remote Access VPN Solution on AWS
 
High Availability Application Architectures in Amazon VPC (ARC202) | AWS re:I...
High Availability Application Architectures in Amazon VPC (ARC202) | AWS re:I...High Availability Application Architectures in Amazon VPC (ARC202) | AWS re:I...
High Availability Application Architectures in Amazon VPC (ARC202) | AWS re:I...
 
Cohesive Networks Support Docs: VNS3 Configuration for Amazon VPC
Cohesive Networks Support Docs: VNS3 Configuration for Amazon VPC Cohesive Networks Support Docs: VNS3 Configuration for Amazon VPC
Cohesive Networks Support Docs: VNS3 Configuration for Amazon VPC
 
From One to Many: Evolving VPC Design (ARC401) | AWS re:Invent 2013
From One to Many:  Evolving VPC Design (ARC401) | AWS re:Invent 2013From One to Many:  Evolving VPC Design (ARC401) | AWS re:Invent 2013
From One to Many: Evolving VPC Design (ARC401) | AWS re:Invent 2013
 
(ARC401) Black-Belt Networking for the Cloud Ninja | AWS re:Invent 2014
(ARC401) Black-Belt Networking for the Cloud Ninja | AWS re:Invent 2014(ARC401) Black-Belt Networking for the Cloud Ninja | AWS re:Invent 2014
(ARC401) Black-Belt Networking for the Cloud Ninja | AWS re:Invent 2014
 
Securing your AWS Resources with Amazon VPC - AWS Summit 2012 - NYC
Securing your AWS Resources with Amazon VPC - AWS Summit 2012 - NYCSecuring your AWS Resources with Amazon VPC - AWS Summit 2012 - NYC
Securing your AWS Resources with Amazon VPC - AWS Summit 2012 - NYC
 
Deep Dive: Amazon Virtual Private Cloud
Deep Dive: Amazon Virtual Private CloudDeep Dive: Amazon Virtual Private Cloud
Deep Dive: Amazon Virtual Private Cloud
 
(SDD302) A Tale of One Thousand Instances - Migrating from Amazon EC2-Classic...
(SDD302) A Tale of One Thousand Instances - Migrating from Amazon EC2-Classic...(SDD302) A Tale of One Thousand Instances - Migrating from Amazon EC2-Classic...
(SDD302) A Tale of One Thousand Instances - Migrating from Amazon EC2-Classic...
 
AWS VPC best practices 2016 by Bogdan Naydenov
AWS VPC best practices 2016 by Bogdan NaydenovAWS VPC best practices 2016 by Bogdan Naydenov
AWS VPC best practices 2016 by Bogdan Naydenov
 
Webinar AWS 201 - Using Amazon Virtual Private Cloud (VPC)
Webinar AWS 201 - Using Amazon Virtual Private Cloud (VPC)Webinar AWS 201 - Using Amazon Virtual Private Cloud (VPC)
Webinar AWS 201 - Using Amazon Virtual Private Cloud (VPC)
 
Amazon Virtual Private Cloud VPC Architecture AWS Web Services
Amazon Virtual Private Cloud VPC Architecture AWS Web ServicesAmazon Virtual Private Cloud VPC Architecture AWS Web Services
Amazon Virtual Private Cloud VPC Architecture AWS Web Services
 
From One to Many: Evolving VPC Design
From One to Many: Evolving VPC DesignFrom One to Many: Evolving VPC Design
From One to Many: Evolving VPC Design
 
Using Virtual Private Cloud (vpc)
Using Virtual Private Cloud (vpc)Using Virtual Private Cloud (vpc)
Using Virtual Private Cloud (vpc)
 
Vpc (virtual private cloud)
Vpc (virtual private cloud)Vpc (virtual private cloud)
Vpc (virtual private cloud)
 
Advanced Approaches to Amazon VPC and Amazon Route 53 | AWS Public Sector Sum...
Advanced Approaches to Amazon VPC and Amazon Route 53 | AWS Public Sector Sum...Advanced Approaches to Amazon VPC and Amazon Route 53 | AWS Public Sector Sum...
Advanced Approaches to Amazon VPC and Amazon Route 53 | AWS Public Sector Sum...
 
An Introduction to Amazon VPC
An Introduction to Amazon VPCAn Introduction to Amazon VPC
An Introduction to Amazon VPC
 
AWS Network Topology/Architecture
AWS Network Topology/ArchitectureAWS Network Topology/Architecture
AWS Network Topology/Architecture
 
Bct Aws-VPC-Training
Bct Aws-VPC-TrainingBct Aws-VPC-Training
Bct Aws-VPC-Training
 
Deep Dive: Amazon Virtual Private Cloud
Deep Dive: Amazon Virtual Private CloudDeep Dive: Amazon Virtual Private Cloud
Deep Dive: Amazon Virtual Private Cloud
 
AWS re:Invent 2016: From One to Many: Evolving VPC Design (ARC302)
AWS re:Invent 2016: From One to Many: Evolving VPC Design (ARC302)AWS re:Invent 2016: From One to Many: Evolving VPC Design (ARC302)
AWS re:Invent 2016: From One to Many: Evolving VPC Design (ARC302)
 

Semelhante a Deep Dive VPC - Pop-up Loft TLV 2017

Semelhante a Deep Dive VPC - Pop-up Loft TLV 2017 (20)

AWS May Webinar Series - Deep Dive: Amazon Virtual Private Cloud
AWS May Webinar Series - Deep Dive: Amazon Virtual Private CloudAWS May Webinar Series - Deep Dive: Amazon Virtual Private Cloud
AWS May Webinar Series - Deep Dive: Amazon Virtual Private Cloud
 
Deep Dive: Amazon Virtual Private Cloud
Deep Dive: Amazon Virtual Private CloudDeep Dive: Amazon Virtual Private Cloud
Deep Dive: Amazon Virtual Private Cloud
 
(SDD422) Amazon VPC Deep Dive | AWS re:Invent 2014
(SDD422) Amazon VPC Deep Dive | AWS re:Invent 2014(SDD422) Amazon VPC Deep Dive | AWS re:Invent 2014
(SDD422) Amazon VPC Deep Dive | AWS re:Invent 2014
 
Deep Dive: Amazon Virtual Private Cloud
Deep Dive: Amazon Virtual Private CloudDeep Dive: Amazon Virtual Private Cloud
Deep Dive: Amazon Virtual Private Cloud
 
VPC and DX PoP @ HKG
VPC and DX PoP @ HKGVPC and DX PoP @ HKG
VPC and DX PoP @ HKG
 
Don't think about the difficulty Let's try to connect easy to IPv6 network w...
 Don't think about the difficulty Let's try to connect easy to IPv6 network w... Don't think about the difficulty Let's try to connect easy to IPv6 network w...
Don't think about the difficulty Let's try to connect easy to IPv6 network w...
 
AWS Direct Connect & VPN's - Pop-up Loft Tel Aviv
AWS Direct Connect & VPN's - Pop-up Loft Tel AvivAWS Direct Connect & VPN's - Pop-up Loft Tel Aviv
AWS Direct Connect & VPN's - Pop-up Loft Tel Aviv
 
(NET301) New Capabilities for Amazon Virtual Private Cloud
(NET301) New Capabilities for Amazon Virtual Private Cloud(NET301) New Capabilities for Amazon Virtual Private Cloud
(NET301) New Capabilities for Amazon Virtual Private Cloud
 
Vpc aws meetup
Vpc   aws meetupVpc   aws meetup
Vpc aws meetup
 
Cloud stack networking shapeblue technical deep dive
Cloud stack networking   shapeblue technical deep diveCloud stack networking   shapeblue technical deep dive
Cloud stack networking shapeblue technical deep dive
 
(ARC402) Double Redundancy With AWS Direct Connect
(ARC402) Double Redundancy With AWS Direct Connect(ARC402) Double Redundancy With AWS Direct Connect
(ARC402) Double Redundancy With AWS Direct Connect
 
AWS Direct Connect 및 VPN을 이용한 클라우드 아키텍쳐 설계:: Steve Seymour :: AWS Summit Seou...
AWS Direct Connect 및 VPN을 이용한 클라우드 아키텍쳐 설계:: Steve Seymour :: AWS Summit Seou...AWS Direct Connect 및 VPN을 이용한 클라우드 아키텍쳐 설계:: Steve Seymour :: AWS Summit Seou...
AWS Direct Connect 및 VPN을 이용한 클라우드 아키텍쳐 설계:: Steve Seymour :: AWS Summit Seou...
 
PLNOG 17 - Tomasz Stachlewski - Infrastruktura sieciowa w chmurze AWS
PLNOG 17 - Tomasz Stachlewski - Infrastruktura sieciowa w chmurze AWSPLNOG 17 - Tomasz Stachlewski - Infrastruktura sieciowa w chmurze AWS
PLNOG 17 - Tomasz Stachlewski - Infrastruktura sieciowa w chmurze AWS
 
AWS re:Invent 2016: How Harvard University Improves Scalable Cloud Network Se...
AWS re:Invent 2016: How Harvard University Improves Scalable Cloud Network Se...AWS re:Invent 2016: How Harvard University Improves Scalable Cloud Network Se...
AWS re:Invent 2016: How Harvard University Improves Scalable Cloud Network Se...
 
(NET406) Deep Dive: AWS Direct Connect and VPNs
(NET406) Deep Dive: AWS Direct Connect and VPNs(NET406) Deep Dive: AWS Direct Connect and VPNs
(NET406) Deep Dive: AWS Direct Connect and VPNs
 
Couch to OpenStack: Neutron (Quantum) - August 13, 2013 Featuring Sean Winn
Couch to OpenStack: Neutron (Quantum) - August 13, 2013 Featuring Sean WinnCouch to OpenStack: Neutron (Quantum) - August 13, 2013 Featuring Sean Winn
Couch to OpenStack: Neutron (Quantum) - August 13, 2013 Featuring Sean Winn
 
AWS Connectivity, VPC Design and Security Pro Tips
AWS Connectivity, VPC Design and Security Pro TipsAWS Connectivity, VPC Design and Security Pro Tips
AWS Connectivity, VPC Design and Security Pro Tips
 
Amazon Virtual Private Cloud
Amazon Virtual Private CloudAmazon Virtual Private Cloud
Amazon Virtual Private Cloud
 
Architecting Advanced Network Security Across VPCs with AWS Transit Gateway
Architecting Advanced Network Security Across VPCs with AWS Transit GatewayArchitecting Advanced Network Security Across VPCs with AWS Transit Gateway
Architecting Advanced Network Security Across VPCs with AWS Transit Gateway
 
Creating Your Virtual Data Center: VPC Fundamentals
Creating Your Virtual Data Center: VPC FundamentalsCreating Your Virtual Data Center: VPC Fundamentals
Creating Your Virtual Data Center: VPC Fundamentals
 

Mais de Amazon Web Services

Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
Amazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
Amazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
Amazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
Amazon Web Services
 

Mais de Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Último

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Último (20)

Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 

Deep Dive VPC - Pop-up Loft TLV 2017

  • 1. Deep Dive: Virtual Private Cloud Julien Simon" Principal Technical Evangelist julsimon@amazon.fr @julsimon
  • 4. Configurations réseau EC2-Classic Simple à démarrer – toutes les instances ont une connectivité Internet, des adresses IP privées et publiques auto- attribuées Groupes de sécurité entrants VPC par défaut Le meilleur des deux Mise en route avec l'expérience EC2- Classic Si et quand cela s'avère nécessaire, commencez à utiliser la fonctionnalité VPC dont vous avez besoin VPC Services de mise en réseau avancée : ENI et plusieurs IP, Tables de routage, Groupes de sécurité, ACL réseau, Connectivité privée, Mise en réseau améliorée, etc.
  • 5. VPC Services de mise en réseau avancée : ENI et plusieurs IP Tables de routage Groupes de sécurité ACL réseau Connectivité privée Mise en réseau améliorée Etc. Configurations réseau VPC par défaut Le meilleur des deux Mise en route avec l'expérience EC2- Classic Si et quand cela s'avère nécessaire, commencez à utiliser la fonctionnalité VPC dont vous avez besoin EC2-Classic Simple à démarrer – toutes les instances ont une connectivité Internet, des adresses IP privées et publiques auto- attribuées Groupes de sécurité entrants Tous les comptes créés après le 04/12/2013 prennent en charge VPC uniquement et ont un VPC par défaut dans chaque région
  • 6. Identifier le VPC par défaut describe-account-attributes Configuration VPC VPC par défaut
  • 8. Building an Hybrid Architecture Enterprise Data Center
  • 9. Create a VPC Enterprise Data Center aws ec2 create-vpc --cidr 10.10.0.0/16 aws ec2 create-subnet --vpc vpc-c15180a4 --cidr 10.10.1.0/24 --a us-west-2a aws ec2 create-subnet --vpc vpc-c15180a4 --cidr 10.10.2.0/24 --a us-west-2b
  • 10. Create a VPN connection Enterprise Data Center aws ec2 create-vpn-gateway --type ipsec.1 aws ec2 attach-vpn-gateway --vpn vgw-f9da06e7 --vpc vpc-c15180a4 aws ec2 create-customer-gateway --type ipsec.1 --public 54.64.1.2 --bgp 6500 aws ec2 create-vpn-connection --vpn vgw-f9da06e7 --cust cgw-f4d905ea --t ipsec.1 http://docs.aws.amazon.com/fr_fr/AmazonVPC/latest/UserGuide/VPC_VPN.html http://docs.aws.amazon.com/fr_fr/AmazonVPC/latest/NetworkAdminGuide/Introduction.html
  • 11. Launch instances Enterprise Data Center aws ec2 run-instances --image ami-d636bde6 --sub subnet-d83d91bd --count 3 aws ec2 run-instances --image ami-d636bde6 --sub subnet-b734f6c0 --count 3
  • 12. Using AWS Direct Connect Enterprise Data Center aws directconnect create-connection --loc EqSE2 --b 1Gbps --conn My_First aws directconnect create-private-virtual-interface --conn dxcon-fgp13h2s --new virtualInterfaceName=Foo, vlan=10, asn=60, authKey=testing, amazonAddress=192.168.0.1/24, customerAddress=192.168.0.2/24, virtualGatewayId=vgw-f9da06e7 http://www.slideshare.net/JulienSIMON5/an-introduction-to-aws-direct-connect
  • 13. Best pratices for remote connections Enterprise Data Center AZ Each VPN link uses 2 redundant IPSec tunnels. Use BGP for routing. AZ
  • 14. Best pratices for remote connections Enterprise Data Center AZ AZ BGP 2 VPN connections (4 IPSec tunnels total) on different devices à no SPOF BGP
  • 15. Best pratices for remote connections Enterprise Data Center AZ AZ BGP Redudant Direct Connect connections + backup VPN BGP selects best route https://aws.amazon.com/fr/directconnect/partners/
  • 16. Route selection (customer site à VGW) When multiple connections are available, multiple routes to the VPN Gateway will exist on your router. •  You have to manage this yourself J •  Static routes: what about failover? •  BGP is the best option •  Active / passive: you can favor one path, e.g. DX > VPN " (Cisco: WEIGHT and LOCAL_PREFERENCE attributes) •  Active / Active : you can set up BGP Multipath " (Cisco : BGP Link Bandwidth)
  • 17. Route selection (VGW à customer site) When multiple connections are available, multiple routes to the same customer destination may exist on the VGW. 1.  The most specific IP Prefix is favored (10.0.0.0/24 > 10.0.0.0/16) 2.  Identical prefix? Static routes are favored over BGP routes 3.  Multiple BGP routes? The shortest AS path is favored •  You can use the AS_PATH prefix to penalize a route •  If AS paths have the same length, their origin will be taken into account (IGP > EGP > unknown) http://docs.aws.amazon.com/fr_fr/AmazonVPC/latest/NetworkAdminGuide/Introduction.html#MultipleVPNConnections
  • 18. Routing: default route Enterprise Data Center 192.168.0.0/16 aws ec2 create-route --ro rtb-ef36e58a --dest 0.0.0.0/0 --gateway-id vgw-f9da06e7 Each VPC has a routing table used by all subnets
  • 19. Routing: private and public connectivity Enterprise Data Center 192.168.0.0/16 aws ec2 create-internet-gateway aws ec2 attach-internet-gateway --internet igw-5a1ae13f --vpc vpc-c15180a4 aws ec2 delete-route --ro rtb-ef36e58a --dest 0.0.0.0/0 aws ec2 create-route --ro rtb-ef36e58a --dest 0.0.0.0/0 --gateway-id igw-5a1ae13f aws ec2 create-route --ro rtb-ef36e58a --dest 192.168.0.0/16 --gateway-id vgw-f9da06e7
  • 20. Routing: propagating routes from the VGW to the VPC Enterprise Data Center 192.168.0.0/16 aws ec2 delete-route --ro rtb-ef36e58a --dest 192.168.0.0/16 aws ec2 enable-vgw-route-propagation --ro rtb-ef36e58a --gateway-id vgw-f9da06e7 VPC routing table(s) will be automatically updated when a route changes on the VGW
  • 21. Routing: subnet-specific routing table Enterprise Data Center Data Center 192.168.0.0/16 aws ec2 create-subnet --vpc vpc-c15180a4 --cidr 10.10.3.0/24 --a us-west-2b aws ec2 create-route-table --vpc vpc-c15180a4 aws ec2 associate-route-table --ro rtb-fc61b299 --subnet subnet-60975a17 aws ec2 create-route --ro rtb-ef36e58a --dest 0.0.0.0/0 --gateway-id igw-5a1ae13f Subnet connected to the Internet and to the other subnets but not to the Enterprise Data Center
  • 22. Setting up a software VPN in EC2 across VPCs # VPC A aws ec2 modify-network-interface-attribute --net eni-f832afcc --no-source-dest-check # VPC B aws ec2 modify-network-interface-attribute --net eni-9c1b693a --no-source-dest-check
  • 23. Setting up a software VPN in EC2 across VPCs Tunnel between these instances
  • 24. Setting up a software VPN in EC2 across VPCs Add a route to the other subnet through the EC2 instance # VPC A aws ec2 create-route --ro rtb-ef36e58a --dest 10.20.0.0/16 --instance-id i-f832afcc # VPC B aws ec2 create-route --ro rtb-67a2b31c --dest 10.10.0.0/16 –-instance-id i-9c1b693a
  • 25. Setting up a software firewall on EC2 All subnet traffic goes through the NAT/FW before going to the Internet aws ec2 modify-network-interface-attribute --net eni-f832afcc --no-source-dest-check # The default routing table sends traffic to the NAT/FW instance aws ec2 create-route --ro rtb-ef36e58a --dest 0.0.0.0/0 --instance-id i-f832afcc # Route from 10.10.3.0/24 to the Internet aws ec2 create-route --ro rtb-67a2b31c --dest 0.0.0.0/0 --gateway-id igw-5a1ae13f
  • 27. Sharing a service VPC through peering Core services •  Authentication / Directory •  Monitoring •  Logging •  Remote management •  Security audits
  • 28. Partitioning your infrastructure with peering Development : VPC B Test : VPC C Production : VPC D
  • 29. VPC peering – things you should know VPCs should be in the same region. VPC address ranges must not overlap. Routing: use private IP addresses - IPv4 or IPv6 (since December 2016). Security groups: since March 2016, you can reference them across VPCs. DNS: since July 2016, you can resolve private addresses across VPCs. " No transitivity for VPN peering or Direct Connect •  Example : A peers with B, B peers with C à A doesn’t peer with C •  Solution : set up peering explicitely between A and C
  • 30. VPC peering in the same account aws ec2 create-vpc-peering-connection --vpc-id vpc-c15180a4 --peer-vpc vpc-062dfc63 aws ec2 accept-vpc-peering-connection --vpc-peer pcx-ee56be87 VPC A> aws ec2 create-route --ro rtb-ef36e58a --des 10.20.0.0/16 --vpc-peer pcx-ee56be87 VPC B> aws ec2 create-route --ro rtb-67a2b31c --des 10.10.0.0/16 --vpc-peer pcx-ee56be87 VPC A - 10.10.0.0/16 vpc-c15180a4 VPC B - 10.20.0.0/16 vpc-062dfc63
  • 31. VPC peering in different accounts aws ec2 create-vpc-peering-connection --vpc-id vpc-c15180a4 --peer-vpc vpc-062dfc63 --peer-owner 472752909333 # In account 472752909333 aws ec2 accept-vpc-peering-connection --vpc-peer pcx-ee56be87 VPC A - 10.10.0.0/16 vpc-c15180a4 VPC B - 10.20.0.0/16 vpc-062dfc63 Account 472752909333
  • 33. Latency: how many packets per second? Instance 1 Instance 2 ...........
  • 34. Packet processing in Amazon EC2: VIF Virtualization Layer eth0 eth1 Instance Virtual Network Interface Physical Network Interface
  • 35. Packet processing in Amazon EC2: SRIOV eth0 Instance Pilote VF eth1 VF Virtualization Layer Physical Network Interface Packets do not go through the virtualization layer any more. The network driver has direct access to the physical network interface. This must be configured on your instance
  • 37. SRIOV: can I use it? On recent AMIs, Enhanced Networking is enabled by default •  AMI Amazon Linux •  AMI Windows Server 2012 R2 No configuration necessary
  • 38. SRIOV: Linux No Yes! [ec2-user@ip-10-0-3-70 ~] $ ethtool -i eth0 driver: vif version: firmware-version: bus-info: vif-0 … [ec2-user@ip-10-0-3-70 ~]$ ethtool -i eth0 driver: ixgbevf version: 2.14.2+amzn firmware-version: N/A bus-info: 0000:00:03.0 …
  • 39. SRIOV support •  Instance families" C3, C4, I2, I3, D2, R3, R4, M4, P2, X1 •  HVM virtualization •  OS version •  Linux : >= 2.6.32 •  Windows : >= Server 2008 R2 •  VF driver •  Linux : module ixgbevf 2.14.2+ •  Windows : Intel® 82599 driver
  • 40. Enable Enhanced Networking (Amazon Linux) amzn-ami-hvm-2012.03.1.x86_64-ebs hvm
  • 41. Enable Enhanced Networking (Amazon Linux) --attribute sriovNetSupport InstanceId i-37c5d1d9 Not yet
  • 42. Enable Enhanced Networking (Amazon Linux) [ec2-user@ip-10-0-3-125 ~]$ sudo yum update Update the OS
  • 43. Enable Enhanced Networking (Amazon Linux) reboot-instances Reboot to use the new OS
  • 44. Enable Enhanced Networking (Amazon Linux) stop-instances Stop the instance
  • 45. stop-instances --sriov-net-support simple Enable SRIOV (you can’t go back!) Enable Enhanced Networking (Amazon Linux)
  • 46. Enable Enhanced Networking (Amazon Linux) start-instances Start the instance
  • 47. Enable Enhanced Networking (Amazon Linux) start-instances --attribute sriovNetSupport InstanceId i-37c5d1d9 Value simple Done!
  • 49. Enable Enhanced Networking (Windows) http://docs.aws.amazon.com/fr_fr/AWSEC2/latest/WindowsGuide/sriov-networking.html
  • 50. Enable Enhanced Networking (Windows) Install the new driver
  • 52. Points de terminaison VPC pour Amazon S3 Utile pour les sous-réseaux privés qui n’ont pas d’accès direct à Internet, voire pas d’accès du tout Possibilité d’utiliser S3 à l’intérieur du VPC, sans passer par Internet (via VPN ou Direct Connect) Optimisation de la bande passante, meilleures performances et sécurité accrue
  • 53. Points de terminaison VPC pour Amazon S3 Compartiment 'mypics' Instance Routage  VPC région Point de terminaison VPC vpce-abcd1234
  • 54. Création d'un point de terminaison VPC ec2-create-vpc-endpoint
  • 55. Points de terminaison VPC pour Amazon S3 Compartiment 'mypics' Instance Routeur  VPC région Point de terminaison VPC vpce-abcd1234 L'application résout mypics.s3.amazonaws.com Le DNS répond avec les adresses IP habituelles d’Amazon S3 L'application se connecte à l'adresse IP sélectionnée
  • 56. Points de terminaison VPC pour Amazon S3 Compartiment 'mypics' Instance Routeur  VPC région Point de terminaison VPC vpce-abcd1234 Destination Cible pl-1a2b3c4d vpce-abcd1234 Liste de préfixe com.amazonaws.us-west-1.s3
  • 57. Points de terminaison VPC pour Amazon S3 Compartiment 'mypics' Instance Routeur  VPC région Point de terminaison VPC vpce-abcd1234 Stratégie IAM sur le point de terminaison VPC vpe-abcd1234 •  Autoriser l'accès au compartiment ’mypics’ •  Refuser l'accès aux autres compartiments
  • 58. Stratégie IAM de point de terminaison VPC
  • 59. Points de terminaison VPC pour Amazon S3 Compartiment 'mypics' Instance Routeur  VPC région Point de terminaison VPC vpce-abcd1234 Stratégie IAM sur le compartiment ‘mypics’ •  Autoriser l'accès à partir de vpce-abcd1234 •  Refuser tous les autres
  • 60. IAM policy for S3 bucket
  • 61.
  • 62. Additional Resources ‪AWS re:Invent 2016: Tuesday Night Live with James Hamilton‬ https://www.youtube.com/watch?v=AyOAjFNPAbA AWS re:Invent 2016: Creating Your Virtual Data Center: VPC Fundamentals and Connectivity (NET201)" https://www.youtube.com/watch?v=Ul2NsPNh9Ik AWS re:Invent 2016: NEW LAUNCH IPv6 in the Cloud: Protocol and AWS Service Overview (NET204) https://www.youtube.com/watch?v=Uvgyxncu9MY AWS re:Invent 2016: NextGen Networking: New Capabilities for Amazon’s Virtual Private Cloud (NET303) https://www.youtube.com/watch?v=G24h4PuAOrs ‪AWS re:Invent 2016: Extending Datacenters to the Cloud (NET305)‬ https://www.youtube.com/watch?v=F2AWkGem7Sw AWS re:Invent 2016: Another Day, Another Billion Packets (NET401) https://www.youtube.com/watch?v=St3SE4LWhKo AWS re:Invent 2016: Deep Dive: AWS Direct Connect and VPNs (NET402) https://www.youtube.com/watch?v=Qep11X1r1QA
  • 63. Julien Simon julsimon@amazon.fr @julsimon Your feedback is important to us!