Latest / Talk Python To Me / #559: 12 Things You Should (and Shouldn't) Do in AWS
Transcript
- 0:00Michael Kennedy: Your site is down. It's 3 a.m. Is it a bug, a bill, or a breach? You can't tell yet, and everyone is
- 0:06Michael Kennedy: watching you find out. Matt Lea has spent 15 years being the person companies call when an outage is
- 0:11Michael Kennedy: costing them real money per hour. And his sole argument is that everything you want in that
- 0:15Michael Kennedy: moment gets decided months earlier, on ordinary afternoons, when someone chose the convenient
- 0:21Michael Kennedy: thing. We walk through his top 12 do's and don'ts for AWS. Infrastructure as code, IAM roles instead
- 0:27Michael Kennedy: of access keys, private subnets, no wildcards, no public buckets. And I push on which of them
- 0:32Michael Kennedy: actually matters if you're one person on a small VPS self-hosting. Then we get to cloud war games
- 0:39Michael Kennedy: where Matt breaks things on purpose so your team's first real incident isn't their first incident.
- 0:45Michael Kennedy: Let's get into it. This is Talk Python To Me episode 559, recorded July 31st, 2026.
- 1:08Michael Kennedy: Welcome to Talk Python To Me, the number one Python podcast for developers and data scientists.
- 1:13Michael Kennedy: This is your host, Michael Kennedy. I'm a PSF fellow who's been coding for over 25 years.
- 1:19Michael Kennedy: Let's connect on social media.
- 1:21Michael Kennedy: You'll find me and Talk Python on Mastodon, Bluesky, and X.
- 1:24Michael Kennedy: The social links are all in your show notes.
- 1:27Michael Kennedy: You can find over 10 years of past episodes at talkpython.fm.
- 1:30Michael Kennedy: And if you want to be part of the show, you can join our recording live streams.
- 1:34Michael Kennedy: That's right.
- 1:35Michael Kennedy: We live stream the raw uncut version of each episode on YouTube.
- 1:38Michael Kennedy: Just visit talkpython.fm/youtube to see the schedule of upcoming events.
- 1:43Michael Kennedy: Be sure to subscribe there and press the bell so you'll get notified anytime we're recording.
- 1:47Michael Kennedy: This episode is brought to you by Sentry.
- 1:50Michael Kennedy: Don't let those errors go unnoticed.
- 1:51Michael Kennedy: Use Sentry like we do here at Talk Python.
- 1:53Michael Kennedy: Sign up at talkpython.fm/sentry.
- 1:57Michael Kennedy: And it's also brought to you by Talk Python Courses.
- 2:00Michael Kennedy: Course completion certificates are now live.
- 2:03Michael Kennedy: If you finished a course, there's a certificate waiting for you on your account page right now.
- 2:07Michael Kennedy: Download it as a PDF or add it to your LinkedIn profile with one click
- 2:12Michael Kennedy: under Licenses and Certifications.
- 2:14Michael Kennedy: Same section as your formal degrees.
- 2:16Michael Kennedy: Visit training.talkpython.fm/account to see what you've already earned.
- 2:21Michael Kennedy: Matt, welcome to Talk Python To Me. I'm here for some scary clouds and good clouds. Let's talk about it, huh?
- 2:27Matt Lea: Yeah, sounds good.
- 2:28Michael Kennedy: Yeah, the cloud is easy and fun until things go wrong and then it's often in a panic.
- 2:34Michael Kennedy: And yeah, we're going to talk about that in two acts, I suppose.
- 2:37Michael Kennedy: We're going to talk about kind of the do's and don'ts of cloud, specifically AWS.
- 2:41Michael Kennedy: But I imagine a lot of these have analogies to Azure and GCP and others.
- 2:46Michael Kennedy: Then we're going to talk specifically about your Cloud War Games, which I think is really fun.
- 2:50Michael Kennedy: You're happy to do it.
- 2:51Michael Kennedy: Right on. Before we do any of those things, give yourself a quick introduction. Tell the audience who you are.
- 2:56Matt Lea: Sure. I'm Matt Lea. That's LEA. I run Schematical.com.
- 3:00Matt Lea: It's a small consulting tech agency that specializes in AWS.
- 3:05Matt Lea: Our tagline is we help CTOs running on AWS sleep at night.
- 3:09Matt Lea: So when we do that, we also have cloudwargames.com, which is a place where we do simulated outages and responses for anybody that's looking to learn or train their team to better handle the bump in the night, the cyber attack, etc.
- 3:24Michael Kennedy: You know, do you have a section on where you get the email?
- 3:27Michael Kennedy: Hi, I'm a security researcher.
- 3:29Michael Kennedy: Where do I report issues I found?
- 3:32Michael Kennedy: That'll get your attention.
- 3:33Matt Lea: I was actually just going back and forth with some security researchers on the vulnerability that allowed the OpenAI to escape.
- 3:43Matt Lea: So I'm going to try and replicate that one, see if I can make something happen there.
- 3:48Michael Kennedy: Oh, that's awesome. Yeah, yeah, yeah.
- 3:50Michael Kennedy: For people who don't know, one of the OpenAI bots got loose and hacked Hugging Face.
- 3:53Michael Kennedy: I don't know what its intent was. I didn't follow it closely enough.
- 3:56Michael Kennedy: But yeah, that's what you're referring to, right?
- 3:58Matt Lea: From what I hear, it was trying to get the answers to the test it was taking.
- 4:02Matt Lea: So basically it knew that the data set to pass its test was on Huggy Face.
- 4:06Matt Lea: So cracked into it and just said, ah, interesting.
- 4:09Matt Lea: You did so much extra work to be lazy.
- 4:11Michael Kennedy: What would be the most accurate way?
- 4:13Michael Kennedy: Now, if I could just get the answers.
- 4:16Michael Kennedy: Yeah.
- 4:16Michael Kennedy: Morals aside.
- 4:18Matt Lea: Yeah.
- 4:18Matt Lea: At least that's my understanding of it.
- 4:20Michael Kennedy: Not only is it 100% accurate, it's really fast now when it takes the test.
- 4:24Michael Kennedy: Yeah.
- 4:25Michael Kennedy: Crazy.
- 4:26Michael Kennedy: Okay.
- 4:26Michael Kennedy: Yeah.
- 4:26Michael Kennedy: I'm really excited about this, this Cloud War Games thing.
- 4:29Michael Kennedy: because I've been on the receiving end of waking up to an outage for various reasons.
- 4:34Michael Kennedy: And honestly, I think my employments and my applications have gotten better because of it.
- 4:39Michael Kennedy: But in the moment, I also aged faster than normal.
- 4:42Matt Lea: Oh, yeah.
- 4:43Matt Lea: When you get the C-suite, yeah, it gets intense,
- 4:46Matt Lea: which is, again, why I tried to create Cloud War Games
- 4:48Matt Lea: to try and simulate that experience and inoculate people from the stress.
- 4:52Michael Kennedy: Yeah, I love it.
- 4:53Matt Lea: Like I said, it super resonated with me.
- 4:55Michael Kennedy: You also authored a course, Zero to Hero, on AWS security.
- 4:58Matt Lea: Yep, an animated guide security in the cloud.
- 5:00Matt Lea: So if you like pixel art and you want to learn about AWS security,
- 5:04Matt Lea: I've got my isometric pixel art there that I demonstrate, you know,
- 5:08Matt Lea: and animate network maps and show how it all works.
- 5:11Michael Kennedy: You've got some really – you also do cartoons.
- 5:13Michael Kennedy: These are really fun.
- 5:15Michael Kennedy: I like the Black Friday one.
- 5:17Michael Kennedy: I like Black Friday stories.
- 5:19Michael Kennedy: This Black Friday sale will make or break us.
- 5:21Michael Kennedy: Are we really ready on strike?
- 5:22Michael Kennedy: Oh, I'm sure we'll be fine.
- 5:24Michael Kennedy: Great.
- 5:24Michael Kennedy: I thought we'll sell this on then.
- 5:25Matt Lea: Yep.
- 5:27Matt Lea: So as you know, that's a huge retail day.
- 5:29Matt Lea: So if you've got an e-commerce client, maybe it's their first year doing it or the first time they've hit it big.
- 5:35Matt Lea: And maybe like, oh, we'll be fine.
- 5:36Matt Lea: It's like, no, you probably should provision up.
- 5:39Matt Lea: So each year with my clients, we check in and make sure leading up to that that we've got everything provisioned accordingly and plans for if it needs extra, if we've got to double in scale or something like that.
- 5:48Michael Kennedy: Yeah.
- 5:49Michael Kennedy: I've never had anything go down on Black Friday, but of course, they get quite a bit of traffic.
- 5:53Michael Kennedy: And certainly I've almost had it go down.
- 5:56Michael Kennedy: And it's often not for the reason you expect.
- 5:59Michael Kennedy: You're like, really?
- 6:00Michael Kennedy: That's the thing?
- 6:01Michael Kennedy: That was the weakest link?
- 6:02Michael Kennedy: I had no idea.
- 6:03Michael Kennedy: Yeah.
- 6:04Michael Kennedy: One time it was, I had extra large JavaScript file that was being served and gzipped by
- 6:10Michael Kennedy: Nginx.
- 6:11Michael Kennedy: And that almost took down the site.
- 6:12Michael Kennedy: Really?
- 6:13Michael Kennedy: Okay.
- 6:13Michael Kennedy: Oh, well.
- 6:14Michael Kennedy: But yeah, that was a fun cartoon.
- 6:15Michael Kennedy: So how often do you do these cartoons?
- 6:17Michael Kennedy: How many you got?
- 6:18Matt Lea: I was doing them monthly at one point, but now it's more as it comes to me a little bit
- 6:24Matt Lea: more.
- 6:25Matt Lea: So we're, you know, but yeah, there's them.
- 6:28Matt Lea: I mean, there's 30, 40 of them or so.
- 6:31Matt Lea: Some of them have gotten on Reddit quite a few views.
- 6:33Matt Lea: Programmer humor, r slash programmer humor.
- 6:36Matt Lea: They like it there.
- 6:37Michael Kennedy: I am all here for r slash programming humor.
- 6:39Michael Kennedy: That place is hilarious.
- 6:40Michael Kennedy: Yeah.
- 6:41Michael Kennedy: Yeah.
- 6:42Michael Kennedy: Amazing.
- 6:42Michael Kennedy: Amazing.
- 6:43Michael Kennedy: All right.
- 6:43Michael Kennedy: Well, let's start by just talking about and like get a high level.
- 6:48Michael Kennedy: You know, people want to move to the cloud.
- 6:49Michael Kennedy: You know, what are some of the benefits that they see?
- 6:52Michael Kennedy: Like what are maybe some surprise issues that they run into?
- 6:56Michael Kennedy: I'm sure you've had this conversations with a lot of C-suites and dev leads and so on.
- 7:00Matt Lea: I'd say the complexity.
- 7:02Matt Lea: AWS, I think I did a post pretty recently, but AWS has a meeting simulator service now
- 7:07Matt Lea: where you can train yourself on how to take meetings.
- 7:10Matt Lea: And I'm like, that's too many services.
- 7:12Matt Lea: So probably the number one problem is the complexity.
- 7:15Matt Lea: People are like, oh my gosh, I don't understand this.
- 7:17Matt Lea: I understand what I'm getting billed for.
- 7:19Matt Lea: And if you can whittle it down to some core services that meet your needs and your goals,
- 7:24Matt Lea: then a huge amount of these services aren't even necessary.
- 7:27Matt Lea: There are services for robotics, which is great if you're in robotics,
- 7:30Matt Lea: but that's not something you really need to worry about if you're just an e-commerce platform.
- 7:33Matt Lea: So there's just so much, such a variety there.
- 7:36Matt Lea: So pick your tools and just get really good with the tools.
- 7:39Matt Lea: There's some basics that you got to use for everything, which we're going to go over in a minute.
- 7:43Michael Kennedy: Yeah.
- 7:43Michael Kennedy: One of my most recurring experiences with AWS is I open up the console.
- 7:48Michael Kennedy: I'm like, what is all of this?
- 7:50Michael Kennedy: What is this?
- 7:51Michael Kennedy: So you're suggesting that maybe trim that down a little
- 7:54Michael Kennedy: and just put the stuff that you really know
- 7:55Michael Kennedy: that you're going to need there?
- 7:56Matt Lea: Yeah, and we can go over kind of some of my core stacks there.
- 7:59Matt Lea: It depends if you want to be serverless or not serverless.
- 8:01Matt Lea: If you're just starting out,
- 8:02Matt Lea: you don't have a crazy amount of traffic.
- 8:04Matt Lea: I'd go serverless a lot of times.
- 8:06Matt Lea: It's real easy to set up, less to manage.
- 8:07Michael Kennedy: Okay, yeah.
- 8:08Michael Kennedy: What are some of the core ideas?
- 8:09Michael Kennedy: I mean, certainly Lambda sounds like that's in there.
- 8:13Michael Kennedy: Probably EC2, S3, what are we talking?
- 8:16Matt Lea: Lambda makes a great web server.
- 8:18Matt Lea: the API gateway plus Lambda.
- 8:20Matt Lea: So you have the serverless,
- 8:22Matt Lea: extremely cheap application layer right there.
- 8:25Matt Lea: So not a data layer,
- 8:26Matt Lea: but that's a great start to just connect those two together.
- 8:29Matt Lea: And if anybody wants,
- 8:32Matt Lea: these are my offer for free.
- 8:33Matt Lea: I've got them open source,
- 8:34Matt Lea: schematical.com slash free.
- 8:35Matt Lea: I have Terraform scripts that'll set this up.
- 8:38Matt Lea: So I don't know how chronologically ordered we want to go,
- 8:42Matt Lea: but I just jump it back a step.
- 8:45Matt Lea: Terraform or CloudFormation.
- 8:47Matt Lea: I highly recommend.
- 8:48Matt Lea: So if you're just getting into it, a lot of times, just like code, right?
- 8:51Matt Lea: You always want to have your code in some type of version control.
- 8:53Matt Lea: You don't want to just have it FTP or saved to your disk.
- 8:55Matt Lea: And you're just like, oh, you know, it disappeared.
- 8:57Matt Lea: I don't know when Bob over here, you know, other developer X made this change.
- 9:03Matt Lea: You want all that in version control.
- 9:04Matt Lea: And you can do that infrastructure as code known, you know, which is Terraform, Bintofu,
- 9:11Matt Lea: and CloudFormation is actually AWS's proprietary one that they made themselves.
- 9:16Matt Lea: And so I'd recommend you get in that habit because it's very difficult to get into that later.
- 9:21Matt Lea: Once you're you've established your infrastructure, you've all hand spun it up and you're like, how did I do that again?
- 9:26Matt Lea: What was that? What would what is such and such that left the company?
- 9:29Matt Lea: And now, you know, so you're basically describing me 10 years ago.
- 9:33Matt Lea: I was there. I didn't I didn't get on that game till I was a couple of years after they had cloud formation launched.
- 9:40Matt Lea: At first, I was like, this could be cool. And then I was like, OK, this is essential.
- 9:43Michael Kennedy: Yeah. Yeah. I just, I used to be just like, I'm going to SSH in and I'll just get it working.
- 9:48Michael Kennedy: And then, you know, the code will be well-structured, but just kind of the server,
- 9:52Michael Kennedy: once I get it set up, it'll be fine. And then I realized actually, no, it's not fine.
- 9:57Michael Kennedy: You know, you want to make any changes you want to move, you want to move from one setup to
- 10:00Michael Kennedy: another. You're like, Oh gosh, I don't even like, this is a research project to figure out what to
- 10:04Matt Lea: do. Yeah, exactly. But definitely when you're using those, those terraforms, always read your,
- 10:10Matt Lea: what you're about to apply.
- 10:11Matt Lea: I've had too many people that just auto apply
- 10:14Matt Lea: the Terraform changes.
- 10:15Matt Lea: And what happens is they'll have a slight renaming
- 10:18Matt Lea: of a database.
- 10:18Matt Lea: This actually happened recently.
- 10:19Matt Lea: Somebody had their AI vibe code, this thing,
- 10:22Matt Lea: and it wanted to rename the database.
- 10:24Matt Lea: Well then what happens is Terraform deleted the database
- 10:27Matt Lea: and then spun up another database right there.
- 10:29Matt Lea: That was their production database.
- 10:31Matt Lea: That was a rough day.
- 10:32Matt Lea: That wasn't the project I have.
- 10:34Matt Lea: I did a write up on it, but it wasn't my project.
- 10:36Matt Lea: I was always read your replies though, basically.
- 10:38Matt Lea: Always know what you're about to send.
- 10:41Matt Lea: Make sure you think it's an update.
- 10:43Matt Lea: It's got to be an update, not a delete and replace.
- 10:46Michael Kennedy: This is something that has certainly been in the zeitgeist lately.
- 10:50Michael Kennedy: It's a little bit, I don't hear about it as much.
- 10:52Michael Kennedy: I think it's sort of to be dealt with.
- 10:54Michael Kennedy: But there's certainly horror stories of the AI deleted the production database
- 10:58Michael Kennedy: because kind of like we opened with like,
- 11:00Michael Kennedy: instead of trying to just solve the problems, like, is there a better way?
- 11:03Michael Kennedy: Like, well, there's a problem inserting to the database
- 11:07Michael Kennedy: because the structure is wrong.
- 11:08Michael Kennedy: So if we just recreate the database with the right structure, this code will work, right?
- 11:11Michael Kennedy: It's like, well, that technically will solve the problem, but that is not acceptable.
- 11:15Matt Lea: I've heard of it.
- 11:16Matt Lea: They didn't like the schema.
- 11:18Matt Lea: So they said, okay, drop the table and I'll create a new one.
- 11:21Michael Kennedy: Yeah, I've literally had that happen to me only in my dev machine where it doesn't really matter.
- 11:27Michael Kennedy: I'm like, why are there no records?
- 11:29Michael Kennedy: Where's all the data?
- 11:30Michael Kennedy: Oh, it was better for like, no, we never do that.
- 11:33Michael Kennedy: But I'm not giving my AI access directly to my production database.
- 11:37Michael Kennedy: No, thanks.
- 11:38Michael Kennedy: No, I would not recommend that.
- 11:39Matt Lea: I mean, as we're seeing more requests for that from like as C-suite people become more functional with these agents,
- 11:46Matt Lea: they're like, well, I want direct access to the database so I can get the latest in this and that.
- 11:49Matt Lea: It's like, hold on, let me code you up a tool call, get your read access.
- 11:53Matt Lea: And if you want to do any right, they'll code up another tool call that'll make it so it's approved by a human.
- 11:59Matt Lea: But doesn't that, you know, they could say, hey, I suggest this.
- 12:01Matt Lea: And then, you know, but we've seen a lot of that lately.
- 12:04Matt Lea: I mean, it's great that we're empowering more people to interact with the data and do more with it.
- 12:08Matt Lea: You just, we still got to be careful about InfoSec and these things do make mistakes occasionally.
- 12:14Matt Lea: Yeah, yeah.
- 12:16Michael Kennedy: They work in a narrow context and let's make this code run.
- 12:19Michael Kennedy: Like, oh, this will fix it.
- 12:20Michael Kennedy: Like, we need the whole company to survive.
- 12:22Michael Kennedy: No, I really love your suggestion of maybe creating like an MCP or a tool that's read only and make all the AI access go through that.
- 12:31Michael Kennedy: You can observe it and check it out, but you don't have even the capability to destroy it through this mechanism, right?
- 12:38Matt Lea: Well, there's even an extra layer to that is I just had a post come out about this because I had this request come through is put it pointed at your data lake if you can, not your production database, because those agents can spam like no tomorrow.
- 12:50Matt Lea: So if they write a very complicated read query that goes through your tool call and they spam it could slow down your production database if it's not, you know, quickly optimized.
- 12:58Matt Lea: So what we did to make it even more effective is our data lakes.
- 13:02Matt Lea: A lot of times you don't want to store personally identifiable information and data lakes and all that stuff.
- 13:06Matt Lea: It's anonymized.
- 13:06Matt Lea: You can do big data regression on it.
- 13:08Matt Lea: And so that way, even if it gets data that possibly be personally identifiable, it would be in your production database.
- 13:14Matt Lea: The data lake theoretically wouldn't have that if you're doing it right.
- 13:17Matt Lea: And so they couldn't, even if they leaked all your sales data for the last five years, at least you wouldn't have a PII leak, which would cost you even more.
- 13:24Matt Lea: So that's my recommendation there.
- 13:26Matt Lea: And I didn't actually, for the outline for today, I didn't talk about data lakes, but I can tell you my favorite data lake stack on AWS, but it's an advanced one.
- 13:33Matt Lea: I'd save that for number 14, maybe.
- 13:35Michael Kennedy: All right, maybe we'll get to that at the end.
- 13:38Michael Kennedy: Hey, one second.
- 13:39Michael Kennedy: Normally, this would be an ad break from Sentry, but not this time.
- 13:43Michael Kennedy: Let's just thank them for supporting the show and get right back to the conversation.
- 13:47Michael Kennedy: Also, visit talkpython.fm/sentry after the show.
- 13:51Michael Kennedy: Thanks, Sentry.
- 13:52Michael Kennedy: Okay, well, let's put a bit of a stake in the ground here and put down the first item as don't hand provision, use Terraform.
- 14:01Michael Kennedy: And as I was getting ready for this episode and go through all the stuff we kind of like we'd talk about, I realized that this is acronym packed, an acronym dense and tooled as things.
- 14:11Michael Kennedy: So maybe you could help us along the way.
- 14:13Michael Kennedy: We've got Terraform.
- 14:15Michael Kennedy: And yeah, just maybe a quick summary on this concept.
- 14:19Michael Kennedy: Like where we use it and how we use it.
- 14:20Michael Kennedy: We've been talking around it, but not as much as an item.
- 14:22Matt Lea: Safe to assume most of the people listening to this are coders.
- 14:25Michael Kennedy: 100%.
- 14:26Michael Kennedy: Data science coders, yeah, or learners, but, you know, they're still good for them.
- 14:31Matt Lea: Sure.
- 14:31Matt Lea: So it's Terraform or IOC infrastructure, IAC, sorry, IAC, infrastructure as code is the category.
- 14:37Matt Lea: And then under that category, there's Terraform, OpenTofu, and CloudFormation.
- 14:42Matt Lea: And those are all just ways to define how you want your infrastructure to look basically in code.
- 14:48Matt Lea: So if I was real simple, I could say I want an EC2 instance, which is...
- 14:52Matt Lea: just your basic server, virtual server running on Amazon.
- 14:55Matt Lea: And then I want a database, a MySQL database, this version.
- 15:00Matt Lea: And I can put those in code in some way.
- 15:03Matt Lea: And then, like I said, version control it, or I can hit apply.
- 15:06Matt Lea: So say somebody accidentally deletes my application layer.
- 15:09Matt Lea: A lot easier to replace than a data layer, of course.
- 15:11Matt Lea: And I need to spin that back up real quickly.
- 15:13Matt Lea: You just re-hit Terraform apply, and it re-spins up and provisions the missing area.
- 15:18Matt Lea: It's really nice, especially for my cloud war games,
- 15:21Matt Lea: I'm blowing up stuff all the time, intentionally being the, you know, junior that accidentally
- 15:25Matt Lea: deletes something important.
- 15:27Michael Kennedy: A little bit of a code monkey or chaos monkey, rather, running loose kind of thing.
- 15:32Matt Lea: Yeah, cloud demolition expert.
- 15:33Matt Lea: I think I had that as my title on LinkedIn for a while.
- 15:35Matt Lea: I love it.
- 15:36Michael Kennedy: Okay.
- 15:36Michael Kennedy: Does Terraform do incremental updates?
- 15:39Michael Kennedy: Like, let's suppose I've got an EC2 machine and I've got it all set up and it's running
- 15:43Michael Kennedy: the app, the database.
- 15:45Michael Kennedy: And I'm like, oh, you know, it would be really great if we put these firewall rules specifically
- 15:50Michael Kennedy: on the machine or we set up fail to ban or something like that you can define every firewall
- 15:55Matt Lea: rule which is perfect you wouldn't be able to define as easily what's in the box so to say
- 16:00Matt Lea: there's you have some control over that um like for example i spin up lambdas and a lot of times
- 16:05Matt Lea: i have a hello world javascript i throw in there and it's but i also again these are all for free
- 16:09Matt Lea: on my website if you want them but um it also spins up the build pipeline and everything like
- 16:13Matt Lea: that so then you can just hook that up to GitHub but at least it throws in a hello world lambda
- 16:17Matt Lea: the code. But yeah, you can define all the stuff we're about to talk about today. You can define
- 16:21Matt Lea: every user role, every access key, every username, the exact way you want your networks to talk.
- 16:31Matt Lea: So the way your VPC, a virtual private cloud, has its subnet set up, all that stuff can be defined
- 16:37Matt Lea: in there. It's almost crazy what can be defined. I wouldn't recommend committing your code and
- 16:42Matt Lea: having it go through there. I'd have that go through a build pipeline separately that you'd
- 16:46Matt Lea: spin up with terraform or whatever but you'd also you just pull from GitHub sure especially for the
- 16:51Michael Kennedy: compiled languages and like go or something where there's no reason to deploy the source with python
- 16:56Michael Kennedy: it's almost like not much of a difference although ci is still a thing okay so number one don't hand
- 17:01Matt Lea: provision use terraform set standards stick to them i love it yeah it's it's getting that habit early
- 17:06Michael Kennedy: it's it's tough to get into later number two act don't use access keys use iam roles so again
- 17:12Michael Kennedy: acronym please so access access keys so i am is identity access management manager what it's it's
- 17:19Matt Lea: how you define how your users interact with aws as well as your different running services on aws
- 17:26Matt Lea: and so a lot of people when they first start out they download their first access keys they ideally
- 17:32Matt Lea: don't put them in version control where it can be passed around or shared or anything like that
- 17:35Matt Lea: they do a nice dot env and hope their agent doesn't steal it um but uh you know you get so you get those
- 17:41Matt Lea: access keys but a lot of times when they push things to production if they're very beginner at
- 17:44Matt Lea: this they'll put like a.env file in the code or something like that that's got access keys
- 17:49Matt Lea: and those if those get leaked you know again I've got a story about this that somebody actually
- 17:56Matt Lea: pushed their access keys for sending email luckily luckily it was just sending and receiving email
- 18:03Matt Lea: and they pushed it up to a public repo as a junior and they just made a mistake there and it ended up
- 18:07Matt Lea: on GitHub and some bad guys got it. And I believe we sent 16 million emails for some type of knockoff
- 18:13Matt Lea: Viagra in about eight minutes before AWS shut down the account and said, what are you doing? It was a
- 18:18Matt Lea: lot more than we normally said, but that's an example of why you don't want to hard.
- 18:22Michael Kennedy: Yeah. I have a thing to share. Have you seen skit? Like, no, it's, it's the pronunciation is perfect
- 18:30Michael Kennedy: of what it is, but it's like secrets, S-H-H, get, but get like, oh God. And it used to be a website.
- 18:38Michael Kennedy: It's no longer here. Let me see if I can open up this image in a full screen for us to see.
- 18:42Michael Kennedy: So it was a website that would scan the real time fire hose of changes on GitHub, pull out all
- 18:50Michael Kennedy: cryptographic looking things, AWS keys, you know, email keys. And it just had this stream going and
- 18:58Michael Kennedy: it updates, I don't know, like once a second or more. It's absolutely terrifying. And so anytime
- 19:05Michael Kennedy: that someone's out there listening and you need to make this point to juniors or people who are new
- 19:09Michael Kennedy: or whatever, like do not commit stuff to get it. Like, well, it's a, you know, I can just
- 19:14Michael Kennedy: uncommit it. It's not a very popular repo. How fast would people find it? Like this fast.
- 19:18Michael Kennedy: Fast enough. Yeah. If it's up there, you should assume it's gone immediately. And so, yeah,
- 19:25Michael Kennedy: That's pretty scary.
- 19:26Michael Kennedy: You know, I don't know if you tracked this, probably not,
- 19:29Michael Kennedy: but at PyCon this year, there was a talk by Tristan McKinnon
- 19:34Michael Kennedy: called Zero Trust in 200 Milliseconds.
- 19:37Michael Kennedy: Now, I didn't watch the talk, so I'm only going off the abstract.
- 19:41Michael Kennedy: But basically, the idea is every time you need to make an API call
- 19:45Michael Kennedy: or do a transaction or something,
- 19:46Michael Kennedy: you can get a separate 200 millisecond duration key.
- 19:51Michael Kennedy: What do you think of that idea?
- 19:53Matt Lea: I like it.
- 19:54Matt Lea: 200 milliseconds is interesting if that's a set one or a variable one.
- 19:58Michael Kennedy: Yeah, I'm not sure.
- 19:58Michael Kennedy: It might be a little bit shorter, a little bit longer.
- 20:01Michael Kennedy: In case there's a little lag, you don't want to pull three.
- 20:04Matt Lea: I also immediately wonder how long does it take you to provision that key?
- 20:07Matt Lea: Hopefully it doesn't take you 200 milliseconds to provision it,
- 20:09Matt Lea: but if you could provision it in two milliseconds.
- 20:13Matt Lea: I don't like, what do they call it, chocolate candy infrastructure
- 20:17Matt Lea: where once you pass the outside, then it's free once you get inside.
- 20:21Matt Lea: I forget the exact term there, but you've got to be careful.
- 20:23Matt Lea: even once you're past the infrastructure,
- 20:26Matt Lea: the external infrastructure,
- 20:27Matt Lea: once you're in there,
- 20:28Matt Lea: you don't want to have it.
- 20:29Matt Lea: So anybody's got free reign
- 20:30Matt Lea: to grab whatever they want.
- 20:31Matt Lea: They might get that.
- 20:32Matt Lea: So I like it.
- 20:33Matt Lea: My other question though,
- 20:34Matt Lea: we always have to balance is,
- 20:36Matt Lea: what's the latency effects?
- 20:38Matt Lea: If that costs 200 milliseconds of latency,
- 20:40Matt Lea: that's pretty expensive
- 20:41Matt Lea: from a compute standpoint.
- 20:43Matt Lea: So
- 20:44Michael Kennedy: Yeah, I'm not entirely sure.
- 20:45Michael Kennedy: But just a little more background about this.
- 20:47Michael Kennedy: This is from FedRAMP,
- 20:49Michael Kennedy: which is the US government's,
- 20:51Michael Kennedy: they use this on a lot of the US government
- 20:53Michael Kennedy: internal protection like cloud or whatever, which is maybe a special case.
- 20:56Matt Lea: That makes a lot of sense. And I wager the government's latency limitations are a lot
- 21:01Matt Lea: less than someone trying to be competitive in e-commerce or something like that.
- 21:04Michael Kennedy: Yes, exactly. You know what? They can wait for security.
- 21:07Matt Lea: Yeah. It's like the DMV online. Just stand in line all day. They'll get there. There's nowhere
- 21:11Matt Lea: else to go.
- 21:12Michael Kennedy: It's like just get in line with all the other poor browsers and wait back there for your turn and
- 21:16Michael Kennedy: we'll get to you eventually. Unless we closed at four. Unless we closed at four. Okay. So
- 21:22Michael Kennedy: Basically, don't use access keys.
- 21:24Michael Kennedy: Use IAM roles.
- 21:25Michael Kennedy: How do we make this happen, though?
- 21:27Matt Lea: So IAM, you go in there, there's users, there's groups, which makes a lot of sense.
- 21:32Matt Lea: The roles are things you assign to the various services you boot up.
- 21:37Matt Lea: So you can have a role for the EC2 instance or a role that the Lambda has.
- 21:41Matt Lea: So when your Lambda executes, it's acting as if it has the same permissions that this role has.
- 21:47Matt Lea: So you could say, hey, I want this Lambda to be able to access this one specific S3 bucket.
- 21:52Matt Lea: you know, and it will basically know these are the permissions it has just because you've assigned it that role.
- 22:00Michael Kennedy: I see. So maybe it can only read from the database and can only write to a certain bucket and that's it.
- 22:05Matt Lea: It's not network level, it's service level. There's a separate one we'll go over in a minute for network level, how you restrain a network.
- 22:13Matt Lea: It's more what services can it call on AWS? Can it boot up instances? Can this instance boot up other instances?
- 22:18Matt Lea: You don't typically want that.
- 22:20Matt Lea: You know, in this instance, you know, S3 is right.
- 22:23Matt Lea: Can it invoke Lambdas?
- 22:24Matt Lea: Can it this, you know, Lambda trigger other Lambdas?
- 22:27Matt Lea: In some cases that might make sense.
- 22:29Matt Lea: In some cases that could just be very expensive.
- 22:31Matt Lea: Yeah.
- 22:31Matt Lea: But a lot of it, like you could theoretically give a Lambda the ability to boot up or provision
- 22:37Matt Lea: hardware.
- 22:37Matt Lea: I don't think you really want to.
- 22:38Matt Lea: Maybe if you were running a hosting company, but maybe not.
- 22:41Matt Lea: But it's not a million though.
- 22:43Matt Lea: Yeah.
- 22:44Matt Lea: Yes.
- 22:44Matt Lea: It's a service to service, not network level permissions thing.
- 22:48Michael Kennedy: Okay.
- 22:48Michael Kennedy: I see. So that's right. We're talking, IAM defines what it can do within AWS as infrastructure,
- 22:54Michael Kennedy: the service type of thing, or code as infrastructure, not what can it do within
- 22:58Michael Kennedy: your database row level type of things. That's, that's correct. Yeah. The database engines,
- 23:02Matt Lea: you know, wouldn't specify that Dynamo is a little bit of a Dynamo's serverless has got invokes.
- 23:08Matt Lea: It's not like something like a Redis or, you know, or MySQL where it expects traffic on a
- 23:13Matt Lea: certain port, you know? So there's some of their proprietary stuff. It actually does have a little
- 23:17Matt Lea: extra power there.
- 23:19Matt Lea: But when they're doing open source stuff and they can't really change the
- 23:23Matt Lea: innards of it, then it just says, can you start a new one or stop this one?
- 23:27Michael Kennedy: That's pretty much it.
- 23:28Michael Kennedy: Okay.
- 23:29Michael Kennedy: And following on from there, don't use generic IAM permissions.
- 23:34Michael Kennedy: Use granular ones.
- 23:35Michael Kennedy: Like, just let it do everything.
- 23:36Michael Kennedy: That'll be easier.
- 23:37Michael Kennedy: It works.
- 23:37Michael Kennedy: That could trade the permission errors.
- 23:39Michael Kennedy: Oh, yeah.
- 23:39Matt Lea: So let's go back to that email one.
- 23:41Matt Lea: What if they said, let it do anything on any service right there?
- 23:44Matt Lea: They could have deleted everything in a second.
- 23:47Matt Lea: people are like, okay, that makes sense. But what, what I see is for convenience sake, you're, you're
- 23:51Matt Lea: banging your head against the wall. And all of a sudden you're like, you know what, we're just
- 23:54Matt Lea: going to let them access all the S3 buckets. And next thing, you know, a couple, you know,
- 23:58Matt Lea: months later or whatever, they, they've now got your internal reporting and they pull that out,
- 24:03Matt Lea: you know, it's like, nope. So don't ever do the asterisk is your enemy. Basically S3 colon asterisk
- 24:09Matt Lea: gives you all S3 permissions. You know, you could delete that bucket right there and then it's down.
- 24:13Matt Lea: So avoid using the asterisk whenever possible.
- 24:17Matt Lea: Same thing with resources.
- 24:18Matt Lea: So it's not just permissions, but it's also the resources.
- 24:20Matt Lea: Like I said, you've got 20 S3 buckets.
- 24:22Matt Lea: Specify only the ones you want to write to.
- 24:24Matt Lea: You can actually specify down to the path if you want to.
- 24:27Michael Kennedy: Sounds like if you use the asterisk,
- 24:28Michael Kennedy: it sounds like a good way to end up on the front page of a computer
- 24:31Michael Kennedy: or somewhere you don't want to end up on.
- 24:33Matt Lea: Yeah.
- 24:33Matt Lea: So, I mean, if you're experimenting for 10 seconds
- 24:36Matt Lea: and you're going to delete it,
- 24:37Matt Lea: I mean, I wouldn't commit it into version control.
- 24:38Matt Lea: Let's put it that way.
- 24:39Matt Lea: You want your version control,
- 24:40Matt Lea: if you're like accidentally poke a hole for 10 minutes,
- 24:42Matt Lea: to be like, okay, how is this not working?
- 24:43Matt Lea: You want your version control, Terraform, IIC to wipe that out the second you're done with it.
- 24:48Matt Lea: Makes sense.
- 24:49Matt Lea: Probably not do that in production.
- 24:50Michael Kennedy: Yeah.
- 24:50Michael Kennedy: It's worth repeating a couple of times.
- 24:52Michael Kennedy: You know, it sounds to me like you're pretty savvy with the agentic stuff and so on,
- 24:56Michael Kennedy: given your tool calling and things you were talking about.
- 24:59Michael Kennedy: I feel like five years ago, granular permissions and things like that were really tricky because
- 25:04Michael Kennedy: you're just like, ah, what do I need?
- 25:06Michael Kennedy: Like so many boxes for allow or disallow.
- 25:08Michael Kennedy: Now with agents, I feel like you can just say, look, I need to do this with this service to that service.
- 25:14Michael Kennedy: Probably be pretty accurate.
- 25:16Michael Kennedy: What are your thoughts on using that for help?
- 25:17Matt Lea: Yeah, it depends.
- 25:19Matt Lea: So just imagine you're not an extremely technical person and you tell the agent, listen, I just need this to talk to that.
- 25:26Matt Lea: They can achieve that by putting that asterisk in there.
- 25:28Matt Lea: So, you know, so that's an interesting one where I've seen them to accomplish their goal.
- 25:33Matt Lea: They don't exactly go about it the way you'd want them to.
- 25:36Matt Lea: But I've also seen it counteracted by people using multiple agents.
- 25:39Matt Lea: And AWS does offer its own DevOps agents and FinOps agents that are going to put me out of a job and all that.
- 25:46Matt Lea: But I would say, I mean, this is kind of, so I think I mentioned beyond Cloud War Games, I'm writing a game that's going to be on Steam.
- 25:54Matt Lea: And the goal is to make sure that people with the least amount of technical skills understand all the bad things that can happen.
- 25:59Matt Lea: You know, because you might just, right now we're seeing with the agents is that these people are getting incredible half hours.
- 26:04Matt Lea: But for 30 years, I've been programming.
- 26:07Matt Lea: And some people, it looks like Wizardry.
- 26:09Matt Lea: Now they've got that power.
- 26:10Matt Lea: They don't know the vulnerabilities.
- 26:13Matt Lea: It can go really poorly for you.
- 26:14Matt Lea: And so the agents, I mean, it can be great.
- 26:17Matt Lea: But man, you got to know what a cross-site scripting attack is.
- 26:21Matt Lea: Because if it's not validating that, what is a MySQL injection attack?
- 26:25Matt Lea: And it's rocky.
- 26:26Matt Lea: So it's great that they can speed you up and make you more efficient.
- 26:29Matt Lea: But make sure you're double-checking it to work, is what I guess I've got to say.
- 26:32Michael Kennedy: Yeah, and as I'm hearing you talk, I'm just thinking,
- 26:34Michael Kennedy: this is just one more reason that being an actual expert
- 26:38Michael Kennedy: and using these tools is so much more powerful
- 26:41Michael Kennedy: than just trying to vibe your way through it.
- 26:43Michael Kennedy: So the using the star thing, that is the easiest way to solve it,
- 26:47Michael Kennedy: and that might be what the agent does.
- 26:48Michael Kennedy: But you could say, and your primary goal
- 26:51Michael Kennedy: is to be absolutely least privileged about this thing.
- 26:55Michael Kennedy: And so you're going to win this session
- 26:58Michael Kennedy: by getting the least privilege that you possibly can now go.
- 27:01Michael Kennedy: Like that would make all the difference, I imagine.
- 27:03Matt Lea: I would think having competing agents,
- 27:05Matt Lea: one that's the coder and you give it that instruction,
- 27:08Matt Lea: but then have a second one do a peer review on it
- 27:10Matt Lea: might be of some use to be like,
- 27:12Matt Lea: hey, is there any possible way to break this?
- 27:14Matt Lea: Just one agent alone, I don't, I'm here.
- 27:17Matt Lea: From my experience, it'll just say,
- 27:21Matt Lea: yeah, sure, I did it sometimes.
- 27:22Matt Lea: Yeah, yeah, yeah, 100%.
- 27:23Matt Lea: Having competing more skeptical agents seems to help,
- 27:26Matt Lea: but if you get the part, you know.
- 27:27Michael Kennedy: Right, ask for an adversarial review or something like that.
- 27:29Michael Kennedy: Yeah.
- 27:30Michael Kennedy: All right. Don't put back-end resources on public subnets.
- 27:33Michael Kennedy: Do you need your database on the internet just open?
- 27:36Michael Kennedy: Probably not.
- 27:37Matt Lea: Exactly. This is one of the things where it's not convenient because people are like,
- 27:40Matt Lea: well, I just want to be able to hit my database for my local machine.
- 27:43Matt Lea: Well, you still can. You've got a bastion, if anybody's familiar with that.
- 27:45Matt Lea: I can explain that in a second.
- 27:46Matt Lea: But let me zoom out to, there's a thing called a virtual private cloud.
- 27:50Matt Lea: It's basically inside your AWS account.
- 27:52Matt Lea: It's a way to kind of siphon off resources.
- 27:54Matt Lea: Some people, personally, I like having a prod AWS account,
- 27:58Matt Lea: the staging AWS account and the test.
- 28:00Matt Lea: And that way you're all separate.
- 28:01Matt Lea: I'll be honest, for my own stuff, I actually have separate VPCs instead.
- 28:04Matt Lea: So inside of that, you've got your groups of subnets.
- 28:07Matt Lea: So this is tough to do without diagramming it right now.
- 28:10Matt Lea: But you know that there's US West, right?
- 28:13Matt Lea: There's US West 1.
- 28:14Matt Lea: And that is a giant bunker in the ground.
- 28:17Matt Lea: Inside of that, there's about six availability zones.
- 28:20Matt Lea: And so each one of those availability zones is its own bunker inside that facility that
- 28:25Matt Lea: has completely independent power supply and all that.
- 28:27Matt Lea: So if one of those gets new, you still got three others or four or five others in that region.
- 28:31Matt Lea: Honestly, they keep adding them. So I don't know what they're at exactly.
- 28:33Matt Lea: But and so inside of those, you want to have subnets.
- 28:37Matt Lea: Now, a lot of times people put everything in big subnet.
- 28:40Matt Lea: That's not good. You know, if you just have one subnet on one availability zone in one region, that's not reliability.
- 28:45Matt Lea: That's not redundancy. And those availability zones independently go down actually fairly frequently.
- 28:51Matt Lea: But you don't see it if you use multiple availability zones or if you got the budget for it, multi-region, which has actually come down and cost quite a bit.
- 28:59Matt Lea: So I guess I'm going to split this one into two parts.
- 29:01Matt Lea: One, use multiple availability zones whenever possible because it'll give you a lot more uptime.
- 29:07Matt Lea: Two, I always have it so there's a public subnet, which is things that should be accessible from the Internet.
- 29:13Matt Lea: OK, that'd be the load balancer.
- 29:15Matt Lea: A lot of times the load balancer takes in traffic and then sends it to various instances running in the various AZs.
- 29:21Matt Lea: So that's always out there. But then privately in the private subnet, you want to have your databases and you're like, OK, well, I should probably should have done the next one before this because you can firewall these things.
- 29:33Matt Lea: But man, it's so easy to poke a hole in those firewalls when it's convenient.
- 29:36Matt Lea: So a lot of times I'll come back and do an audit and something that's like poke the hole here so you can get traffic from anywhere on port 22.
- 29:44Matt Lea: You shouldn't have that going on.
- 29:46Matt Lea: You want to only have, you know, so just adding that, having a private subnet specifically for that, for the databases, for anything secure,
- 29:55Matt Lea: it just adds an extra level of inconvenience that even a valid user who might have been compromised accidentally,
- 30:01Matt Lea: like you installed a wrong game on your computer, you know, and it grabs your SSH keys and pokes through the security wall,
- 30:07Matt Lea: and it pokes through the firewall because someone put it on 00, basically allowed the whole world in on that port.
- 30:11Matt Lea: Well, now they still can't get to it because there's not actually a network path that would go from point A to point B.
- 30:16Michael Kennedy: So it's just another way of adding more security to it.
- 30:19Michael Kennedy: And listening on the private cloud addresses versus listening on just 000, you know, like certain things like that are definitely worth considering, right?
- 30:29Matt Lea: Yeah, well, yeah, that makes sense.
- 30:30Matt Lea: I should have put this one before the next one.
- 30:32Matt Lea: Let's jump to the next one and I'll kind of circle back on this one.
- 30:35Matt Lea: I got a little backwards here.
- 30:36Michael Kennedy: No worries.
- 30:37Michael Kennedy: So this one?
- 30:38Michael Kennedy: Well, we went one too far.
- 30:40Michael Kennedy: One too far.
- 30:40Michael Kennedy: There we go.
- 30:41Michael Kennedy: Don't use one security group for everything.
- 30:43Michael Kennedy: You're smart.
- 30:44Matt Lea: Yes.
- 30:44Matt Lea: So security group is how we limit network traffic.
- 30:48Matt Lea: Think of that as firewall.
- 30:49Matt Lea: Okay.
- 30:49Matt Lea: This EC2 instance, this Lambda, whatever it is, can access this other thing, this database
- 30:55Matt Lea: on 0.336, whatever, you know.
- 30:58Matt Lea: So that says that only those two things can talk.
- 31:01Matt Lea: It would be a security group rule.
- 31:02Matt Lea: So what you have is you assign a security group to your Lambda and a security group to the
- 31:06Matt Lea: database.
- 31:07Matt Lea: But a lot of times people will just say anything and all these security groups can take traffic
- 31:11Matt Lea: other one because you just have security group a and anything in security group a can take traffic
- 31:15Matt Lea: over any port in there so now you've got potentially you know http traffic uh getting that could access
- 31:21Matt Lea: something else or hit you know hit your database on a port that's not supposed to be hit you know
- 31:25Matt Lea: so you've got to be very particular with those security group rules um because you don't want it
- 31:31Matt Lea: so someone that say say you've got a box an ec2 instance and a nefarious party somehow get something
- 31:36Matt Lea: on there even something the npm remote exploit stuff that's been going around a lot i don't know
- 31:41Matt Lea: if you've heard about that but oh yeah let's just say you install it in your application layer now
- 31:45Matt Lea: that application layer do you want it just to be i mean it's all gonna have to talk to your database
- 31:49Matt Lea: they'll get access to that that sucks but let's just say that that happens in test at least this
- 31:55Matt Lea: one you know if you had the security group set up right and the subnets and everything it couldn't
- 31:59Matt Lea: access production you know so that would save you a little bit of headaches but you right don't want
- 32:03Matt Lea: so they can crawl every IP within your subnet.
- 32:06Matt Lea: You want that.
- 32:06Michael Kennedy: Yeah, I mean, what gets your virtual private cloud network
- 32:10Michael Kennedy: if once you're in, you get the whole thing.
- 32:12Michael Kennedy: The term that comes to mind for me is lateral movement.
- 32:15Michael Kennedy: It's a big thing in security, right?
- 32:16Michael Kennedy: Once you're in, you find a way in.
- 32:18Michael Kennedy: Well, now where can you go, right?
- 32:19Matt Lea: Think about that.
- 32:20Matt Lea: Exactly.
- 32:21Matt Lea: Lateral movement is a perfect term.
- 32:23Matt Lea: You also can limit your outbound as well.
- 32:25Matt Lea: So you can limit where the box can talk out to.
- 32:27Matt Lea: So if you really want to get secure,
- 32:29Matt Lea: lock that down as well.
- 32:31Matt Lea: If only this IP for this one third-party API vendor, that's it.
- 32:36Matt Lea: They can't go reach out to somewhere overseas that we don't know about.
- 32:40Matt Lea: So make sure you lock down the outbound if you need to.
- 32:42Matt Lea: I don't know if I do that as a beginner day one, but if you're a big company, oh yeah.
- 32:47Michael Kennedy: This portion of Talk Python is brought to you by Talk Python courses.
- 32:51Michael Kennedy: Here's the thing that always bug me.
- 32:52Michael Kennedy: You finish one of our courses, that's hours of video, a pile of code you actually wrote, and real skills you didn't have a month before, and then nothing happens.
- 33:01Michael Kennedy: No paper, no credential, nothing to show for it.
- 33:04Michael Kennedy: So we fixed it.
- 33:05Michael Kennedy: Every Talk Python course now generates a completion certificate automatically.
- 33:09Michael Kennedy: Go to your account page in your dashboard section,
- 33:12Michael Kennedy: scroll down to your completed courses, and click Certificate.
- 33:15Michael Kennedy: That's the whole process.
- 33:17Michael Kennedy: Two things you can do with these course completion certificates.
- 33:20Michael Kennedy: Download the full PDF, which is handy if your employer reimburses training
- 33:24Michael Kennedy: or gives you credit for finishing it.
- 33:26Michael Kennedy: Or you can make the certificate public and hit Share on LinkedIn,
- 33:30Michael Kennedy: which adds it to your LinkedIn profile under licenses and certifications,
- 33:34Michael Kennedy: not a poster that scrolls away in a day,
- 33:35Michael Kennedy: an actual credential sitting on your profile where your manager and recruiters can see it.
- 33:40Michael Kennedy: Plus, if you've been taking our courses for a while,
- 33:43Michael Kennedy: you've probably earned several of these without even knowing they existed.
- 33:46Michael Kennedy: Just visit training.talkpython.fm/account and collect them.
- 33:51Michael Kennedy: Thanks to all of you who have taken a Talk Python course.
- 33:54Michael Kennedy: It's a great way to support the podcast.
- 33:56Michael Kennedy: What are your thoughts on overlay networks like TailScale and stuff?
- 34:00Michael Kennedy: Instead of opening up a port, maybe put your employees on a tail scale network that you can see the into the database server or something, but nothing else.
- 34:09Matt Lea: So in my terms, a lot of times there's Bastion.
- 34:11Matt Lea: I think I've got it in here somewhere.
- 34:12Matt Lea: Yeah, tell us.
- 34:13Michael Kennedy: Yeah, yeah.
- 34:13Michael Kennedy: Tell us about Bastion.
- 34:14Michael Kennedy: We can go ahead and jump to that.
- 34:15Matt Lea: So Bastion's before you boot up a Bastion in a public IP, a public network that could be accessed publicly.
- 34:21Matt Lea: Ideally, you'd limit it using security groups and saying, hey, this is the only accept traffic on 22 from this IP address, you know, mine.
- 34:28Matt Lea: And every time I relocate, I'd have to update the IP address.
- 34:31Matt Lea: And then you'd SSH into that bastion, and then that would be able to then be your door to the rest of everything.
- 34:37Matt Lea: So we still do port forwarding if you want to do local development, hit the test database or something like that.
- 34:41Matt Lea: So I do that quite a bit, but they've created a new tool.
- 34:45Matt Lea: I'm old. I've been doing this since 2010.
- 34:48Matt Lea: That's called Secure Session Manager.
- 34:51Matt Lea: it's the SSM and you can use that to enter in using IAM authentication and that's much more
- 34:59Matt Lea: secure. So I'd consider something more like that. Also, you don't have the cost of running an EC2
- 35:06Matt Lea: instance 24 seven act as your bastion. So that's a nice tool to have in there. I guess I didn't put
- 35:11Michael Kennedy: that in. Yeah, no worries. Have you heard of Knock Knock? Knock Knock? No. So Knock Knock is this
- 35:17Michael Kennedy: interesting thing that the firewalls are blocked like 100% for all the management. Let me see if I
- 35:25Michael Kennedy: can get this right. So everything is blocked 100% for the IPs. But if you authenticate to a certain
- 35:30Michael Kennedy: point, then the service opens up just for your IP address for the length of that session. You kind
- 35:37Michael Kennedy: of like knock on a different way, then it'll let you through the firewall. It's the concept. I
- 35:47Michael Kennedy: yeah that would be a good one to have in there i would think um so just firewall allow this these
- 35:53Michael Kennedy: ip addresses or whatever you're like okay every time that port opens temporarily i need it to
- 35:58Matt Lea: authenticate yeah it's kind of cool i mean that's actually a good feature request for aws to have
- 36:02Matt Lea: uh durations on their their uh security group rules so you say i only want to do this for an hour
- 36:08Michael Kennedy: you know right let's open this up so i can i can debug and diagnose this because i gotta get to it
- 36:12Michael Kennedy: apparently but then just shut it back off without me requiring to like fail safe instead of fail
- 36:16Michael Kennedy: Yeah, that could be a very useful feature.
- 36:19Michael Kennedy: We should send that to you.
- 36:20Michael Kennedy: Yeah, let's do it.
- 36:21Michael Kennedy: Send it through the podcast.
- 36:22Michael Kennedy: I'm sure some folks there are listening.
- 36:25Michael Kennedy: Apologies to vegetarians for this next one, but don't nurse your EC2 instances.
- 36:30Michael Kennedy: Cattle, not puppies.
- 36:31Matt Lea: I didn't come up with the phrase, but it sums it up.
- 36:33Michael Kennedy: No, I know, I know.
- 36:34Michael Kennedy: It sums it up very well.
- 36:35Matt Lea: So I'm sure you've, in your career, probably had a box somewhere where you were just nursing.
- 36:40Matt Lea: I mean, very common before they did serverless.
- 36:43Matt Lea: Or before they did virtual servers, I should say, when you actually had a rack.
- 36:46Matt Lea: somewhere before aws and then you'd have to call a guy someone kicked over the plug you're in trouble
- 36:51Matt Lea: but you'd end up i saw this even on aws with ec2 instances specifically i see it a lot where
- 36:56Matt Lea: someone boots up a couple ec2 instances and they're just this is my baby i've got i've got it
- 37:01Matt Lea: set up absolutely perfect and if one of those things gets sick or dies and you got to restart
- 37:06Matt Lea: now you're sitting there like oh how did i how did we set this up before did we you know what
- 37:10Matt Lea: scripts did we run all that stuff and with both lambda and ecs ecs so ecs is elastic container
- 37:18Matt Lea: service and i don't know if people are familiar with docker but docker is a phenomenal tool where
- 37:23Matt Lea: you can basically build the image it's almost like if we're going back in time you're building your
- 37:28Matt Lea: os and saving it to a disk you just pop that disk and anytime it'll boot up the exact one so if you
- 37:33Matt Lea: have to kill it 10 times a day you know your servers you if you had to delete your servers 10
- 37:37Matt Lea: times a day you could spin them up exactly the same way they were in that perfect state when they
- 37:41Matt Lea: when they first started taking traffic in a split second and it's it's really nice and same lambdas
- 37:48Matt Lea: that with some simplicity to it um it's it's a lot like docker but it's not actually docker
- 37:52Matt Lea: under the hood i found out um but it's it's the same thing your lambdas you know will scale
- 37:58Matt Lea: infinitely especially if you want auto scaling which is again a huge advantage of the cloud
- 38:02Matt Lea: you'd want to have this type of technology so you can if you're you know it's the middle of the night
- 38:06Matt Lea: I only want two instances running, two containers, two tasks.
- 38:09Matt Lea: It's the middle of the day on Thanksgiving, the day before Thanksgiving,
- 38:12Matt Lea: the day after Thanksgiving, sorry.
- 38:14Matt Lea: And now we need 100.
- 38:15Matt Lea: It'll scale just perfectly.
- 38:16Matt Lea: So be very weary of just SSH-ing in and customizing stuff.
- 38:22Matt Lea: On EC2, it's just way too easy to do at first.
- 38:25Matt Lea: It's tempting.
- 38:26Matt Lea: Yeah, tempting.
- 38:27Matt Lea: But then once you get to scale, you want to have those images built out
- 38:32Matt Lea: that'll just spin up very quickly.
- 38:35Michael Kennedy: 100%.
- 38:36Michael Kennedy: long time I resisted using Docker because to me it felt like complexity paired with capacity like
- 38:41Michael Kennedy: it's more complex to do Docker and also it's harder for me to observe and analyze it and what I
- 38:46Michael Kennedy: really what I realized not too long after that is well all the commands you put in the Docker file
- 38:51Michael Kennedy: it's like what you had to write into your server to make it do whatever it does anyway just put run
- 38:56Michael Kennedy: instead of not run on the front you know copy versus not copy or whatever and then the observability
- 39:01Michael Kennedy: really you can just map some volumes or go into the container like what you can still observe it
- 39:06Michael Kennedy: pretty much just as well so i just want to echo your thoughts of like yeah absolutely look into
- 39:11Matt Lea: docker if you if you want to go fast you know and uptime scalability reliability that's not an issue
- 39:17Matt Lea: i'm not going to push it you know i i told i was i'm a startup guy i totally get it if you're
- 39:22Matt Lea: a company that's goes down and loses a hundred thousand dollars an hour and uh you don't have
- 39:28Matt Lea: the setup commands documented or you know your lead tech gets hit by a bus quote unquote you know
- 39:33Matt Lea: you want that docker file to be clear as day so you can make modifications spin up whatever so
- 39:38Michael Kennedy: 100 100 what about kubernetes what do you think on kubernetes versus docker i mean that's another
- 39:44Michael Kennedy: level complexity i think another dev i respected i was on a podcast with said if you're if you're
- 39:50Matt Lea: doing kubernetes on anything but gcp you're you're kind of it's not a good fit it's just you're kind
- 39:55Matt Lea: of messing around. So they tried, AWS tried, and some people have done real well with this EKS.
- 40:00Matt Lea: That's the Elastic Kubernetes Service, I believe is what it's called. And that is the ECS's brother
- 40:07Matt Lea: that runs with Kubernetes. But it just, I've never had it feel natural. I've had clients multiple
- 40:15Matt Lea: times have me pull them off of EKS to ECS just because ECS is a bit more AWS native and they
- 40:21Matt Lea: are already on it. So I'm not going to say no, but most of the people I see have the best success
- 40:26Matt Lea: with Kubernetes are probably using GCP. I have no problem with that. It's not my expertise.
- 40:30Matt Lea: Yeah, that makes a lot of sense. For Docker, you know, a lot of times,
- 40:34Michael Kennedy: it's running yourself, not necessarily in the container service on AWS. You could even do this
- 40:39Michael Kennedy: on EC2 for sure. You know, like you can go a long ways with Docker Compose for like people
- 40:44Michael Kennedy: startup things like my company. I got 33 Docker containers running on something at this point,
- 40:49Michael Kennedy: different distinct ones.
- 40:50Michael Kennedy: But anyway, there are other tools like Coolify.
- 40:54Michael Kennedy: Have you seen this?
- 40:55Michael Kennedy: I've heard of Coolify.
- 40:56Michael Kennedy: I haven't dug in much.
- 40:58Michael Kennedy: It's pretty interesting.
- 40:58Michael Kennedy: So what you can do is you can sign up with Coolify,
- 41:02Michael Kennedy: point them at any Linux server.
- 41:04Michael Kennedy: It could be EC2, it could be DigitalOcean, Hetzner, whatever.
- 41:07Michael Kennedy: And it will install a little agent back
- 41:09Michael Kennedy: so they can sort of issue commands.
- 41:11Michael Kennedy: And then it will manage all the Docker stuff.
- 41:13Michael Kennedy: And it's got like a listing of different services you can pick,
- 41:18Michael Kennedy: like thousands of, you know, like I just want to run Hemidol,
- 41:21Michael Kennedy: the dashboard for organizing and managing my server applications
- 41:24Michael Kennedy: or Hayform or whatever.
- 41:26Michael Kennedy: And it'll just, okay, we'll just do whatever Docker things have to happen there.
- 41:29Michael Kennedy: And it's a little bit more of I want to take a self-hosted type of thing
- 41:34Michael Kennedy: or some kind of service and just stick it in there.
- 41:36Michael Kennedy: I don't know.
- 41:37Matt Lea: I can completely respect that too.
- 41:38Matt Lea: There's part of me, trust me, there's a part of me that wants to go off
- 41:40Matt Lea: and live in a cabin by the woods and have my own servers in there and everything.
- 41:43Matt Lea: And, you know, self-host, it just, it depends, you know,
- 41:48Matt Lea: from a business standpoint so a lot of times i work directly you know with the business side of
- 41:51Matt Lea: people to coordinate with and from a tech side that's really cool from a business side you know
- 41:55Matt Lea: well what if we someone kicks the power plug you know what if this that and the other like
- 42:00Matt Lea: how are we going to maintain it you know and there becomes it just depends where you want to invest
- 42:04Matt Lea: your money and your engineer's time and you could probably i mean you could host you could spin this
- 42:09Matt Lea: up on a dot on a aws instance and not have to worry about all that stuff have it running in there
- 42:14Matt Lea: but then the question is how many engineering hours is it going to take to maintain something
- 42:19Matt Lea: like this versus a managed service?
- 42:20Michael Kennedy: Even though it feels like it's managing it for you, it's still a bit of a puppy because
- 42:24Michael Kennedy: you still got to do backups and it has a way to do it.
- 42:26Michael Kennedy: But if something goes wrong, you still got to, you, it's really down to you to like,
- 42:29Michael Kennedy: well, you upgraded and it corrupted the database.
- 42:31Michael Kennedy: So now what, you know?
- 42:32Michael Kennedy: Yeah.
- 42:33Michael Kennedy: Something weird.
- 42:34Matt Lea: I'm self-hosting N8N right now.
- 42:35Matt Lea: And it keeps like, oh, you got to do another update.
- 42:37Matt Lea: You got to do another update.
- 42:38Matt Lea: How much of my time could I save if I just had N8N on their native platform?
- 42:43Michael Kennedy: I know.
- 42:43Michael Kennedy: I tried it in for a while and it absolutely was just,
- 42:46Michael Kennedy: eventually became a no for me.
- 42:48Michael Kennedy: So I've switched over to Hermes,
- 42:49Michael Kennedy: which is just ironically on the screen right here,
- 42:51Michael Kennedy: which is so good.
- 42:53Michael Kennedy: But it's like a sort of self-improvement.
- 42:56Matt Lea: Oh, I've got Hermes.
- 42:58Matt Lea: I've got it and used it with mixed results.
- 43:00Matt Lea: It made me a little angry when I found it was resizing the context.
- 43:04Matt Lea: It has its own custom AI for changing the context window.
- 43:07Matt Lea: And so I was losing my context.
- 43:09Matt Lea: And then this is more of the model's fault.
- 43:10Matt Lea: The model, I could see the memories it was putting in it.
- 43:13Matt Lea: You know, it's trying to save in plain text.
- 43:15Matt Lea: And it was saying the user gets agitated when I,
- 43:19Matt Lea: it's like a user gets agitated when you hallucinate.
- 43:21Michael Kennedy: Yes, but.
- 43:21Matt Lea: Yeah, exactly.
- 43:22Matt Lea: When you're wrong.
- 43:22Michael Kennedy: It's like a user is agitated.
- 43:24Michael Kennedy: Yeah, I have codex and 5.6 soul back in mind.
- 43:27Michael Kennedy: So it's pretty smart.
- 43:28Michael Kennedy: All right, let's talk logs.
- 43:31Michael Kennedy: Because I think when you go away from the single server,
- 43:34Michael Kennedy: this starts to be one of the things you worry about is like,
- 43:37Michael Kennedy: well, it used to be,
- 43:39Michael Kennedy: I could just look at the logs on the machine.
- 43:41Michael Kennedy: And now they're all over these different places.
- 43:43Michael Kennedy: What do you say about that?
- 43:45Matt Lea: It takes some getting used to, but it can be your best friend.
- 43:48Matt Lea: They have incredible tools.
- 43:50Matt Lea: I was just chasing down a big DDoS attack from one of my biggest customers.
- 43:55Matt Lea: Almost three times the amount of our normal traffic.
- 43:57Matt Lea: It was brutal.
- 43:58Matt Lea: And we're trying to track down like a needle in a haystack there for some other stuff as well.
- 44:03Matt Lea: And they've got really powerful tools.
- 44:05Matt Lea: CloudWatch Insights allows you to query those.
- 44:08Matt Lea: Now, you can spend a lot of money on that.
- 44:09Matt Lea: Be careful.
- 44:10Matt Lea: I had a, we taught a guy how to do queries and CloudWatch insights.
- 44:13Matt Lea: Well, they, it's a, it's a serverless type thing.
- 44:15Matt Lea: It just charges you for every byte it ingests or the log.
- 44:19Matt Lea: So if you tell it to go back five years and read through all the logs,
- 44:22Matt Lea: you're going to have a pretty decent bill there.
- 44:23Matt Lea: So don't do that.
- 44:24Matt Lea: Be careful.
- 44:25Matt Lea: Get your queries figured out in the five minute range and then run them,
- 44:28Matt Lea: you know, so you're not debugging query over and over again with a long date range.
- 44:32Matt Lea: But the, and the metrics are super powerful as well.
- 44:34Matt Lea: You can set logs or you can, they pipe in pretty much everything from your services.
- 44:39Matt Lea: I mean, I couldn't even try and label all of them, but the obvious ones are CPU usage, memory usage, latency on requests for your load balancers, volume of requests, et cetera.
- 44:52Matt Lea: So you can set up these really beautiful dashboards that help me.
- 44:55Matt Lea: When a client comes to me and says, hey, we've got an extra X seconds of latency spiked on this day, I can go in there and zoom in real deep and just go through layers and go all the way down to the database and be like,
- 45:06Matt Lea: okay, this database didn't have enough swap or, you know, this Redis eviction shot through the sky,
- 45:13Matt Lea: all that stuff. So it takes a while to find it, but it pays off so much. And this also goes back
- 45:21Matt Lea: to the Lambda logs. So say you set up everything on EC2, it's not going to pump everything that's
- 45:26Matt Lea: on EC2 automatically to those logs, right? You'd have to specify it. It pumps some base stuff.
- 45:32Matt Lea: But with an EC2 or sorry, an ECS task, it'll pump everything that's getting that you'd see normally if you ran it from Docker, you know, Docker and same thing with Lambdas.
- 45:42Matt Lea: And so just as long as you're not telling some process to write to disk and some log file, which can happen, you know, then you'd have to tell it to pipe that out to CloudWatch logs.
- 45:52Michael Kennedy: So you're saying like if I basically did Docker or Docker Compose Logs-F type of thing where it streams out whatever's coming out of the container, it'll just send that over to Watch?
- 46:03Matt Lea: And those are all by default, super easy to set up.
- 46:06Matt Lea: Just the only problem would be if you said, hey, application layer, write this secondary log to this file.
- 46:12Matt Lea: And that wasn't getting piped out somehow.
- 46:14Matt Lea: I've successfully had it write to a file separately and then told the Docker process to pipe that out to be a tail.
- 46:20Matt Lea: That was the end of the Docker run command was tail.
- 46:22Matt Lea: It's a little sloppy, but you can do it.
- 46:24Matt Lea: A better way to do it would be to use AWS CLI commands
- 46:29Matt Lea: or some of the AWS SDK to pump it to a CloudWatch log stream.
- 46:35Matt Lea: And then you'd have that ready to go.
- 46:36Matt Lea: And a lot of my clients do that.
- 46:38Matt Lea: It's a little cleaner than the first one.
- 46:39Michael Kennedy: Sure.
- 46:40Michael Kennedy: Another option might be set up two destinations for the logging
- 46:42Michael Kennedy: because you can set multiple, you could say this file and standard out
- 46:46Michael Kennedy: and just let it rip.
- 46:47Michael Kennedy: And then just that becomes part of the Docker logs.
- 46:49Matt Lea: Yeah, exactly. So just, you know, it's pretty simple once you get in there. Talked about insight. But yeah, the metrics. Another thing about metrics is you can set alarms, not just to wake you up if something bad's happening, but also to trigger auto scaling, which is really nice. And so you could scale up and down based on not just. We had something. We were pulling from queues. We had a worker. It was not serverless. It was provisioned. And we had a worker. And when the queue got too high, you know, got too big, we wanted it to boot up another one.
- 47:19Matt Lea: one but that's normally if you just use a default one it's just like cpu or memory or something like
- 47:24Matt Lea: that but we were able to configure it so it would pull from the count of messages in flight and use
- 47:30Matt Lea: that to auto scale up and down and that was really convenient that wasn't that was a client request
- 47:34Michael Kennedy: for that one and that's cool yeah it seems like it makes way more sense than just cpu yeah because
- 47:39Michael Kennedy: maybe you've got some process that spin off like an analytics thing pin in the cpu but it's not
- 47:44Michael Kennedy: really that busy right and scaling won't make a difference but if you've got something like maybe
- 47:48Michael Kennedy: average response time if it gets too big.
- 47:50Michael Kennedy: Just scale up.
- 47:52Michael Kennedy: If it's over 300 milliseconds on average or median,
- 47:54Michael Kennedy: we just need more.
- 47:56Matt Lea: Yeah, and you can pop all that stuff into your chat of choice.
- 47:59Matt Lea: We've got all that for my clients.
- 48:01Matt Lea: It goes right into a channel and on-call people jump on it.
- 48:03Matt Lea: I don't do on-call work anymore.
- 48:05Matt Lea: I just set it up so I train the new guys to do it.
- 48:08Michael Kennedy: Yeah, that's the way to do it.
- 48:09Michael Kennedy: Tell me in the morning what you did, what went wrong.
- 48:12Michael Kennedy: Yeah, excellent.
- 48:13Michael Kennedy: Okay, so that's logs.
- 48:15Michael Kennedy: I feel like people probably got this.
- 48:17Michael Kennedy: don't hand deploy, but also a little bit of a, well, then what? You know, CI/CD, right?
- 48:22Matt Lea: Yep. So I'm going to go take a time machine back about 20 years, a long time ago, we would
- 48:27Matt Lea: basically FTP up, you know, stuff from, from our computers to a server or something like that.
- 48:32Matt Lea: And then it would run. So if you didn't, depending on how your deployment was,
- 48:37Matt Lea: kind of have to hand go through it. Well, nowadays people want to be moving super fast.
- 48:41Matt Lea: So we've created these systems that you just commit it gets approved from the pull request
- 48:45Matt Lea: from whomever. And then we rebuild the image like we talked about. If it's Docker, we rebuild the
- 48:50Matt Lea: image. If it's Lambda, we build whatever and upload the file as we need. But you also can do database
- 48:57Matt Lea: migrations as well. I've got clients that use MySQL and their table updates all run through there.
- 49:03Matt Lea: So you can have that all run there. You can have automated tests, test-driven development. If that
- 49:09Matt Lea: is something that suits your need, I'd encourage it for anybody that's big enough and has something
- 49:12Matt Lea: They don't want to go down.
- 49:14Matt Lea: And if you're just starting, I'm a little looser on it.
- 49:16Matt Lea: But having those build pipelines in place saves you a ton of time.
- 49:20Matt Lea: And of course, if they fail, have them send you a message.
- 49:24Michael Kennedy: So do you recommend CodeCommit from AWS?
- 49:27Matt Lea: No, I've actually, a long time ago, I had my clients migrate off CodeCommit.
- 49:30Matt Lea: Is CodeCommit even running?
- 49:32Matt Lea: CodeCommit is different than CodeBuild and CodePipeline.
- 49:34Matt Lea: It was their GitHub.
- 49:36Matt Lea: Oh, I think it might be shutting down.
- 49:38Matt Lea: Okay, sorry, I got this backwards.
- 49:39Matt Lea: Yeah, so CodePipeline and CodeBuild.
- 49:41Matt Lea: So pipeline is more of an orchestration layer.
- 49:43Matt Lea: Okay.
- 49:43Matt Lea: It listens for the commit and then you can tell it to do a bunch of stuff, upload S3,
- 49:48Matt Lea: you know, or deploy or whatever.
- 49:50Matt Lea: Code build is actually kind of ECS.
- 49:53Matt Lea: It's like, it spins up a Docker container or a Lambda now.
- 49:56Matt Lea: That's actually kind of new.
- 49:57Matt Lea: And that you can have that Docker container.
- 49:59Matt Lea: That's just a build container, build your application container.
- 50:02Matt Lea: It's a little, it sounds a little weird, but basically you could just have it run your Docker
- 50:06Matt Lea: build in the cloud, you know, and it'll just do it.
- 50:09Matt Lea: And you say Docker push and pushes it out to ECR.
- 50:11Matt Lea: the elastic container repo that's basically where the images are stored for docker and then then the
- 50:17Matt Lea: next step that it'll throw it back to code pipeline you sell code pipeline do a red green deploy do a
- 50:22Michael Kennedy: regular deploy do whatever interesting i never really thought about it but it makes perfect
- 50:26Michael Kennedy: sense that they wouldn't be going docker pull from docker hub why do you leave their cloud right
- 50:30Matt Lea: well and you can but they've also created this and you've got your granular iam permissions like
- 50:35Matt Lea: we talked about before iam roles that you can now super secure without having to have two different
- 50:40Matt Lea: things in the mix. They do that a lot. They take whatever's working out there and they just rebuild
- 50:44Michael Kennedy: it. And that's probably why they have billion services at this point. Exactly. That's why the
- 50:48Michael Kennedy: console looks like it does. All right. Now we've got to pick up some speed. We're still on our,
- 50:52Michael Kennedy: on a thing. So maybe give us a little bit of a lightning round in the last couple here.
- 50:55Matt Lea: Okay. I knew I put it in here. I was looking at my notes and I've got it in small text here. Yes.
- 50:59Matt Lea: So SSM session manager. Okay. So like we talked about before, so if you boot up an ECS,
- 51:04Matt Lea: sorry, EC2, EC2, that's the old school virtual machines, the big chunky ones that people like
- 51:08Matt Lea: to nurse, you have the option to put an SSH key on there.
- 51:13Matt Lea: So that way you can get into it and then do all that hand tuning you're doing.
- 51:17Matt Lea: Again, I kind of touched on this.
- 51:18Matt Lea: We'll go fast on this one.
- 51:20Matt Lea: Use SSM session manager instead of the bastion.
- 51:23Matt Lea: If you can, it'll make it a lot easier for you.
- 51:25Matt Lea: So now we just caught some time up there because I already covered it.
- 51:27Michael Kennedy: Yeah, perfect.
- 51:28Michael Kennedy: Yeah, I love it.
- 51:29Michael Kennedy: Okay, this is cool.
- 51:29Michael Kennedy: That's really good advice.
- 51:31Michael Kennedy: I mean, S3 public, why not?
- 51:33Matt Lea: This one, I have seen so many clients stunned by it.
- 51:37Matt Lea: I did an assessment, which is like my entry, like the first thing I do with people a lot of times is a short-term assessment to make,
- 51:43Matt Lea: to give them an idea where they're at, and I map out the whole system.
- 51:46Matt Lea: And they were just telling me, they were like, we really can't have these files public.
- 51:51Matt Lea: They're binary files.
- 51:52Matt Lea: Like, they would be big trouble for us if they were, you know, if anybody could hack it, could you check that out?
- 51:56Matt Lea: And sure enough, the bucket was public to anybody on the planet.
- 51:59Matt Lea: They just grabbed it out of there.
- 52:00Matt Lea: It would have been tough to crawl it because they don't have listing publicly, but it would have, could have,
- 52:04Matt Lea: The pattern wasn't so bad that you couldn't have had something brute force.
- 52:07Matt Lea: You could like enumerate, attack it.
- 52:09Matt Lea: Yeah.
- 52:09Matt Lea: Yeah.
- 52:10Matt Lea: So S3 is a wonderful binary storage.
- 52:12Matt Lea: It is not a CDN.
- 52:14Matt Lea: It is not cost effective to serve up things at mass very fast through that.
- 52:19Matt Lea: So you want to use the right tools for the job.
- 52:22Matt Lea: And it's also secure-ish.
- 52:23Matt Lea: But what you can do is you can do cloud front signed URLs.
- 52:27Matt Lea: So you could say you could be very granular with your permissions.
- 52:30Matt Lea: this like you said with the service earlier i could say this url is valid for exactly this
- 52:36Matt Lea: amount of time and no longer and it goes to exactly this one file and no other files and
- 52:40Matt Lea: i can send that out there you can do the same thing with uploads actually the uploads would go
- 52:44Matt Lea: quickly to s3 but this you signed uploads so that way you're very that you've got this url lasts for
- 52:51Matt Lea: five minutes you know two minutes 30 seconds whatever and you can get the upload done that
- 52:55Matt Lea: that way so just i'm going to reiterate signed uploads with s3 make the bucket private use a
- 53:00Matt Lea: signed url and then sign um use cloudfront and then if you need to lock it down use signed urls
- 53:06Matt Lea: on the cloudfront side um but cloudfront is going to be so much more cost effective to serve up a
- 53:12Matt Lea: lot high volume of binary or you know any any assets javascript right it's optimized for it yeah
- 53:17Michael Kennedy: yeah so just um definition wise cloudfront they're cdn yeah that's right okay cost do people care
- 53:24Michael Kennedy: about cost aws i don't know is that a thing uh so i i've been doing an experiment proactive
- 53:30Matt Lea: engagement where i've got agents crawling around the internet uh looking for people complaining
- 53:34Matt Lea: and cost is pretty much the number one thing why the heck did this cost me this much why the heck
- 53:37Matt Lea: did it cost me that much you know and if you don't understand the costs it's really it's ugly but
- 53:42Matt Lea: learn to use cost explorer because they're going to have a new service that comes out next we use
- 53:47Matt Lea: there i wrote about this in march march they released a new charge if you didn't upgrade
- 53:51Matt Lea: from older database versions they had a past end of life fee so all of a sudden my clients were
- 53:56Matt Lea: getting smacked with about four grand a month and end of life fees and you're just like huh that
- 54:00Michael Kennedy: where did that come from so but we didn't know that's terrible they're not even using it it's
- 54:04Matt Lea: good yeah well they were using the database they just hadn't they should they should have moved
- 54:09Matt Lea: up they should yeah yeah on IWS's side it's expensive to keep that older stuff running so
- 54:14Matt Lea: it kind of makes sense but I wish they would have given us a better heads up but either way so I we
- 54:18Matt Lea: go in there in the cost explorer and i was able to find that exact one it's really if you know what
- 54:22Matt Lea: you're doing and you know how to switch between services and usage types and breakdowns you can
- 54:27Matt Lea: find exactly where that jump is where it came from and then you can usually track that back to a very
- 54:31Matt Lea: specific resource um and it also allows you to do tagging which is great you can tag production you
- 54:35Matt Lea: can tag staging you can tag microservice x whatever you know so you can tag them and you can say look
- 54:40Michael Kennedy: qa is actually costing us twenty thousand dollars a month can we just if you had hardware tagged as
- 54:45Michael Kennedy: QA, yeah.
- 54:46Michael Kennedy: Nice.
- 54:46Michael Kennedy: Just to kind of bring this home here,
- 54:48Michael Kennedy: and it's a beautiful loop back in a terrible or morbid way,
- 54:51Michael Kennedy: but there was this story of this woman who created this,
- 54:55Michael Kennedy: Cara, it's the app, but she created this.
- 54:58Michael Kennedy: She really disliked AI-generated art because she was an artist,
- 55:02Michael Kennedy: so she created this app that would use AI to tell
- 55:05Michael Kennedy: if a piece of art was legit or AI.
- 55:07Michael Kennedy: And she's coolified to host it at Vercel.
- 55:10Michael Kennedy: Got a $95,000 Vercel bill in like a couple of days.
- 55:15Michael Kennedy: As a student or just an independent artist or something like that, it was really not good.
- 55:18Matt Lea: Yeah, that's not good.
- 55:22Matt Lea: I mean, I don't want to down on anybody, but that's probably a token cost.
- 55:25Matt Lea: And as we're finding out, the costs can be prohibitive.
- 55:28Michael Kennedy: I think it was just CPU, actually.
- 55:30Michael Kennedy: I don't think it actually was.
- 55:33Michael Kennedy: It became like number one on the App Store or something like that.
- 55:37Michael Kennedy: And Vercel had sent her a warning like, hey, your bill is blowing up.
- 55:41Michael Kennedy: You need to either approve or disapprove.
- 55:44Michael Kennedy: there was no upper bounds on cost set at all.
- 55:47Michael Kennedy: And she didn't respond to the warning emails
- 55:49Michael Kennedy: for like three or four days or something like that.
- 55:51Michael Kennedy: It was like a cascading set of lessons
- 55:53Michael Kennedy: that should be taken from this.
- 55:54Michael Kennedy: Wow.
- 55:55Matt Lea: Yeah, that's, I mean, definitely set up cost alerts.
- 55:58Matt Lea: Keep an eye on it.
- 55:59Matt Lea: You can set up budgets in AWS.
- 56:01Matt Lea: And I mean, I, every week,
- 56:03Matt Lea: so I have office hours with my clients.
- 56:05Matt Lea: It's like an advisory session
- 56:06Matt Lea: and I kick it off typically budget sheet
- 56:08Matt Lea: right in front of me.
- 56:09Matt Lea: So I was like, okay, here we're at,
- 56:10Matt Lea: we saw this spike, what happened there?
- 56:12Matt Lea: Oh, you know.
- 56:13Michael Kennedy: Sometimes spikes are amazing.
- 56:14Michael Kennedy: I mean, that means people are using your stuff, but sometimes they're not.
- 56:17Michael Kennedy: Yeah.
- 56:18Michael Kennedy: All right.
- 56:18Michael Kennedy: You know, another time that they're not is when you're getting DDoSed.
- 56:21Matt Lea: Yeah, this brings it right in.
- 56:22Matt Lea: So DDoSs are everywhere.
- 56:24Matt Lea: Cyber attacks all the time.
- 56:25Matt Lea: The bigger you are, once you get to that big league, they're coming for you from the front.
- 56:29Matt Lea: They're coming for phishing attacks from the side, from the back, from everything you can.
- 56:33Matt Lea: The way we deal with that on AWS, there's a couple different ways.
- 56:37Matt Lea: WAF is my tool of choice typically.
- 56:39Matt Lea: There's some that you can,
- 56:41Matt Lea: they've got some tools
- 56:42Matt Lea: where they do some really fancy analytical stuff
- 56:44Matt Lea: to block stuff.
- 56:46Matt Lea: And that can work, but at volume,
- 56:48Matt Lea: it's not really the most cost effective.
- 56:51Matt Lea: You know, if you're,
- 56:51Matt Lea: every request that comes through,
- 56:53Matt Lea: you're running through some AI model,
- 56:54Matt Lea: it's going to add up real quick.
- 56:55Matt Lea: But there's a lot of stuff you can do that's obvious.
- 56:57Matt Lea: Like, okay, are they looking for the WordPress admin?
- 57:00Matt Lea: And you're not running WordPress.
- 57:01Michael Kennedy: That should just be an absolute flag.
- 57:02Michael Kennedy: Like if it's slash WP, you know,
- 57:05Michael Kennedy: WP admin.php, Instaban is what it should be.
- 57:08Matt Lea: Yep, you got it.
- 57:08Matt Lea: You can do rate limiting as well, you know, and then you do rate limiting by route.
- 57:12Matt Lea: We just did that for a client.
- 57:14Matt Lea: There's a lot of different, yeah, there's a lot of different fun stuff you can do there.
- 57:17Matt Lea: And they've got some of those things already kind of packaged in there.
- 57:20Matt Lea: So you don't always need to be using like the smartest, like, you know, an AI model to evaluate.
- 57:25Matt Lea: It's real simple.
- 57:25Matt Lea: If the URL is, you know, something in the well-known thing that shouldn't be there, then you know it.
- 57:32Matt Lea: Sorry, I'm getting sidetracked.
- 57:33Matt Lea: You can also do challenges.
- 57:34Matt Lea: So that's a JavaScript challenge that runs beneath the scene, like in your browser, and the user won't even really notice it.
- 57:40Matt Lea: Or you can do a captcha if you really want to get into it.
- 57:43Matt Lea: Captchas are a bit more expensive.
- 57:44Matt Lea: Day challenges are much more cost effective.
- 57:47Matt Lea: But there's a time and a place for them.
- 57:48Matt Lea: You just got to kind of phenomps your way to how much you want to spend on it.
- 57:51Michael Kennedy: Yeah, I've found that turnstile flair has gone a long ways towards keeping the bots away at the same time not being, you know, I just can't take another find the fire hydrant.
- 58:01Michael Kennedy: I can't do it.
- 58:02Michael Kennedy: You know, it's like, find all the fire hydrants like I did.
- 58:04Michael Kennedy: And then one will fade in later.
- 58:06Michael Kennedy: And it'll say, well, you didn't find all of them.
- 58:08Michael Kennedy: Now you're banned because you didn't find them.
- 58:09Michael Kennedy: So now you're going to do like fire hydrants.
- 58:11Michael Kennedy: I can't take it.
- 58:11Michael Kennedy: Or bicycles, you know.
- 58:12Matt Lea: Yeah, well, that's where the challenges come into play.
- 58:15Matt Lea: If they're using something like API-FI, which is if I'm trying to crawl something at scale,
- 58:20Matt Lea: that's my tool to go to.
- 58:21Matt Lea: It's not going to find that.
- 58:23Matt Lea: But, you know, it'll do pretty good.
- 58:25Matt Lea: You also can block entire countries, it turns out.
- 58:27Matt Lea: I've got clients that just decided to block France once.
- 58:29Matt Lea: I'm like, why?
- 58:30Matt Lea: We can figure out this traffic.
- 58:32Michael Kennedy: They beat their team in the World Cup and that's it.
- 58:35Michael Kennedy: No more access for France.
- 58:36Michael Kennedy: Sorry, our French friends.
- 58:38Michael Kennedy: It's crazy.
- 58:40Michael Kennedy: All right.
- 58:40Michael Kennedy: Well, let's spend a few minutes as we kind of wind down the show.
- 58:44Michael Kennedy: Now people got the idea.
- 58:45Michael Kennedy: I mean, nobody's calm at 3 a.m.
- 58:48Michael Kennedy: I think this is true.
- 58:49Michael Kennedy: I've gone through the experience of multiple times, like your website's down.
- 58:54Michael Kennedy: Oh, no, surely not.
- 58:54Michael Kennedy: Oh, my gosh.
- 58:55Michael Kennedy: And then why?
- 58:56Michael Kennedy: And then there's just all this hack.
- 58:58Michael Kennedy: Did I do something wrong?
- 58:59Michael Kennedy: It's never fun when you're in it.
- 59:01Michael Kennedy: And that's kind of your Cloud War Games thing, right?
- 59:04Michael Kennedy: To help people through that.
- 59:05Matt Lea: Yeah, you'd rather learn, you know, get the stress inoculation during a simulation, a 45-minute game,
- 59:12Matt Lea: than at 3 a.m., you know, or when the entire board of directors is standing behind you
- 59:17Matt Lea: because you're the guy that's supposed to fix it.
- 59:19Matt Lea: So I saw, I mean, many times I saw it and I would be working with juniors and I'd try and,
- 59:24Matt Lea: I'd be, you know, doing my, in a real incident, you know, trying to solve the problem.
- 59:29Matt Lea: I'd pass something out to them, you know, so, okay, you look at this.
- 59:32Matt Lea: trying to get them to learn and they just you know they'd freeze up and just like i don't know and
- 59:36Matt Lea: then you'd ask them later like hey what was the problem you know you do that now so i mean another
- 59:40Matt Lea: part of the war games is afterwards we always post-mortem and if you ever have an outage and
- 59:44Matt Lea: especially if you got people freezing up you should post-mortems every time uh that's the way you learn
- 59:49Matt Lea: and that's actually where i got most of the content for things i run people through on cloud war games
- 59:53Michael Kennedy: from things i've actually suffered through so this is a program i can go sign up for and is it like a
- 1:00:00Matt Lea: paid course or a community or what's the experience no so so it's it's actually evolving right now
- 1:00:06Matt Lea: um we were running it where i did monthly ones and just the scheduling was complex so we're we're
- 1:00:13Matt Lea: adapting a little bit um the you can sign up and you can get access to a bunch of what i call
- 1:00:18Matt Lea: asynchronous challenges for free completely free there's just we'll send you one every week for
- 1:00:22Matt Lea: i don't remember how long it goes um but the thing where we're trying to move into is trying to
- 1:00:28Matt Lea: move it into, the Schematical has got a community offering basically where we, it's kind
- 1:00:33Matt Lea: of more like coaching and a little bit more ongoing. So we're trying to move it in there
- 1:00:36Matt Lea: where we can have it. I don't know, trying, I'm trying to get people in discord so we can
- 1:00:41Matt Lea: plan these things a little bit better. It's a bit, you know, email list is great, but there's
- 1:00:44Matt Lea: not like an organic, like, Hey, let's run a game right now. You know? Yeah. Discord is nice. Yeah.
- 1:00:49Matt Lea: Yeah. And I'm also working this in my, we, we brought this into my consulting as well for the
- 1:00:54Matt Lea: big companies is I do this for training, but also it's a great way to figure out, especially with AI
- 1:01:00Matt Lea: resumes and all that stuff. It's a great way to figure out if someone actually knows their stuff.
- 1:01:04Matt Lea: And even if they do know their stuff, are they a team player? So you can throw, you know,
- 1:01:07Matt Lea: a couple of your applicants in there, candidates, and you'll see if one of them's my comics,
- 1:01:13Matt Lea: the lone wolf programmer who doesn't talk to anybody and just like goes heads down and,
- 1:01:17Matt Lea: or are they a team player? And they're like communicating, they're shouting out,
- 1:01:19Matt Lea: Hey, you try this. And that those soft skills. I didn't know this when I first started it,
- 1:01:23Matt Lea: but it really lets you find the people that are soft skills that you want being a leader of a team.
- 1:01:27Matt Lea: And so we're working with bigger companies to run that,
- 1:01:31Matt Lea: both to train their people internally, but also as a recruiting tool.
- 1:01:34Michael Kennedy: Yeah, that's super neat. I like it.
- 1:01:37Michael Kennedy: Thinking back of why did I freak out,
- 1:01:39Michael Kennedy: a lot of times it's because I did something a couple of years ago
- 1:01:43Michael Kennedy: and I had forgotten how I did it and even where the thing I needed was.
- 1:01:47Michael Kennedy: Like one of the most annoying ones I remember is the SSH or just the TLS certificate.
- 1:01:53Michael Kennedy: I was using for MongoDB to encrypt expired.
- 1:01:57Michael Kennedy: I'm like, why?
- 1:01:58Michael Kennedy: First of all, I'm like,
- 1:01:58Michael Kennedy: why did I set it to be a one year expiry
- 1:02:01Michael Kennedy: for an internal cert?
- 1:02:02Michael Kennedy: I really should have made it longer
- 1:02:03Michael Kennedy: or I should have written down what I did.
- 1:02:05Michael Kennedy: But then I couldn't even remember,
- 1:02:06Michael Kennedy: like, well, what was the command I ran?
- 1:02:08Michael Kennedy: And like, how just,
- 1:02:09Michael Kennedy: so I was just running around,
- 1:02:10Michael Kennedy: like checking all these old logs and projects.
- 1:02:13Michael Kennedy: Where is it?
- 1:02:14Michael Kennedy: What are the things that you see
- 1:02:16Michael Kennedy: that drive people crazy that they could maybe,
- 1:02:19Michael Kennedy: what are some of the learnings, I guess,
- 1:02:20Michael Kennedy: you're getting out of this?
- 1:02:21Michael Kennedy: Like for me, it would be like, write the stuff down in a consistent place so I can get to it calmly.
- 1:02:26Matt Lea: Right. Well, and so I hate to say some people don't like it, but a problem you just had there would be well fixed by a managed service of some type.
- 1:02:34Matt Lea: AWS is KMS is a certificate manager.
- 1:02:37Matt Lea: You know, these days in the age, you know, it saves you how many, how much money would you have paid that night?
- 1:02:42Matt Lea: Or did it cost the company that now you could just pay a AWS KMS?
- 1:02:46Matt Lea: You know, that's it would have saved you probably twice as much or a lot more than you spent that night.
- 1:02:50Matt Lea: headaches you know yeah yeah so um i'd have more hair at least um yeah as far as the common ones
- 1:02:57Matt Lea: it's the most common ones i see is misconfigured im you know misconfigured bpc public s3 happens
- 1:03:05Matt Lea: oh too much i can i can't do an audit without finding something in s3 that's not supposed to
- 1:03:08Matt Lea: be public you know sales numbers something like that you don't want your competitor to have so
- 1:03:13Matt Lea: those are the most common ddos is like i said every all the time um but then it's the it's the one
- 1:03:18Matt Lea: off. There's one I do. I don't want to disclose it because I love it, but there's a ransomware
- 1:03:22Matt Lea: attack. It's my advanced one. I call it the Kobayashi Maru because it's pretty brutal.
- 1:03:28Matt Lea: Luckily, I've never had a client hit with it, but it is a brutal attack that's specific to AWS,
- 1:03:33Matt Lea: and it can be run one command if you've got the right privileges, and it's brutal.
- 1:03:38Michael Kennedy: That's not good. That's not good. I saw that you've got a couple of these live events on video,
- 1:03:44Michael Kennedy: like a beginner one and a more advanced one.
- 1:03:47Michael Kennedy: So maybe I'll link to these for people in the show notes.
- 1:03:49Matt Lea: Sounds good.
- 1:03:50Matt Lea: And they're on youtube.com slash grammatical if you need it.
- 1:03:53Michael Kennedy: All right.
- 1:03:54Michael Kennedy: Well, maybe bring it home to people.
- 1:03:56Matt Lea: Sounds good.
- 1:03:56Matt Lea: Closing advice.
- 1:03:57Matt Lea: Since we've been talking, I came up with like three more.
- 1:03:59Matt Lea: So if anybody wants my other ones, you know, reach out.
- 1:04:02Michael Kennedy: Want a lightning round?
- 1:04:03Michael Kennedy: Let's want a lightning round them real quick.
- 1:04:04Matt Lea: Sure.
- 1:04:05Matt Lea: Well, yeah.
- 1:04:06Matt Lea: So AI, SageMaker for your Python crew, SageMaker.
- 1:04:10Matt Lea: Let's check that service out.
- 1:04:11Matt Lea: It's if you want the GPUs, have more granular control than you can on basically any other service.
- 1:04:17Matt Lea: And it's Python first, data science first.
- 1:04:19Matt Lea: So if you're data science, you know, you like it's check out SageMaker.
- 1:04:23Matt Lea: If you're not that stuff, Bedrock or if you just generic stuff, Bedrock's amazing as well.
- 1:04:27Matt Lea: It's their Netflix for AI. Phenomenal. I'd check that out.
- 1:04:30Matt Lea: The other one, the Data Lake Stack I was talking about earlier.
- 1:04:32Matt Lea: I need to do some Terraform scripts for this, but they have I didn't talk about adventure in architecture, but great cues that you can use.
- 1:04:40Matt Lea: Kinesis is a Firehose queue, meaning that you can have a lot of different things consuming from it.
- 1:04:44Matt Lea: So if you've got 10 different worker services, they all can consume from it.
- 1:04:47Matt Lea: It's great.
- 1:04:48Matt Lea: Pump that.
- 1:04:48Matt Lea: So whenever your application layer fires off an event, hey, this was updated, a user was created, a sale was made, pump it into Kinesis.
- 1:04:55Matt Lea: And then you can have Firehose save that as a parquet file to S3.
- 1:05:00Matt Lea: It's extremely cheap.
- 1:05:01Matt Lea: It doesn't cost fractions of a penny.
- 1:05:03Matt Lea: It's so cheap.
- 1:05:04Michael Kennedy: There's super interesting Python libraries that you can mount S3 parquet files and stuff and do query.
- 1:05:09Michael Kennedy: There's really a lot of cool integrations with Python and Parquet, yeah.
- 1:05:12Matt Lea: Yeah, and you can query it with Glue,
- 1:05:15Matt Lea: which I believe has some Python in there.
- 1:05:18Matt Lea: But if you didn't want to do that, you're just an SQL guy,
- 1:05:20Matt Lea: Athena can talk and query to it as well.
- 1:05:23Matt Lea: So I need to do some writing down on this,
- 1:05:24Matt Lea: but it's a phenomenal data-like thing.
- 1:05:27Matt Lea: Don't try and keep sales from 2003 in your production database.
- 1:05:31Matt Lea: Move all that stuff, that old stuff, off of it.
- 1:05:33Matt Lea: Keep your production database nice and lean and moving fast.
- 1:05:36Michael Kennedy: Awesome.
- 1:05:37Michael Kennedy: Well, Matt, thank you for being here.
- 1:05:39Michael Kennedy: It's been really awesome.
- 1:05:40Michael Kennedy: I'll put all your contact info in the show notes
- 1:05:42Michael Kennedy: for people who want to get in touch.
- 1:05:44Michael Kennedy: And yeah, thanks for keeping our clouds a little healthier.
- 1:05:46Matt Lea: Yeah, sounds good.
- 1:05:47Matt Lea: Happy to help.
- 1:05:48Matt Lea: Feel free to reach out to me.
- 1:05:49Matt Lea: And, you know, thanks for having me.
- 1:05:51Michael Kennedy: Yeah, you bet.
- 1:05:52Michael Kennedy: Bye-bye.
- 1:05:52Michael Kennedy: This has been another episode of Talk Python To Me.
- 1:05:55Michael Kennedy: Thank you to our sponsors.
- 1:05:56Michael Kennedy: Be sure to check out what they're offering.
- 1:05:57Michael Kennedy: It really helps support the show.
- 1:05:59Michael Kennedy: Take some stress out of your life.
- 1:06:01Michael Kennedy: Get notified immediately about errors and performance issues
- 1:06:04Michael Kennedy: in your web or mobile applications with Sentry.
- 1:06:07Michael Kennedy: Just visit talkpython.fm/century and get started for free.
- 1:06:12Michael Kennedy: Be sure to use our code talkpython26.
- 1:06:15Michael Kennedy: That's talkpython, the numbers two, six, all one word.
- 1:06:19Michael Kennedy: And it's also brought to you by Talk Python Courses.
- 1:06:22Michael Kennedy: Course completion certificates are now live.
- 1:06:25Michael Kennedy: If you finished a course, there's a certificate waiting for you on your account page right now.
- 1:06:30Michael Kennedy: Download it as a PDF or add it to your LinkedIn profile with one click under licenses and certifications.
- 1:06:36Michael Kennedy: Same section as your formal degrees.
- 1:06:38Michael Kennedy: Visit training.talkpython.fm/account to see what you've already earned.
- 1:06:43Michael Kennedy: If you or your team needs to learn Python,
- 1:06:45Michael Kennedy: we have over 270 hours of beginner and advanced courses on topics
- 1:06:49Michael Kennedy: ranging from complete beginners to async code, Flask, Django, HTML, and even LLMs.
- 1:06:56Michael Kennedy: Best of all, there's no subscription in sight.
- 1:06:58Michael Kennedy: Browse the catalog at talkpython.fm.
- 1:07:01Michael Kennedy: And if you're not already subscribed to the show on your favorite podcast player,
- 1:07:05Michael Kennedy: what are you waiting for?
- 1:07:06Michael Kennedy: just search for Python in your podcast player
- 1:07:08Michael Kennedy: we should be right at the top
- 1:07:09Michael Kennedy: if you enjoyed that geeky rap song
- 1:07:11Michael Kennedy: you can download the full track
- 1:07:12Michael Kennedy: the link is actually in your podcast blur show notes
- 1:07:15Michael Kennedy: this is your host Michael Kennedy
- 1:07:17Michael Kennedy: thank you so much for listening
- 1:07:18Michael Kennedy: I really appreciate it
- 1:07:19Michael Kennedy: I'll see you next time
- 1:07:45Matt Lea: I think is the norm.