Download - AWS VPC Migration: Flying blind on a rocket cycle

Transcript
Page 1: AWS VPC Migration: Flying blind on a rocket cycle

VPC - Flying Blind on a Rocket Cycle

Matthew Boeckman - VP of DevOps at Craftsy.com@matthewboeckmanhttp://enginerds.craftsy.com

Page 2: AWS VPC Migration: Flying blind on a rocket cycle

Who is Craftsy

● Instructor led training videos for passionate hobbyists● #19 on Forbes’ Most Promising Companies 2014

Page 3: AWS VPC Migration: Flying blind on a rocket cycle

VPC - Why

VPC is mature network topology for AWS

Page 4: AWS VPC Migration: Flying blind on a rocket cycle

VPC - Why

Network ACL’s allow for true edge blocking

Page 5: AWS VPC Migration: Flying blind on a rocket cycle

VPC - Why

Instances can be members of multiple Security Groups

SG membership can change post-instance launch

Page 6: AWS VPC Migration: Flying blind on a rocket cycle

Site to Site VPN connectivity enables extension of your network to AWS

VPC - Why

Page 7: AWS VPC Migration: Flying blind on a rocket cycle

Three things

Keep it simple

Get there now

Keep it simple

Page 8: AWS VPC Migration: Flying blind on a rocket cycle

*disclaimer

Page 9: AWS VPC Migration: Flying blind on a rocket cycle

Our stack in ec2-classic

Page 10: AWS VPC Migration: Flying blind on a rocket cycle

What we hate about ec2-classic

● inflexible security groups● per-IP maintenance of SG’s across regions● ALLOW TCP 22 FROM 0.0.0.0/0● no edge● no edge

● no edge●no edge

Page 11: AWS VPC Migration: Flying blind on a rocket cycle

Our stack in VPC

Page 12: AWS VPC Migration: Flying blind on a rocket cycle

routing

Private subnets can only route traffic destined for the internet to a

NAT instance (eni-0…). Public subnets route to the IGW. Routes

can be automatically propagated from VPN connections.

Page 13: AWS VPC Migration: Flying blind on a rocket cycle

NAT instances

HOW BIG?!

● we chose m1-medium… because…. it seems big enough?

sure. ● failover

Page 14: AWS VPC Migration: Flying blind on a rocket cycle

Site to Site VPN

● AWS docs on this are perfect - check if your firewall is on the supported list. If so, one click configuration for your firewall

● A VPN connection - includes two tunnels, connected to two different IP’s at VPC. THESE UNDERGO MAINTENANCE - PRACTICE FAILOVER

Page 15: AWS VPC Migration: Flying blind on a rocket cycle

Cross region VPN

http://aws.amazon.com/articles/5472675506466066

http://fortycloud.com/interconnecting-two-aws-vpc-regions/

AWS has no product offering here. You can easily VPN two VPC’s in

the same region but not, you know, in different regions.

Page 16: AWS VPC Migration: Flying blind on a rocket cycle

reservations!

Instance reservations purchased in EC2

classic DO NOT MAGICALLY MOVE TO

VPC

Do. Not. Forget. This. Step.

Page 17: AWS VPC Migration: Flying blind on a rocket cycle

seriously?

Page 18: AWS VPC Migration: Flying blind on a rocket cycle

VPC - flying blind

Page 19: AWS VPC Migration: Flying blind on a rocket cycle

netcat, tcpdump and patience

Page 20: AWS VPC Migration: Flying blind on a rocket cycle

be the packet

host a

host b

SG

SGACL

ACL

outout,in

out,in

out,in

in

out

out,in

out,in

out,inin

Page 21: AWS VPC Migration: Flying blind on a rocket cycle

LIMITS

http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Appendix_Limits.html

Page 22: AWS VPC Migration: Flying blind on a rocket cycle

ACL’s ARE NOT STATEFUL

ALLOW tcp 80 src 10.85.0.0/16

ALLOW tcp 443 src 10.85.1.0/24

ALLOW tcp established any

DENY ALL

Page 23: AWS VPC Migration: Flying blind on a rocket cycle

SNS, Redshift, Route53, RDS

SNS - has no legs in VPC. Systems subscribing to SNS topics from private subnets need an HTTP proxy in a public subnet for SNS to reach them.

Redshift/RDS- has legs in VPC - migrate your redshift or rds instances to VPC (yay!)

Route53 - no support for “views” in VPC.

Page 24: AWS VPC Migration: Flying blind on a rocket cycle

migration time best time

- use AWS support or account teams

- start with subnets and basic nat, vpn

- dev environments, soak

- preprod, soak

Page 25: AWS VPC Migration: Flying blind on a rocket cycle

cloned production

Page 26: AWS VPC Migration: Flying blind on a rocket cycle

shut it down

Page 27: AWS VPC Migration: Flying blind on a rocket cycle

thank you

QUESTIONS!

Matthew Boeckman

@matthewboeckman

http://enginerds.craftsy.com

(deck will be there & slideshare)