Latest / CyberSecurity Summary / AWS Certified Advanced Networking – Specialty (ANS-C01) Certification Guide: A pragmatic guide to acing the AWS ANS-C01 exam
Transcript
- 0:00Speaker 1: Welcome back to the deep dive. Today we're pulling back
- 0:03Speaker 1: the curtain on something well fundamental yet often kind of unseen,
- 0:07Speaker 1: the intricate world of cloud networking on AWS.
- 0:11Speaker 2: That's right, you've sent.
- 0:12Speaker 1: Us a stack of sources looks like excerpts from an
- 0:14Speaker 1: AWS certification book, and our mission is pretty clear. Distill
- 0:19Speaker 1: those crucial insights. We give you a shortcut really to
- 0:23Speaker 1: being genuinely well informed about the hidden physics of the cloud.
- 0:28Speaker 1: Let's umpact this.
- 0:29Speaker 2: It is fascinating, isn't it, Because you know, cloud services
- 0:32Speaker 2: can feel almost like magic, but underneath they're built on
- 0:36Speaker 2: these deeply rooted networking principles, just with a dynamic global twist.
- 0:42Speaker 2: So today, yeah, we're going to try and uncover those
- 0:44Speaker 2: aha moments. We'll go from the virtual network interfaces powering
- 0:47Speaker 2: your instances all the way to how global traffic is managed,
- 0:50Speaker 2: how it's secured, revealing the key bits and importantly the
- 0:53Speaker 2: unseen challenges that keep everything running.
- 0:56Speaker 1: Okay, So where do we even begin with something as
- 0:58Speaker 1: big as cloud networking? Maybe start right at the foundation
- 1:01Speaker 1: makes sense.
- 1:02Speaker 2: Let's talk about the elastic network interface, the E and I,
- 1:04Speaker 2: The E and I.
- 1:05Speaker 1: Right, So think of it like the cloud's virtual network
- 1:08Speaker 1: card for your EC two instances. Every single bit of
- 1:11Speaker 1: network traffic in and out it flows through an E
- 1:13Speaker 1: and I exactly. But the key thing about E and i's,
- 1:16Speaker 1: it seems, isn't just that they're virtual NICs. It's their flexibility, right, Absolutely,
- 1:20Speaker 1: the flexibility is huge.
- 1:21Speaker 2: You can attach them, detach them in different states too,
- 1:25Speaker 2: Like you.
- 1:25Speaker 1: Can do a hot attachment while the instance is actually running.
- 1:29Speaker 2: Yep, hot attachment, while running warm attachment if it's stopped,
- 1:32Speaker 2: or even coal attachment right when you'll launch it.
- 1:34Speaker 1: Wow, And an instance can have more than one, like
- 1:37Speaker 1: connected to different parts of your network.
- 1:39Speaker 2: Yeah, definitely, you can have multiple E and i's on
- 1:41Speaker 2: a single EC two instance, each connected to a different
- 1:44Speaker 2: VPC subnet, maybe for different security zones or traffic types.
- 1:48Speaker 2: That detachment flexibility really changes how you think about high availability.
- 1:52Speaker 1: Okay, so that's the interface. What about the addresses themselves
- 1:55Speaker 1: inside aws?
- 1:56Speaker 2: Good question. Let's dive into IP addressing. So mostly you'll
- 2:01Speaker 2: see vpcs using private IP ranges, you know, the standard
- 2:04Speaker 2: RFC nineteen eighteen stuff.
- 2:06Speaker 1: Right like ten dot or one seventy two dot sixteen exactly.
- 2:11Speaker 2: But subnets can also allow for the auto assignment of
- 2:15Speaker 2: public IPv four addresses when you'll launch an instance.
- 2:18Speaker 1: Ah okay, but wait if those auto assigned public ips
- 2:22Speaker 1: can just change, say if you stop and start the instance. Yeah,
- 2:26Speaker 1: how do you deal with services that absolutely need a fixed,
- 2:30Speaker 1: unchanging external address, like a web server or something.
- 2:34Speaker 2: That's a fantastic question, and that's precisely where elastic IP
- 2:37Speaker 2: addresses or EPs come in. They're indispensable for that hpiece.
- 2:41Speaker 2: They are static public IPv four addresses. You basically allocate
- 2:45Speaker 2: them to your AWS account, not directly to an instance initially.
- 2:49Speaker 1: Ah okay, So they belong to the account.
- 2:51Speaker 2: Right, and then you could associate an EP with an
- 2:53Speaker 2: E and I or directly with an EC two instance.
- 2:56Speaker 2: The crucial flexibility here is that the EEP isn't permanently
- 2:59Speaker 2: tied to that specific piece of hardware or virtual.
- 3:01Speaker 1: Hardware, so you can move it around exactly.
- 3:03Speaker 2: If an instance fails or you need to swap something out,
- 3:06Speaker 2: you just reassociate that same EP with a different instance
- 3:09Speaker 2: or E and I. Gives you that stable public phase
- 3:11Speaker 2: for your applications, regardless of the underlying instance churn.
- 3:15Speaker 1: That makes a lot of sense, okay. Building on managing IPS, efficiently.
- 3:20Speaker 1: The sources mentioned something called prefix lists. What are those about?
- 3:24Speaker 1: How do they make life simpler?
- 3:25Speaker 2: Prefix lists are actually quite clever. They're basically custom managed
- 3:29Speaker 2: lists of IP address ranges or prefixes. You maintain these
- 3:33Speaker 2: lists and then you can reference them consistently in your network.
- 3:36Speaker 1: Can fix like in security groups or route tables precisely.
- 3:40Speaker 2: Instead of typing out or copying and pasting potentially huge
- 3:44Speaker 2: lists of IP addresses over and over again, you just
- 3:46Speaker 2: refer to the prefix list by its name. It simplifies
- 3:49Speaker 2: policy creation immensely.
- 3:51Speaker 1: Okay, so you define it once, use it many times exactly.
- 3:53Speaker 2: And they are two types. You've got AWS managed prefix lists,
- 3:56Speaker 2: which AWS maintains for their own services, makes it super
- 3:59Speaker 2: easy to allow traffic to S three or DynamoDB for example.
- 4:03Speaker 1: Oh nice.
- 4:04Speaker 2: And then you have customer managed prefix lists where you
- 4:06Speaker 2: define your own groups of ips. Maybe you create one
- 4:08Speaker 2: called all dev resources that includes all this CIDR blocks
- 4:12Speaker 2: for your development VPCS makes managing access way easier.
- 4:16Speaker 1: Right, I can see how that would tidy things up.
- 4:18Speaker 1: Now for something that sounds a bit more mysterious, the hyperplane.
- 4:23Speaker 1: What on earth is that?
- 4:24Speaker 2: Yeah? It does sound a bit sci fi doesn't it.
- 4:26Speaker 2: Think of the hyperplane as like the virtual network engine
- 4:30Speaker 2: of AWS. It's the massively distributed underlying infrastructure that takes
- 4:35Speaker 2: the physical network and slices it up virtually for every customer.
- 4:39Speaker 2: That's what makes vpcs and all these services actually work.
- 4:42Speaker 1: Okay, the engine behind the scenes, But what's surprising about it.
- 4:46Speaker 2: What's surprising or at least really important to understand, is
- 4:48Speaker 2: how it operates with these artificial limits. AWS puts these
- 4:52Speaker 2: in place to ensure fair resource allocation across all tenants.
- 4:56Speaker 1: Limits like bandwidth.
- 4:57Speaker 2: Yeah, bandwidth or throughput limits are part of it, and
- 4:59Speaker 2: they very hugely depending on the service. You know, a
- 5:02Speaker 2: transit gateway VPC attachment might go up to fifty gigabits
- 5:05Speaker 2: per second, whereas a single VPN tunnel might top out
- 5:09Speaker 2: at say one point twenty five gvps and direct connect
- 5:13Speaker 2: depending on the port, maybe one ten or even one
- 5:15Speaker 2: hundred gvps. Now, these numbers kind of show the different
- 5:18Speaker 2: skills you're working at.
- 5:19Speaker 1: That huge difference between TGW and a VPN tunnel is striking.
- 5:25Speaker 1: But you mentioned something else, something trickier than just bandwidth.
- 5:29Speaker 2: Yes, and this is the one that catches people out,
- 5:31Speaker 2: even experienced folks. It's the packets per second or PPS limitations.
- 5:35Speaker 1: Packets per second. Why is that trickier?
- 5:37Speaker 2: Because you can often hit the PPS limit before you
- 5:40Speaker 2: hit the bandwidth limit, especially with lots of small packets,
- 5:43Speaker 2: like certain types of application traffic, or maybe even a
- 5:46Speaker 2: d DOS attack using small packets.
- 5:48Speaker 1: And what happens?
- 5:48Speaker 2: Then you start dropping packets silently. Your bandwidth monitors might
- 5:52Speaker 2: look totally fine, nowhere near saturated, but packets are just
- 5:55Speaker 2: vanishing into the ether because the hyperplane component handling your
- 5:59Speaker 2: traffic can't process them fast enough.
- 6:01Speaker 1: Ouch. So how do you even spot that? If there are,
- 6:04Speaker 1: as you said, no obvious signs, That.
- 6:06Speaker 2: Is the challenge. It feels like a ghost in the machine.
- 6:09Speaker 2: Diagnosing it usually means you need to look beyond just throughput.
- 6:13Speaker 2: You need metrics on packet counts, maybe packet drop counters
- 6:16Speaker 2: if the service exposes them, or you have to use
- 6:19Speaker 2: tools like VPC flow logs or even VBC traffic mirroring,
- 6:24Speaker 2: which we can get into later, to try and see
- 6:26Speaker 2: what's actually happening at the packet level. It definitely defies
- 6:28Speaker 2: traditional bandwidth troubleshooting.
- 6:30Speaker 1: Okay, that's a really crucial subtle point So we've got
- 6:33Speaker 1: the building blocks E and i's ips limits. But clouds
- 6:37Speaker 1: aren't usually isolated islands, right, You need them to talk
- 6:40Speaker 1: to each other.
- 6:41Speaker 2: Absolutely, Connecting things is key.
- 6:43Speaker 1: So moving beyond individual instances, how do we connect these
- 6:46Speaker 1: cloud components. What's the simplest way? VPC peering.
- 6:50Speaker 2: Yeah, VPC peering is often the starting point. It creates
- 6:53Speaker 2: a direct private connection between two vpcs using aws's backbone.
- 6:58Speaker 2: It's pretty straightforward to set up. And actually there aren't
- 7:01Speaker 2: explicit throughput limits imposed by the peering connection itself, beyond
- 7:05Speaker 2: instance or other limits.
- 7:07Speaker 1: Sounds good, but there have to be catches.
- 7:09Speaker 2: Right, Oh, definitely key considerations. First, it's nontransitive, meaning if
- 7:13Speaker 2: VPCA is peered with VPCB and VPCD is peered with VPCC,
- 7:19Speaker 2: VPCA cannot automatically talk to VPCC just by going through B.
- 7:23Speaker 2: There's no implicit routing pass through. You'd need a separate
- 7:26Speaker 2: peering connection directly between A and C. Ah.
- 7:29Speaker 1: Okay, so no hubbin spoke, just using peering exactly.
- 7:31Speaker 2: And the second big one, maybe even bigger. It absolutely
- 7:34Speaker 2: cannot be used if the vpcs have overlapping CADR ranges.
- 7:38Speaker 1: Right, If both vpcs use ten point zero point zero
- 7:41Speaker 1: point zero one six For example.
- 7:42Speaker 2: YEP peering just won't work. Routing across peered vpcs relies
- 7:46Speaker 2: on static routes. You have to manually add to the
- 7:48Speaker 2: route tables in both vpcs for traffic to flow back
- 7:51Speaker 2: and forth.
- 7:51Speaker 1: That IP overlap thing, that sounds like a potential nightmare.
- 7:55Speaker 1: You mentioned company mergers earlier. Imagine trying to connect two
- 7:59Speaker 1: company networks that both picked say ten point one hundred
- 8:02Speaker 1: point zero points zero one six independently peering is out?
- 8:05Speaker 1: Is there any way to make workloads with overlapping IPS talk?
- 8:08Speaker 2: You're right, it's a huge challenge in mergers or large
- 8:11Speaker 2: organizations VPC peering it's a wall there. There is a solution,
- 8:15Speaker 2: though it's not perfect. Yeah, using private net gateways.
- 8:18Speaker 1: Not gateways, but usually those are forgetting out to the internet.
- 8:21Speaker 2: Correct, those are public net gateways, but you can also
- 8:23Speaker 2: set up private net gateways. They allow workloads in one
- 8:27Speaker 2: DPC to initiate connections to workloads in another VPC, even
- 8:31Speaker 2: if they have overlapping IPS, because the neat gateway handles
- 8:34Speaker 2: the address translation on the way out.
- 8:36Speaker 1: Ah, clever, but you said initiate.
- 8:39Speaker 2: Yeah, that's the caveat. The communication generally have to be
- 8:41Speaker 2: initiated from the side using the neat gateway. It's not
- 8:45Speaker 2: a truly transparent bidirectional connection like peering would be if
- 8:48Speaker 2: the ips didn't overlap. Solves a specific problem, but it's
- 8:52Speaker 2: not a universal fix for overlapping CIDRs.
- 8:55Speaker 1: Okay, so peering is simple, but limited, especially by transitivity
- 8:58Speaker 1: and IP overlap. How did AS addressed the need for larger,
- 9:01Speaker 1: more complex, maybe hub and spoke networks in the cloud.
- 9:04Speaker 2: Well, the community first came up with solutions like the
- 9:07Speaker 2: Transit VPC. This usually involves setting up dedicated EC two
- 9:10Speaker 2: instances running routing software, network virtual appliances or mvas in
- 9:15Speaker 2: the central VPC to act as a hub.
- 9:17Speaker 1: So building your own router in the cloud basically.
- 9:19Speaker 2: Pretty much it worked, But managing those mvas, worrying about
- 9:23Speaker 2: their scaling, high availability, it's complex. So AWS eventually released
- 9:28Speaker 2: a mandaged service to solve this much more elegantly, the
- 9:30Speaker 2: AWS Transit Gateway or TGW Transit Gateway.
- 9:34Speaker 1: Okay, how's that different.
- 9:35Speaker 2: TGW acts as a fully managed, highly scalable central cloud
- 9:39Speaker 2: router or hub. You attach your vpcs, your VPN connections,
- 9:43Speaker 2: your direct connections all to the TGW. It simplifies INNERVPC
- 9:47Speaker 2: connectivity massively and also makes hybrid networking connecting to on
- 9:51Speaker 2: premises much cleaner. It takes the routing burden off you
- 9:54Speaker 2: and puts it into a managed AWS service. A true
- 9:57Speaker 2: hub and spoke model becomes easy.
- 9:59Speaker 1: Got it? So TDW is the modern way for complex connectivity. Now,
- 10:04Speaker 1: speaking of hybrid, what about that dedicated link you mentioned,
- 10:07Speaker 1: Direct connect or DX. Why would someone go for DX
- 10:10Speaker 1: instead of just setting up a VPN over the Internet.
- 10:12Speaker 1: It seems like VPNs are pretty common.
- 10:13Speaker 2: They are common and often sufficient, but direct connect offers
- 10:17Speaker 2: several really critical advantages, especially for larger enterprises or sensitive workloads.
- 10:22Speaker 2: Like what First, Privacy and security DX provides a dedicated
- 10:26Speaker 2: private circuit. Your traffic isn't going over the public Internet,
- 10:29Speaker 2: so it can't be snooped on easily. Second, reliability, DX
- 10:34Speaker 2: comes with service level Agreements slas, promising certain levels of uptime.
- 10:38Speaker 2: The public Internet is inherently best effort.
- 10:40Speaker 1: Okay, so more secure, more reliable, and.
- 10:43Speaker 2: Third performance significantly higher bandwidth as possible. D X connections
- 10:48Speaker 2: come in one gbp's, ten gvps and now even one
- 10:51Speaker 2: hundred gbp's flavors, plus you generally get lower and more
- 10:55Speaker 2: consistent latency compared.
- 10:56Speaker 1: To the Internet one hundred gigs. Wow. And it's literally
- 10:59Speaker 1: a physical connection right like a cable.
- 11:02Speaker 2: Yes, Fundamentally you work with AWS or a partner to
- 11:05Speaker 2: get a physical cross connect cable run in a shared
- 11:07Speaker 2: data center, a direct connect location between your networking equipment
- 11:10Speaker 2: and aws's equipment. There's even a document involved, the Letter
- 11:13Speaker 2: of Authorization in Connecting Facility Assignment or LOACFA, that you
- 11:17Speaker 2: use to authorize the data center technicians to make that
- 11:20Speaker 2: physical link. It's a tangible piece of your cloud connection.
- 11:23Speaker 1: A physical manifestation of the cloud. Okay, that's cool. So
- 11:26Speaker 1: DX sounds robust. What if one link isn't enough bandwidth
- 11:30Speaker 1: or you need more redundancy, and how do you actually
- 11:33Speaker 1: get that physical pipe connected into your virtual network your.
- 11:36Speaker 2: Vpcs great questions for more bandwidth or redundancy. AWS offers
- 11:40Speaker 2: link aggregation groups or lags. This is pretty neat. It
- 11:44Speaker 2: lets you bundle multiple physical DX connections together, say for
- 11:48Speaker 2: one gbp's links, and treat them as a single logical
- 11:51Speaker 2: connection with combined bandwidth like four gbps. It simplifies management too.
- 11:55Speaker 1: Ah like bonding network interfaces.
- 11:57Speaker 2: Exactly like that, and to extend that physical connectivity into
- 12:00Speaker 2: your actual AWS resources, you use virtual interfaces or visifs.
- 12:05Speaker 2: Vifs essentially carve up that physical DX connection or LAG
- 12:09Speaker 2: into logical pathways using VLAN tagging standard A to two
- 12:12Speaker 2: point one qvland tags. This lets you run different types
- 12:15Speaker 2: of network traffic over the same physical.
- 12:17Speaker 1: Link, different type.
- 12:18Speaker 2: Yeah, we mainly distinguish between three types. Private vifs, which
- 12:21Speaker 2: are used to connect directly to your vpcs, usually via
- 12:24Speaker 2: a component called a virtual private gateway PGW or more
- 12:27Speaker 2: commonly now a transit gateway. Then there are public vifs,
- 12:31Speaker 2: which let you access public AWS services like S three
- 12:35Speaker 2: or EC two APIs over your private DX link bypassing
- 12:39Speaker 2: the Internet.
- 12:39Speaker 1: Okay, private for vpcs, public for AWS services. What's the third?
- 12:43Speaker 2: The third is the transit VIF. This one is specifically
- 12:46Speaker 2: designed to connect your direct connect link to a transit gateway.
- 12:49Speaker 1: Right for that hub and spoke model with TGW precisely.
- 12:53Speaker 2: And there's a crucial point here about transit, vis and TGW.
- 12:56Speaker 2: I've heard about something called hairpinning that can get really
- 12:59Speaker 2: expended if you're not careful.
- 13:01Speaker 1: Ah. Yes, hairpinning. You're absolutely right to bring that up.
- 13:03Speaker 1: It's a potentially very costly mistake. If you're using transit
- 13:07Speaker 1: gateway with direct connect, it's critical that you use a
- 13:09Speaker 1: single transit VIF per TGW connection to your on premises site.
- 13:14Speaker 2: Why just one, because if you have multiple or misconfigure routing,
- 13:17Speaker 2: you can end up with hair pinning. This is where
- 13:20Speaker 2: traffic comes in from your on prem network via DX,
- 13:23Speaker 2: goes to the TGW maybe needs to get to another VPC,
- 13:25Speaker 2: but instead of routing directly, the TGW rows it back
- 13:29Speaker 2: out the same DX connection towards your on prem router,
- 13:32Speaker 2: only for your router to send it immediately back into
- 13:34Speaker 2: AWS over DX again to reach the intended VPC.
- 13:37Speaker 1: So it makes a U turn back through your own network.
- 13:41Speaker 2: Exactly, a totally unnecessary round trip out of AWS and
- 13:44Speaker 2: back in. And since you pay for a data egress
- 13:47Speaker 2: from AWS, that double egress gets incredibly expensive really fast.
- 13:52Speaker 2: A single transit VIF for TGW connection point, along with
- 13:55Speaker 2: proper route propagation and filtering, prevents this costly detour.
- 13:59Speaker 1: Wow. Okay, definitely noted avoid the hairpin So last piece
- 14:03Speaker 1: on connectivity, what if you need your vpcs to talk
- 14:06Speaker 1: privately to services could be aws's owned services or maybe
- 14:09Speaker 1: third party sauce providers you use, but you don't want
- 14:13Speaker 1: to go out to the Internet, and you don't want
- 14:14Speaker 1: to route through net gateways if you can avoid it,
- 14:16Speaker 1: what's the play there?
- 14:17Speaker 2: That's the perfect use case for AWS private link private
- 14:20Speaker 2: LINKA private link uses a component called a VPC endpoint.
- 14:24Speaker 2: It essentially creates a secure private connection directly from your
- 14:28Speaker 2: VPC to the service. The service endpoint effectively gets a
- 14:32Speaker 2: private IP address within your vpc's address range, making the
- 14:36Speaker 2: external service appear as if it's running right there inside
- 14:39Speaker 2: your network.
- 14:40Speaker 1: Ah So no Internet gateway, no, not no public eyps
- 14:43Speaker 1: involved for that service connection.
- 14:45Speaker 2: Correct traffic stays entirely within the AWS network backbone. It
- 14:50Speaker 2: massively improves security by keeping sensitive data off the public Internet,
- 14:53Speaker 2: and it simplifies your network architecture because you don't need
- 14:57Speaker 2: complex firewall rules or net setups just to reach those
- 15:00Speaker 2: services privately. It's very powerful for secure service consumption.
- 15:03Speaker 1: Okay, that covers a lot of ground on how to
- 15:05Speaker 1: connect things, but even with the best designs, things go wrong.
- 15:08Speaker 1: Cloud networks, maybe even more than traditional ones, can have
- 15:11Speaker 1: these elusive problems. Because so much is abstracted. How do
- 15:14Speaker 1: you start peeling back those layers when inevitably something breaks.
- 15:18Speaker 1: Let's talk about potential problems first. What kind of things
- 15:21Speaker 1: typically bite you in cloud networking?
- 15:23Speaker 2: Oh, there's a whole list. We definitely see IP address
- 15:26Speaker 2: allocation issues pretty often, like a subnet just runs out
- 15:29Speaker 2: of available IPS, IP exhaustion, yeah, or worse, those overlapping
- 15:33Speaker 2: CIDR ranges we talked about causing weird routing conflicts. If
- 15:37Speaker 2: someone tries to connect things that shouldn't be connected, then
- 15:40Speaker 2: there are root scale limitations. AWS services have limits on
- 15:44Speaker 2: the number of routes they can handle. Exceed those and
- 15:47Speaker 2: routes might just disappear, or BGP sessions with your on
- 15:50Speaker 2: prem gear might tear down.
- 15:51Speaker 1: Okay, limits again. What else?
- 15:53Speaker 2: Packet size mismatches. This is a subtle one. Issues with
- 15:57Speaker 2: maximum transmission unit MTU or maximum segment size MSS can
- 16:02Speaker 2: cause fragmentation. This often doesn't look like a network down problem,
- 16:06Speaker 2: but it hits applications. You might see really slow file
- 16:09Speaker 2: transfers or some web apps timing out without obvious network errors.
- 16:13Speaker 1: Right because the network itself is passing packets just fragmented
- 16:16Speaker 1: ones the application struggles with exactly.
- 16:18Speaker 2: Then we have the hard limits we discussed band with
- 16:21Speaker 2: throughput limitations which are usually pretty core quotas, and those
- 16:24Speaker 2: tricky PPS limitations causing those silent packet drops that are
- 16:28Speaker 2: so hard to diagnose.
- 16:29Speaker 1: Still scary.
- 16:30Speaker 2: Yeah, and related to that just general packet loss, maybe
- 16:34Speaker 2: due to unreliable transit somewhere between regions, or maybe the
- 16:38Speaker 2: end hosts themselves are just overwhelmed and dropping packets. And finally,
- 16:42Speaker 2: never underestimate plain old security misconfiguration, a wrong rule in
- 16:47Speaker 2: a security group or more often a network Access control
- 16:51Speaker 2: list NaCl is a super frequent cause of it just
- 16:54Speaker 2: doesn't connect problems.
- 16:56Speaker 1: That's quite a list. Sounds like troubleshooting could be finding
- 16:59Speaker 1: a needle in a haystack. What tools does AWS actually
- 17:03Speaker 1: give you to get visibility to see inside this sometimes
- 17:07Speaker 1: opaque window.
- 17:08Speaker 2: Well, the courterstone of observability in AWS is definitely Amazon
- 17:11Speaker 2: cloud Watch.
- 17:12Speaker 1: Cloud Watch right, that's for metrics and logs for pretty
- 17:15Speaker 1: much everything exactly.
- 17:16Speaker 2: It's the central hub you need to understand its core components.
- 17:18Speaker 2: There are name spaces, which are basically containers for metrics
- 17:21Speaker 2: from a specific service like EC two or ELB. Then
- 17:25Speaker 2: the metrics themselves. Those are the actual time series data
- 17:27Speaker 2: points like CPU utilization or network in. Then you have dimensions,
- 17:31Speaker 2: which are key value pairs that help you filter in
- 17:34Speaker 2: group metrics like instant seed or autoscaling group name, and
- 17:38Speaker 2: finally periods which define the time interval over which the
- 17:42Speaker 2: data is aggregated, like one minute or five minutes. Cloud
- 17:45Speaker 2: Watch is your main dashboard for performance, health and setting alarms.
- 17:49Speaker 1: So cloud watch gives you the high level metrics. But
- 17:52Speaker 1: what about seeing the actual traffic flows, like which connections
- 17:56Speaker 1: are being allowed or denied. That sounds more like VPC
- 17:59Speaker 1: flow logs precisely.
- 18:01Speaker 2: VPC flowlugs give you metadata about the IP traffic flowing
- 18:04Speaker 2: through your VPC. They capture information for each flow like
- 18:08Speaker 2: source and destination, IP ports protocol, the number of packets
- 18:12Speaker 2: and bytes, and crucially, the forwarding decision made by the
- 18:15Speaker 2: VPC router, whether the traffic was accepted or rejected.
- 18:19Speaker 1: That accept traject status seems key for troubleshooting.
- 18:22Speaker 2: It is, but remember flow lugs are not full packet captures.
- 18:25Speaker 2: They don't show you the payload, but they give you
- 18:27Speaker 2: really valuable insight into network level decisions, and you can
- 18:30Speaker 2: even set up custom formats for flow logs now custom formats.
- 18:33Speaker 1: How would you use that?
- 18:34Speaker 2: Well, for instance, you could include TCP flags in your logs.
- 18:37Speaker 2: That might help you troubleshoot specific issues like TCP handshake problems.
- 18:43Speaker 2: Are you seeing syn packets but no syn ACKs back?
- 18:47Speaker 2: Things like that. It lets you tailor the logs to
- 18:49Speaker 2: the problem you're investigating.
- 18:51Speaker 1: That's handy. Now to make this concrete, the source material
- 18:55Speaker 1: had this Prailcats troubleshooting example. Can you walk us through that?
- 18:59Speaker 1: It seemed like a good illustration of using these tools systematically.
- 19:02Speaker 2: Yeah, the Trailcats examples classic. They had a website and
- 19:05Speaker 2: it was having these mysterious connectivity problems between two of
- 19:09Speaker 2: its back end servers. So the first thing they did
- 19:12Speaker 2: was enable VPT flow logs, but they did it at
- 19:15Speaker 2: the NI level for the servers involved.
- 19:17Speaker 1: Okay, looking right at the server's network interfaces, right, and.
- 19:20Speaker 2: Those logs showed nothing rejected all ec SPTT. So initial
- 19:24Speaker 2: thought might be, okay, the network's fine, must be an
- 19:26Speaker 2: application problem.
- 19:27Speaker 1: A dead end potentially exactly.
- 19:29Speaker 2: But they didn't stop there. They widened the scope. They
- 19:31Speaker 2: enabled flow logs, but this time at the subnet.
- 19:34Speaker 1: Level AH one level up from the instance NI YEP
- 19:37Speaker 1: and boom.
- 19:39Speaker 2: The subnet level logs immediately showed rejected traffic between those
- 19:42Speaker 2: two servers.
- 19:43Speaker 1: So what did that point to?
- 19:44Speaker 2: It pointed directly to a network Access control list or ANACL.
- 19:49Speaker 2: Because nacls operated at the subnet boundary, they were blocking
- 19:52Speaker 2: the traffic before it even got to the instance's E
- 19:55Speaker 2: and I. The ENI level logs never saw the rejected
- 19:58Speaker 2: packets because they never or reach the E ANDI.
- 20:01Speaker 1: That's a brilliant example of how changing your observation point
- 20:04Speaker 1: widening the scope is critical in cloud troubleshooting.
- 20:07Speaker 2: Absolutely, you have to look at the different layers.
- 20:09Speaker 1: Okay, so flow logs give metadata except reject But what
- 20:13Speaker 1: if you do need to see the actual packet contents,
- 20:16Speaker 1: like you suspect something weird in the payload or you
- 20:19Speaker 1: need deep protocol analysis. Is there an equivalent to plugging
- 20:22Speaker 1: in wire shark via a span port like in a
- 20:25Speaker 1: physical data center.
- 20:26Speaker 2: Yes, there is. That's VPC traffic mirroring. It essentially provides
- 20:30Speaker 2: that span port capability in the cloud.
- 20:32Speaker 1: Okay, how does it work?
- 20:33Speaker 2: It lets you capture network traffic from a specific source,
- 20:36Speaker 2: usually an EC two instances E and I and mirror
- 20:39Speaker 2: it send a copy to a designated target.
- 20:41Speaker 1: What kind of target?
- 20:42Speaker 2: The target could be another E and I, maybe on
- 20:45Speaker 2: an instance running wire shark or some security tool. Or
- 20:48Speaker 2: it could be a network load balancer or even a
- 20:51Speaker 2: gateway load balancer which might front a whole fleet of
- 20:54Speaker 2: monitoring appliances.
- 20:55Speaker 1: And you can control what traffic gets mirrored. You don't
- 20:58Speaker 1: want to flood your monitoring tool, right.
- 21:00Speaker 2: You use a filter which is basically an access control
- 21:02Speaker 2: list using the standard five tuple format source itis ip
- 21:07Speaker 2: port protocol to specify exactly which flows you want a mirror,
- 21:12Speaker 2: and the whole thing source target filter is tied together
- 21:15Speaker 2: in a session.
- 21:16Speaker 1: So Source E and I filter the traffic, send it
- 21:18Speaker 1: to a target for analysis exactly.
- 21:20Speaker 2: It's incredibly powerful for deep packet inspection, security threat analysis,
- 21:25Speaker 2: compliance monitoring, and just advanced troubleshooting where flow lugs aren't enough,
- 21:30Speaker 2: you get the full packet.
- 21:31Speaker 1: Got it? And just quickly you mentioned visibility for larger networks.
- 21:34Speaker 1: Transit Gateway Network Manager TGNM. What's its role?
- 21:37Speaker 2: Think of TGNM primarily as a unified dashboard and visualization tool,
- 21:42Speaker 2: especially if you have a complex network involving multiple transit gateways, vpcs,
- 21:47Speaker 2: VPNs direct connect maybe even reaching into different AWS regions
- 21:51Speaker 2: or connecting to on premises sites. TGNM helps you see
- 21:54Speaker 2: it all, so draws you a mapped pretty much. It
- 21:57Speaker 2: gives you a logical and often a geographical view of
- 22:00Speaker 2: your global network topology. You can register your on prem
- 22:03Speaker 2: devices and sights too. It helps with monitoring the health
- 22:06Speaker 2: and status of your TGW attachments and routes all in
- 22:10Speaker 2: one place. It brings that bird's eye view which is
- 22:13Speaker 2: vital as network scale.
- 22:15Speaker 1: Okay, that makes sense, essential for managing complexity. Now, let's
- 22:19Speaker 1: shift gears slightly, but stay related security. It's non negotiable. Obviously.
- 22:23Speaker 1: A TOBS talks about a layered approach to traffic control
- 22:26Speaker 1: right from the edge all the way down to the instance.
- 22:27Speaker 1: How does that layering start way out at the global edge.
- 22:30Speaker 2: Right before traffic even gets close to your VPC? AWS
- 22:34Speaker 2: offers protection. The first line is often AWS Shield. This
- 22:38Speaker 2: is primarily for a distributed denial of service or d
- 22:41Speaker 2: DO protection.
- 22:42Speaker 1: Shield just protection well.
- 22:43Speaker 2: Shield standard is automatically enabled and protects against common network
- 22:47Speaker 2: level DIDOS attacks, but Shield Advanced is a paid service
- 22:50Speaker 2: that gives you much more. Totion four seven Access to
- 22:52Speaker 2: aws's d DOOS Response Team DRT, detailed attack diagnostics and importantly,
- 22:58Speaker 2: economic protection. AWOS can help cover cost and CURD due
- 23:02Speaker 2: to d DOO sub driven spikes and usage on services
- 23:05Speaker 2: like cloud Front or load balancers.
- 23:07Speaker 1: Oh okay, insurance against DDOSE costs too. What else is
- 23:10Speaker 1: out at the edge?
- 23:11Speaker 2: Then you have ABUS WAFT the Web application firewall. This
- 23:14Speaker 2: operates at layer seven, the application layer. It helps protect
- 23:17Speaker 2: your web applications from common exploits like SEQL injection, cross
- 23:20Speaker 2: sided scripting, XSS file inclusion, things that target vulnerabilities in
- 23:25Speaker 2: your application code itself. You apply WAFT rules typically to
- 23:28Speaker 2: cloud Front distributions or application load balancers.
- 23:31Speaker 1: So shield handles the flood. Why handles the malicious application requests?
- 23:35Speaker 2: Got it? Now? Bringing that firewall capability inside your vpcs?
- 23:39Speaker 2: What about AWS Network Firewall? How does that work? AWS
- 23:43Speaker 2: Network Firewall is a managed stateful firewall service that you
- 23:47Speaker 2: deploy within your vpcs. It gives you fine grained control
- 23:51Speaker 2: over traffic flowing between subnets between vpcs or in and
- 23:54Speaker 2: out to the internet or on prem networks. You deploy
- 23:57Speaker 2: firewall endpoints into specific subnets.
- 24:01Speaker 1: And how do people typically design with it? The sources
- 24:04Speaker 1: mention different patterns.
- 24:05Speaker 2: Yeah, there are few common architectural patterns. One is the
- 24:07Speaker 2: distributed design. You put a network firewall end point in
- 24:11Speaker 2: basically every VPC that needs protection pros and cons pro
- 24:14Speaker 2: granular policy control per VPC. Potentially lower latency as traffic
- 24:18Speaker 2: doesn't have to leave the VPC for inspection. Con can
- 24:21Speaker 2: get expensive and complex to manage policies across many firewalls.
- 24:24Speaker 1: Okay, what's the alternative?
- 24:25Speaker 2: The centralized design? Here you create a dedicated security VPC
- 24:30Speaker 2: or inspection VPC. All traffic inner VPC, Internet ingresscress VPNDX
- 24:35Speaker 2: traffic gets routed through network firewall end points in this central.
- 24:39Speaker 1: VPC AH single choke point for inspection exactly.
- 24:43Speaker 2: Pro cost savings, fewer end points, centralized management and policy
- 24:47Speaker 2: enforcement condishing potentially adds latency as traffic has to detour
- 24:51Speaker 2: through the inspection VPC and that VPC becomes a critical dependency.
- 24:55Speaker 1: Makes sense any other patterns.
- 24:58Speaker 2: There's also often a combination design trying to get the
- 25:01Speaker 2: best of both worlds. Maybe you centralize inspection for east
- 25:04Speaker 2: west inner VPC traffic, but you distribute the firewalls for
- 25:07Speaker 2: Internet and gresscress traffic within each VPC to reduce latency
- 25:11Speaker 2: for external connections. It's about balancing cost, latency, and manageability.
- 25:16Speaker 1: Okay, choices depending on your needs. Now let's drill down
- 25:19Speaker 1: to the absolute fundamentals inside of VPC. Remind us again
- 25:23Speaker 1: about security groups sgs versus network access control lists and acls.
- 25:28Speaker 1: They both filter traffic. But how are they different and
- 25:31Speaker 1: where do people get tripped up?
- 25:32Speaker 2: This is super important and yeah, confusion here causes a
- 25:35Speaker 2: lot of issues. Okay, security groups or sg's think of
- 25:38Speaker 2: them as stateful firewalls operating at the instance level, really
- 25:41Speaker 2: the e NI level.
- 25:42Speaker 1: Stateful meaning stateful.
- 25:44Speaker 2: Means if you allow an outbound connection from your instance,
- 25:47Speaker 2: say on part eighty, the SG automatically allows the return
- 25:51Speaker 2: traffic back to the instance for that specific connection without
- 25:54Speaker 2: needing a separate inbound rule. It understands the connection state.
- 25:58Speaker 2: Also with sgs, the order of the rules as matter.
- 26:00Speaker 2: All allow rules are evaluated, and importantly, sg's only support
- 26:05Speaker 2: allow rules. There's an implicit deny at the end.
- 26:08Speaker 1: Okay, stateful instance level allow rules only order doesn't matter.
- 26:12Speaker 1: What about nacls.
- 26:14Speaker 2: Network Access control lists or nacls. These are stateless firewalls
- 26:18Speaker 2: operating at the subnet.
- 26:19Speaker 1: Level stateless meaning stateless.
- 26:20Speaker 2: Means they don't track connection state. If you allow outbound
- 26:24Speaker 2: traffic on port eighty, you must also have an explicit
- 26:26Speaker 2: inbound rule allowing traffic back on the ephemeral ports typically
- 26:30Speaker 2: high numbered ports. For the response to get through, you
- 26:32Speaker 2: need rules for both directions. Ah more work YEP and
- 26:36Speaker 2: NEACL rules are processed in order, from the lowest numbered
- 26:39Speaker 2: rule to the highest. The first rule that matches the
- 26:42Speaker 2: traffic is applied, and that's it. Crucially, nacls support both
- 26:46Speaker 2: allow and DNY rules, so you can create explicit blocks.
- 26:50Speaker 2: There's also an implicit deny at the very end rule number.
- 26:53Speaker 1: Asterisk okay, stateless subnet level order matters allow and deny rules.
- 26:59Speaker 1: So where's the common mistake?
- 27:01Speaker 2: Often people forget the stateless nature of nacls and don't
- 27:04Speaker 2: add the return traffic rules, or they mess up the
- 27:07Speaker 2: rule order, having a d and an Y rule that
- 27:09Speaker 2: accidentally blocks traffic they intended to allow because it comes
- 27:12Speaker 2: before the allow rule. Because they're at the subnet level.
- 27:15Speaker 2: A misconfigured NaCl can cut off a whole group of instances.
- 27:18Speaker 1: Got it. Be careful with nacls now. This race is
- 27:21Speaker 1: an important question. Load balancers. We usually think of them
- 27:24Speaker 1: for performance and availability, but how do they fit into
- 27:27Speaker 1: the security and traffic flow picture, especially the different types?
- 27:30Speaker 2: Absolutely critical role for both. Okay, let's bring it down first.
- 27:33Speaker 2: Network load balancers or nlbs. These operate down at layer
- 27:37Speaker 2: thirty four the network and transport layers. They look at
- 27:40Speaker 2: IP addresses and ports, typically using a five touple hash
- 27:44Speaker 2: source it st IP sources support protocol to distribute connections.
- 27:48Speaker 1: Okay, lower level, what's key about them? For security?
- 27:51Speaker 2: A key feature of nlbs is that they preserve the
- 27:54Speaker 2: original client source IP address when forwarding traffic to the
- 27:57Speaker 2: back end instances. This is super sportant for logging, security analysis,
- 28:01Speaker 2: or applying IP based rules on the back end. Also,
- 28:04Speaker 2: because they operate at layer four, they're often used for
- 28:07Speaker 2: inserting third party network virtual appliances and vas like firewalls
- 28:11Speaker 2: or intrusion detection systems into the traffic path non disruptively.
- 28:14Speaker 1: Ok. NLB layer four keeps client IP good for mvas.
- 28:18Speaker 1: What about albs.
- 28:19Speaker 2: Application load balancers or albs? These are smarter, operating up
- 28:23Speaker 2: at layer seven the application layer hgtph GTPs. They can
- 28:27Speaker 2: make routing decisions based on things like the requested urlpath
- 28:30Speaker 2: like images are appy hosttheaders, gray string parameters, even HTTT.
- 28:34Speaker 1: Method much more granular routing.
- 28:36Speaker 2: Exactly, and a big function of alb's is TLS termination.
- 28:39Speaker 2: They handle the HTTPS decryption encryption, offloading that compute intensive
- 28:43Speaker 2: work from your back end web servers.
- 28:45Speaker 1: That sounds good for performance any security implications.
- 28:48Speaker 2: Yes, while offloading TLS is efficient, it does mean the
- 28:51Speaker 2: connection between the ALB and your back end instance is
- 28:54Speaker 2: typically unencrypted HTTP unless you specifically configure re Encryptionechnically, it
- 29:00Speaker 2: breaks into end encryption within your VPC boundary. There Also,
- 29:04Speaker 2: because the ALB terminates the connection, the back end instance
- 29:07Speaker 2: doesn't see the original client IP directly. It sees the
- 29:10Speaker 2: alb's IP.
- 29:11Speaker 1: Ah, so you lose the client IP.
- 29:14Speaker 2: You do unless the ALB adds the x forwarded four
- 29:17Speaker 2: HTTP header and your applications configure to read and trust
- 29:20Speaker 2: that header to find the original client IP. Many web
- 29:22Speaker 2: frameworks do this, but it's an extra step.
- 29:24Speaker 1: Okay. ALB layer seven smart routing TLS termination with caveats
- 29:28Speaker 1: needs x foard the four or for client IP. What's
- 29:30Speaker 1: the third type GLB.
- 29:32Speaker 2: Keitway load balancers or glbs. These are a bit different
- 29:36Speaker 2: They are specialized built on NLB technology, but designed specifically
- 29:41Speaker 2: for simplified service insertion of MVAS, particularly security appliance is
- 29:45Speaker 2: like firewalls, IPS, sides, et cetera.
- 29:47Speaker 1: How do they simplify it Compared to using an NLB
- 29:50Speaker 1: for MVAS.
- 29:51Speaker 2: Glb's use a special tunneling protocol called genety encapsulation. Essentially,
- 29:56Speaker 2: when traffic hits the GLB, it wraps the original network
- 29:59Speaker 2: packet in another packet, the genev packet, and sends it
- 30:02Speaker 2: to one of the registered security appliances.
- 30:05Speaker 1: NVA's okay, it puts the packet in a package.
- 30:07Speaker 2: Why because this preserves the entire original packet headers and
- 30:10Speaker 2: all the security appliance can inspect it fully see the
- 30:12Speaker 2: original source and destination everything. Then, after inspection, the appliance
- 30:16Speaker 2: sends the potentially modified or approved back it back to
- 30:20Speaker 2: the GLB. Still encapsulated, the GLB unwraps it and sends
- 30:23Speaker 2: the original packet on its way.
- 30:24Speaker 1: Ah, so the NVA doesn't even need to know about
- 30:27Speaker 1: the network routing. It's exactly the GLB handles all the
- 30:30Speaker 1: routing complexities. The NVA just receives packets, inspects them, and
- 30:34Speaker 1: sends them back It makes the security appliance fleet function
- 30:37Speaker 1: like a transparent bump in the wire, super elegant for
- 30:40Speaker 1: deploying security services scalably.
- 30:42Speaker 2: That is clever is shifting from network traffic security to
- 30:45Speaker 2: DNS security equally vital. How does AWS Root fifty three
- 30:50Speaker 2: help lock down DNS both for the Internet and internally?
- 30:53Speaker 1: Where fifty three is aws's DNS service and it plays
- 30:56Speaker 1: a big role. First, you have public hosted zones. These
- 30:59Speaker 1: manage DNS records for your Internet routable domain names like
- 31:02Speaker 1: your company's website. Standard DNS stuff, right. But then you
- 31:05Speaker 1: also have private hosted zones. These are associated with one
- 31:08Speaker 1: or more of your vpcs and manage DNS records for
- 31:11Speaker 1: internal domain names that should only be resolvable from within
- 31:13Speaker 1: those vpcs, like Service.
- 31:15Speaker 2: Dot, Internal dot Corp exactly. This allows you to have
- 31:19Speaker 2: a split DNS or split horizon DNS architecture. Your internal
- 31:23Speaker 2: servers or instances within the VPC can resolve both internal
- 31:27Speaker 2: names from the private hosted zone and external Internet names
- 31:31Speaker 2: via standard DNS resolution. It keeps your internal namespace private
- 31:35Speaker 2: and secure, preventing internal host names or service names from
- 31:38Speaker 2: leaking or being resolved externally.
- 31:41Speaker 1: That makes sense for separating internal and external views. What
- 31:44Speaker 1: about those advanced Route fifty three routing policies The sources
- 31:47Speaker 1: listed simple failover, latency weighted, geolocation. Can you quickly unpack
- 31:53Speaker 1: what each is for.
- 31:54Speaker 2: Sure offer powerful traffic managing capabilities. Simple is just basic
- 31:58Speaker 2: round robin DNS no health check standard failover is for
- 32:01Speaker 2: active passive setups. You define a primary record and a
- 32:04Speaker 2: secondary record. If the primary resource becomes unhealthy based on
- 32:08Speaker 2: Root fifty three health checks, Root fifty three automatically starts
- 32:11Speaker 2: returning the secondary records. IP think the old Twitter failwaale.
- 32:14Speaker 1: Page okay, high availability YEP.
- 32:16Speaker 2: Latency based routing is cool. Root fifty three has data
- 32:19Speaker 2: on network latency from different parts of the Internet to
- 32:22Speaker 2: AWS regions. It directs users to the AWSN point like
- 32:26Speaker 2: a load balancer or instance in a specific region that
- 32:29Speaker 2: provides the lowest latency for.
- 32:30Speaker 1: Them, directing users to the closest healthy server latency wise.
- 32:34Speaker 2: Exactly weighted routing lets you distribute traffic across multiple resources
- 32:38Speaker 2: based on percentages you define. You could send ninety percent
- 32:41Speaker 2: of traffic to your stable version and ten percent to
- 32:43Speaker 2: a new version for EV testing, or just balance load
- 32:46Speaker 2: across endpoints. Unevenly if needed, useful for rollouts very and
- 32:51Speaker 2: geolocation routing lets you wrap traffic based on the user's
- 32:53Speaker 2: actual geographic location, like sending all European users to your
- 32:57Speaker 2: Frankfort Regent servers and all US users to your Virginia
- 33:00Speaker 2: region servers. Good for localization or data sovereignty.
- 33:03Speaker 1: Got it? And finally, what about DNSEC? What problem does
- 33:07Speaker 1: that solve? Is it about encryption?
- 33:09Speaker 2: Good question. Dns sec is not about encrypting DNS queries
- 33:13Speaker 2: or responses. Its purpose is authentication and integrity. It uses
- 33:17Speaker 2: digital signatures and public key cryptography to allow a DNS
- 33:21Speaker 2: resolver like your ISP's resolver or a public onelike Google's,
- 33:25Speaker 2: to verify that the DNS records that receive actually came
- 33:28Speaker 2: from the authoritative DNS server and haven't been tampered with
- 33:31Speaker 2: in transit.
- 33:32Speaker 1: So it prevents DNS spoofing or cash poisoning exactly.
- 33:35Speaker 2: It builds a chain of trust from the root DNAs
- 33:37Speaker 2: servers down to your domain, ensuring the IP address you
- 33:40Speaker 2: get back for a host name is authentic. It's about trust,
- 33:43Speaker 2: not confidentiality.
- 33:44Speaker 1: Okay, authentication and integrity for DNS makes sense. Yeah, now
- 33:48Speaker 1: let's zoom out Again, we've talked about the components, the connections,
- 33:51Speaker 1: the security. How is all this modern cloud infrastructure actually
- 33:54Speaker 1: built and managed? Especially at scale? This brings us to
- 33:57Speaker 1: ideas like DevOps and crucially in structure as code or IAC.
- 34:02Speaker 1: What's the core philosophy here right?
- 34:04Speaker 2: DevOps broadly is about breaking down silos between development and
- 34:07Speaker 2: operations teams, focusing on automation, collaboration, and faster, more reliable
- 34:13Speaker 2: software delivery. Infrastructure is code or IAC is a key
- 34:17Speaker 2: practice enabling DevOps for infrastructure?
- 34:20Speaker 1: And what's the central idea of IIC?
- 34:22Speaker 2: The core idea is managing and provisioning your infrastructure, your servers, networks, databases,
- 34:28Speaker 2: load balancers, everything through machine readable definition files using code
- 34:33Speaker 2: rather than manual configuration or clicking around in a console.
- 34:36Speaker 2: It's about making your infrastructure ephemeral andmaleable.
- 34:39Speaker 1: Ephemeral and malleable meaning easily created, destroyed, change precisely.
- 34:44Speaker 2: You treat your infrastructure definitions like application code, and this
- 34:47Speaker 2: leads to arguably the most game changing insight of IIC,
- 34:51Speaker 2: the concept of immutability.
- 34:52Speaker 1: Immutability that sounds important, What does that actually mean when
- 34:55Speaker 1: you're managing cloud resources? Why is it such a big deal?
- 34:58Speaker 1: For reliability and speed.
- 35:00Speaker 2: Fundamental paradigm shift immutability means that once infrastructure is deployed,
- 35:04Speaker 2: say a server or a cluster, you don't make changes
- 35:08Speaker 2: to it directly. You don't log in and patch it
- 35:10Speaker 2: or reconfigure it.
- 35:11Speaker 1: In place, So no patching. How does that work?
- 35:15Speaker 2: If you need to update or change something, apply a patch,
- 35:18Speaker 2: deploy new code, change it, config you don't modify the
- 35:22Speaker 2: existing infrastructure. Instead, you build a new instance or set
- 35:26Speaker 2: of instances from your updated IAC definition which includes the
- 35:30Speaker 2: patch or new code. Deploy the new set, test it,
- 35:33Speaker 2: switch traffic over, and then you simply destroy the old
- 35:36Speaker 2: unchanged infrastructure.
- 35:38Speaker 1: The whole cattle not pets analogy exactly.
- 35:40Speaker 2: You don't nurse sick pet servers back to health. You
- 35:43Speaker 2: replace the disposable cattle units. Yeah. You treat your infrastructure
- 35:46Speaker 2: definitions like source code, store them in version control depositories
- 35:50Speaker 2: like get, use declarative specification documents like YAML for cloud formation,
- 35:55Speaker 2: and rely on automation to deploy consistently.
- 35:57Speaker 1: And the benefit isn't just avoiding manual work.
- 36:00Speaker 2: No, the core benefit isn't primarily cost savings, although that
- 36:02Speaker 2: can happen. It's about speed, consistency, and safety Deployments become
- 36:07Speaker 2: repeatable and predictable. Rollbacks are easier. Just redeploy the previous
- 36:11Speaker 2: version of the code. Drift between environments is minimized. If
- 36:15Speaker 2: there's a problem, you don't spend hours troubleshooting a potentially
- 36:18Speaker 2: broken server. You just redeploy a known good state from
- 36:21Speaker 2: code in minutes. It fundamentally changes how you approach operations.
- 36:25Speaker 1: That's a really powerful concept. Okay, So focusing on aws's
- 36:29Speaker 1: main iac tool, AWS CloudFormation, how do its templates enable
- 36:34Speaker 1: this immutable approach.
- 36:36Speaker 2: CloudFormation templates are where you define your AWS resources declaratively,
- 36:40Speaker 2: usually in Yamel or JSON. You state what you want
- 36:42Speaker 2: like I want a VPC with this cid R block,
- 36:44Speaker 2: I want two subnets inside it. I want an EC
- 36:47Speaker 2: two instance with this AMI and one subnet. You don't
- 36:49Speaker 2: specify the how like the API calls to make. CloudFormation
- 36:53Speaker 2: figures that out.
- 36:53Speaker 1: So you declare the desired state exactly.
- 36:56Speaker 2: And the power comes from features within the templates. You
- 36:59Speaker 2: have parameters which let you pass in values ad deployment time,
- 37:02Speaker 2: like the vpc, CIDR block, or the instance type or
- 37:07Speaker 2: maybe an environment name devastating PROD. This makes templates reusable.
- 37:11Speaker 1: Okay, parameters for reusability, what else.
- 37:13Speaker 2: And you have intrinsic functions. These are special functions you
- 37:16Speaker 2: can use right inside the template code, things like differ
- 37:19Speaker 2: lets you reference the ID or attribute of another resource
- 37:22Speaker 2: defined in the same template, like getting the idea of
- 37:25Speaker 2: the VPC to create a subnet in it, get at
- 37:28Speaker 2: fetches an attribute. Sitor can calculate subnet CIDR blocks based
- 37:32Speaker 2: on a main VPC block. Select can pick an item
- 37:35Speaker 2: from a list, maybe an availability zone. These functions allow
- 37:38Speaker 2: you to create dynamic, interconnected infrastructure definitions without hard coding everything.
- 37:42Speaker 1: So templates define the what parameters make them reusable, and
- 37:45Speaker 1: functions add dynamic capabilities.
- 37:47Speaker 2: Got it and quickly. For developers who might prefer Python
- 37:51Speaker 2: or Java overwriting YAML, what's the AWS Cloud Development Kit
- 37:56Speaker 2: or CDK. CDK is another way to do iac On
- 37:59Speaker 2: aws IT lists, developers define their cloud infrastructure using familiar
- 38:03Speaker 2: programming languages Python, Typescript, Java, c shark Go. You write
- 38:08Speaker 2: code using CDK constructs, which represent AWUS resources.
- 38:13Speaker 1: So you write Python code to define a VPC YEP, and.
- 38:17Speaker 2: Then when you run the CDK toolkit, it synthesizes your
- 38:20Speaker 2: Python code or whatever language you used into a standard
- 38:23Speaker 2: AWS CloudFormation template.
- 38:25Speaker 1: Ah, so it generates the CloudFormation for you exactly.
- 38:29Speaker 2: The benefit is you can use the power of your
- 38:31Speaker 2: programming language loops, conditionals, object oriented programming, existing libraries, code
- 38:36Speaker 2: completion in your ide to define infrastructure. You can create
- 38:39Speaker 2: reusable components and patterns more easily than with raw CloudFormation templates.
- 38:43Speaker 2: Sometimes it's particularly good for complex applications or for teams
- 38:47Speaker 2: already comfortable with those programming languages, allowing them to define
- 38:51Speaker 2: both their app and its infrastructure in the same language ecosystem.
- 38:54Speaker 1: Very cool, leveraging programming skills for infrastructure. Okay, huh, that
- 38:59Speaker 1: was quite the journey. So there you have it, a
- 39:01Speaker 1: real deep dive pulling back the layers on AWS networking.
- 39:04Speaker 1: We went from the basic virtual network cards, the e
- 39:07Speaker 1: andi's and wrestled with the hyperplane's.
- 39:10Speaker 2: Hidden limits of those PPS limits right.
- 39:12Speaker 1: Then we looked at all the ways to connect things peering, TGW,
- 39:15Speaker 1: direct connect, and the security layers from shield and wef
- 39:19Speaker 1: down to sgs nacls, plus the nuances of different load balancers,
- 39:24Speaker 1: and finally how modern teams actually build and manage all
- 39:27Speaker 1: this using infrastructure as code.
- 39:30Speaker 2: It really shows how AWS provides this incredibly rich toolkit
- 39:34Speaker 2: right for control, for monitoring, for automation. It turns what
- 39:37Speaker 2: could be overwhelming complexity into manageable patterns, which is what
- 39:41Speaker 2: ultimately enables all that innovation we see happening in the cloud. Absolutely,
- 39:44Speaker 2: and I think understanding these layers, you know, from the
- 39:47Speaker 2: foundational e andi's the strategic use of transit gateways, all
- 39:51Speaker 2: the way to that philosophical shift towards the infrastructure as code,
- 39:54Speaker 2: it means you're not just like using cloud services passively,
- 39:57Speaker 2: You're truly starting to harness their underlying power.
- 40:00Speaker 1: Yeah, understanding the physics behind the magic exactly.
- 40:03Speaker 2: It encourages us, encourages you listening to look beyond the
- 40:07Speaker 2: console surface and constantly ask, Okay, what hidden network physics
- 40:12Speaker 2: might be a play here, and how can we leverage
- 40:14Speaker 2: that or maybe mitigate its effects to build something even better,
- 40:17Speaker 2: even more innovative.
- 40:19Speaker 1: That is a powerful thought to leave everyone with, isn't it?
- 40:21Speaker 1: How can you leverage or mitigate those hidden physics? Fantastic? Well,
- 40:26Speaker 1: thank you for joining us on this deep dive. Until
- 40:28Speaker 1: next time, keep that curiosity well fed.