Latest / AI Infrastructure / Distracted by AI
Transcript
- 0:02Well, this is episode 27 of the AI
- 0:05infrastructure podcast.
- 0:07This is an intro coming from Cornwall, a
- 0:09windy one.
- 0:11And today I'm driving to London, to the
- 0:13big city
- 0:15for the AI engineer conference. So, if
- 0:18you're there Wednesday, Thursday, Friday
- 0:21in London,
- 0:22do say hello.
- 0:24Otherwise, I will be
- 0:27uh reporting back from that event. I'm
- 0:29sure it will be very interesting to meet
- 0:31lots of
- 0:32AI enthusiasts.
- 0:34And um
- 0:36enjoy the pod. I think
- 0:38it was a bit of a
- 0:40weird one where
- 0:43I was talking about the documentation
- 0:44problem again
- 0:45that AI
- 0:47presents.
- 0:49And uh we were just rambling about other
- 0:51things. So, hopefully enjoy it.
- 0:54Um
- 0:56if you didn't, comment below. If you
- 0:58did,
- 1:00like it and comment below.
- 1:02Otherwise, please enjoy the pod.
- 1:04Good morning, Vincent. Good morning.
- 1:07And it's Good Friday. That's nice.
- 1:10I didn't
- 1:10>> You're on holi- You're on holiday? No.
- 1:12No, I have to do some work. But it's
- 1:14okay, I have to catch up on some work.
- 1:16It's pretty interesting work, actually.
- 1:18Okay. So, I I'm just editing the uh doc
- 1:22that we share. I was adding some uh
- 1:25things to talk about. Oh, let me just I
- 1:27guess this will be edited out.
- 1:30Uh so, perhaps I I
- 1:32could we could start with a quick fire
- 1:34questions for you.
- 1:36I'm going to probe the depths of your
- 1:38mind. Yeah. Um okay, the the
- 1:41the first couple of bits are related to
- 1:42work and which I might have uh delete,
- 1:44but uh whatever. Uh sorry, um
- 1:47Claude Code is blocked. I need to be
- 1:49unblocked as soon as possible.
- 1:52Sorry. Cloud com- Claude Code comes
- 1:55first.
- 1:55>> Just it asked me something. For local
- 1:57compose test, so we should keep the test
- 1:59for a secret command
- 2:01being available, I believe.
- 2:04Okay. Um yeah, sorry. Go ahead. We
- 2:07talked about docs uh
- 2:09last pod and you recommended keeping
- 2:12documentation in the source code.
- 2:15And you showcased some pretty cool
- 2:17abilities. I just wanted to say that
- 2:19like at work, we did manage to convert
- 2:22all our Confluence to markdown, which
- 2:24was great. But then, once it was in
- 2:27markdown,
- 2:29uh it was too tempting to to to to use
- 2:34AI to basically improve the docs. And
- 2:36then, of course,
- 2:38Uh pardon?
- 2:40And last time you mentioned that Yeah,
- 2:41and then people created different copies
- 2:43with different type of angles, right?
- 2:44And Yeah, I wouldn't say co- We didn't
- 2:47go down the route of copies, but we got
- 2:50we got into almost
- 2:52a worse situation in a way. Perhaps it
- 2:55is the same as copies, but but since it
- 2:57was rewritten, we couldn't decide what
- 2:59the source of truth was because people
- 3:01were were saying like, "Well, no one's
- 3:03actually gone through all these 500 uh
- 3:06files of rewritten documentation. So, we
- 3:09can't like sign it off cuz it's just too
- 3:11big of of a rewrite. Essentially, we
- 3:14couldn't decide we couldn't like we
- 3:16couldn't call it a a success because
- 3:19because
- 3:28so, I guess it maybe is a is a story to
- 3:31to
- 3:32to say around AI where maybe we should
- 3:35just go slower or something like that
- 3:37just to get the buy-in. But at the same
- 3:39time, it's just so easy to to tell AI
- 3:43uh rewrite all the docs in different
- 3:46ways. And it works for one person, but
- 3:49it doesn't work for a team is what I was
- 3:50trying to say. Well, okay. Maybe you
- 3:52don't have anything to say to that, but
- 3:53I just wanted to
- 3:54Why didn't it work for for for a team?
- 3:57Because the team
- 3:59the the Confluence or the documentation
- 4:02that we have was was pretty extensive.
- 4:04There's like 500 pages. Yeah. And no one
- 4:07was going to
- 4:08Most of the team were were not prepared
- 4:11to like go through the documentation
- 4:14and
- 4:15and basically, you know, approve it.
- 4:17They just did they felt uneasy. Approve
- 4:19it because the changes were too too much
- 4:21like it needed additional review and
- 4:22approval of like the changes that were
- 4:24introduced. Yeah, but
- 4:26when you're in a big team like
- 4:27effectively, the whole team had to get
- 4:30behind the documentation cuz the
- 4:31documentation sort of describes how to
- 4:33use the platform, how to do this and
- 4:35that and the other across all different
- 4:37sort of aspects across a very large
- 4:39landscape. So,
- 4:42so basically, it wasn't because one
- 4:45person needed to make a decision. It it
- 4:47was like the whole team really needed to
- 4:49get behind the rewrite and it was just
- 4:51impossible.
- 4:52>> Okay. No, because like there's this
- 4:54couple of
- 4:55interesting sharings that I read just
- 4:58today one and then there's another one
- 5:00that um I don't forgot forget the
- 5:02context. Um but you mentioned something
- 5:04about if you create like docs
- 5:08all over your repo in markdown, they
- 5:10become maybe harder to discover than
- 5:13Confluence
- 5:14if you just use Git as a as a as a
- 5:16storage mechanism, which is something I
- 5:18always say, right? You should have your
- 5:19docs in Git. But also, people are saying
- 5:22you need to have your docs available to
- 5:23the agent because ultimately, the agents
- 5:26are going through these faster than
- 5:27humans.
- 5:29>> Yeah,
- 5:30I mean, step one was that we we did
- 5:32manage to get our docs into markdown
- 5:35um
- 5:36available to the agent. But then,
- 5:40that that was that was all done, you
- 5:42know, that was done. But the second step
- 5:44is like the
- 5:46um the the generated docs,
- 5:51we we just couldn't agree on it cuz
- 5:53cuz
- 5:55like what
- 5:57um
- 5:58Okay.
- 6:00Let let me just flesh this out. You
- 6:01know, like one way is that you could you
- 6:03could like if you want uh to find info,
- 6:09you could you could always ask uh the
- 6:13the AI agent. Right. So, the core source
- 6:16of truth should always remain, right?
- 6:17There should not be like derivative
- 6:19docs.
- 6:19>> Yeah, but the trouble the trouble is the
- 6:20docs they are quite expen- they're quite
- 6:23extensive. There's 500 pages and there
- 6:24are actually like mistakes in them. But
- 6:27okay, that aside, the trouble with that
- 6:30approach is that like um
- 6:31not everyone is prepared
- 6:34uh
- 6:36is is is prepared to to read docs that
- 6:38way. Okay, so what you're saying is you
- 6:40moved them out of Confluence into
- 6:42markdown, so they became available to
- 6:43agents. You then had one approach of
- 6:46asking agents to generate different
- 6:48derivative docs, but that's not good. We
- 6:50discussed it and you said we should keep
- 6:52a single source of core docs. And then
- 6:55you discover docs by asking agent. You
- 6:57find the information by asking agent,
- 6:59but not everyone agreed to that. Yeah.
- 7:01And then with with the core docs, the
- 7:04you know, huge temptation to let AI, you
- 7:08know, fix things. And then um which you
- 7:11did actually in and I I think it did a
- 7:13sterling job. I couldn't actually find
- 7:15any major issues. But then then the
- 7:17issue is that not not everyone in the
- 7:20team wanted to approve it. wanted to
- 7:22approve it because it basically
- 7:24uh
- 7:26since
- 7:28it touches like 500 files.
- 7:32Yeah, but
- 7:32>> That that sounds like Okay, because when
- 7:35you said that earlier, it felt to me if
- 7:37you're moving out of Confluence and
- 7:39you're moving it under version control,
- 7:40the migration should be a one-to-one.
- 7:43There can be no argument about this is
- 7:44not the same. It's exactly the same. And
- 7:47then you need to decouple. And if you
- 7:49say we're going to let AI fix things,
- 7:51and if if there is this hard requirement
- 7:52within the organization that any change
- 7:55to these docs now needs to be approved,
- 7:57um you have to be um and reviewed, you
- 8:00have to break it down in in in
- 8:02reviewable chunks, right? So, if you let
- 8:05the agent makes the fixes, then you have
- 8:08to ensure that the fixes remain um you
- 8:11know, small PRs that are reviewable so
- 8:13that you can get buy-in and maybe
- 8:15distribute the review work across
- 8:16different people
- 8:18uh in a way. I I I'm just thinking. I
- 8:19mean, I constantly have this problem
- 8:21with AI that I keep blowing up the scope
- 8:23and pulling in more changes. And it's
- 8:25very hard to just say no. I mean, if
- 8:28you're talking about code, we've come to
- 8:30the conclusion that a lot of people say
- 8:31we don't look at the code, right? Even
- 8:33um Adam Jacob's talk at the config man
- 8:37configuration camp Yeah. Yeah, I can't
- 8:40believe you just watched that one. I I'm
- 8:41sure I shared it with you 3 months ago.
- 8:43>> went an hour When I watched it, it was
- 8:45an hour on YouTube. So, Yeah, I I
- 8:48included a timestamp.
- 8:49No, it was an hour ago posted on YouTube
- 8:52when I watched it. Was it on YouTube?
- 8:54Yeah, it was. I don't know. I didn't
- 8:55because when I watched it yesterday, I
- 8:57can I should go check. I thought it was
- 9:00not on YouTube before. Anyway, it
- 9:02doesn't matter when or what I watched
- 9:03it. Yeah, I Adam Adam's I love his
- 9:06talks. Well, it's a very good opening
- 9:08talk uh to to ex-
- 9:11to um
- 9:13convince people, to give people a
- 9:15summary of where the world's been
- 9:16headed. And it sounds like he's
- 9:18basically spending 35 minutes convincing
- 9:20the room that yes, AI is coming. Yes,
- 9:23it's bigger than you think. And yes,
- 9:24it's changing everything and the way you
- 9:26think. But here are the things that I
- 9:28learned the last 3 months using it. And
- 9:31and it's great for that. But even though
- 9:32it was recorded in January, so when you
- 9:34watch it today, it's already outdated.
- 9:37Um he draws
- 9:38>> How?
- 9:40he draws the boxes of what has
- 9:42completely been dominated by AI agent.
- 9:45And he shows like the human is in in
- 9:47response for design. The human is
- 9:50responsible for plan. And then the
- 9:52agents are is responsible for
- 9:54implementation, validate, testing, and
- 9:56deployment, or whatever. I don't
- 9:58remember the exact boxes, right? And I
- 10:00just thought when I saw those boxes that
- 10:02I haven't really me personally reviewed
- 10:04a plan generated by an agent. I just ask
- 10:07another agent like adversarial review
- 10:10agent. So, you just give another agent
- 10:12complete blank context. That that do the
- 10:15cross reference.
- 10:17And I posted it as a comment and he
- 10:20agreed with me. He said like, "Yeah,
- 10:22that's already a case for for for his
- 10:24experience as well. They are not
- 10:26reviewing the plans anymore. They're
- 10:27doing adversarial agent reviews." And so
- 10:29now we are just part of the design.
- 10:31Yeah, adver- sorry. Adversarial, sorry.
- 10:34Adversarial, I keep saying it wrong.
- 10:36>> Adversarial What's the the whole phrase,
- 10:38sorry? Adversarial agents or agent
- 10:41reviews.
- 10:44Here they talk about networks, but it's
- 10:46it's definitely a
- 10:48a hot keyword right now in in the AI
- 10:50bubble. Yeah, I'm not I'm not 100% sure
- 10:53I can get agree and get behind this yet
- 10:57because I haven't managed to
- 11:01uh
- 11:02Like for example, I don't know if you
- 11:04shared it with me um or I shared it with
- 11:07you or I just found it by myself.
- 11:11um
- 11:12Oh, there's this thing called cook
- 11:15and it it essentially makes it easy to
- 11:18um
- 11:19I can't find it now. It makes it easy to
- 11:22to do this adversarial thing in the
- 11:23sense that like spawn an agent that
- 11:26reviews the other agent. And I used it
- 11:29and I thought to myself that I wasn't
- 11:31convinced because it it made the
- 11:32solution more complicated if anything.
- 11:35It It just It just
- 11:37It didn't get to the
- 11:39to the
- 11:41to the solution that I wanted, but that
- 11:44was just one anecdotal data point,
- 11:45right? So, anyway, we were talking about
- 11:48adversarial agents, why? Because things
- 11:50are outdated, but okay, you're talking
- 11:52about Adam Jackson's talk. Yeah, I was
- 11:54also just wondering a minute ago how did
- 11:56we get there, but because you were
- 11:57talking about docs and breaking down
- 12:00chunks into smaller reviews and I was
- 12:02saying that that's one of the biggest
- 12:04issues I have with scoping down the
- 12:07amount of work that the agent submits
- 12:08because because I then trailed off in
- 12:10the thought that we all agree that we're
- 12:12no longer reviewing the the implemented
- 12:15like the code, but we we now supposedly
- 12:17only review the plans generated by the
- 12:19agent and I'm just saying we don't even
- 12:21review that anymore.
- 12:23Um so so basically, I think we got there
- 12:26because we were talking about what needs
- 12:28to be reviewed by humans, right? So, so
- 12:31if you need to produce something with AI
- 12:33that needs to be reviewed by humans, you
- 12:34have to resist the temptation to let it
- 12:37become a massive amount so that they
- 12:38will have a you know, rejection because
- 12:40it's too much. They have no time to
- 12:42review it. Basically, that's the point I
- 12:43was making.
- 12:44>> Yeah, and
- 12:46and to me that's like a trap. And to be
- 12:49honest, I think we even went down that
- 12:50way at work for this documentation. And
- 12:53we were just saying like, "Hey, we got
- 12:54this view. We got this view. We got this
- 12:56view." You don't need to It's It's too
- 12:57much to
- 12:58>> Why are you talking about this view and
- 13:00this view? Are you creating from the
- 13:01same core docs different views? Because
- 13:03we already agreed don't do that. Okay,
- 13:05well, I'm just I'm using it as a as a as
- 13:08a terrible example of like like I got to
- 13:11a stage where you where where where we
- 13:13wanted to say don't review and then and
- 13:16then then we have a right mess,
- 13:18basically. Okay, so it sounds like
- 13:20because this is discussion we had last
- 13:21time and I'm not sure if we still want
- 13:23to go deep into this topic right now,
- 13:25but we agreed that at the time that
- 13:28there are a certain source truth core
- 13:30documents that are the single source of
- 13:32truth and then you said we we said we
- 13:35should use agents to query the docs and
- 13:37find and just basically create like
- 13:39ephemeral views
- 13:41that that gets caught thrown away and
- 13:43then you said some people are not
- 13:44confident because I can I can I can see
- 13:47that, you know, why would you not assume
- 13:49the agent is hallucinating in one of
- 13:50those ephemeral views, right? Unless you
- 13:53generate a more like
- 13:55persistent view that is actually
- 13:57reviewed by a human to confirm that it
- 14:00is not any hallucination in there. And
- 14:02then you would start creating
- 14:04um other views that are persistent, but
- 14:07it's not good. So, it's really um
- 14:10Okay, make conundrum. Yeah, it is quite
- 14:13a conundrum. uh And yes, the talk was
- 14:15posted on YouTube a month ago. I just
- 14:17checked. So, my mistake, not an hour.
- 14:20And
- 14:21here's the what I was trying to talk
- 14:23about earlier. Here's this CLI that I
- 14:25was using.
- 14:27So,
- 14:28when when you first set it up, you
- 14:29basically say which which
- 14:31which models you want to use like Claude
- 14:33and Codex. I mean, all you know, OpenAI
- 14:36and Claude. And then and then you ask it
- 14:38something and then it has these little
- 14:40like
- 14:41uh tags or I don't know what you call
- 14:43these little arguments where you can
- 14:45basically instruct the three parts other
- 14:47agent how to review the code or
- 14:51or you know, go three times
- 14:53or how to
- 14:55what what the evaluator function is or
- 14:57something.
- 14:58I and I used it and it
- 15:00works beautifully. But my friend's
- 15:02observation was a lot of all of a lot of
- 15:04these frameworks and he he started using
- 15:06get done, GSD.
- 15:09And he says it's very funny because it's
- 15:10literally just a whole bunch of markdown
- 15:13prompting and
- 15:15thin little layer of JavaScript. Yeah,
- 15:18and and a little loop you know, like
- 15:19>> And a lot of the these things are like
- 15:21that. Yeah, exactly. Exactly. I mean,
- 15:23And he says like, "What are we doing?
- 15:24Like what's the value add here?"
- 15:27>> yeah, and mine
- 15:29I mean, I love it in the sense that like
- 15:31it's beautiful to see these agents
- 15:33working in in concert.
- 15:35>> Mhm. But the results
- 15:38were not good, but maybe I need to give
- 15:40it a a better try. And another
- 15:43you know, feedback I I got because um my
- 15:45friend
- 15:47has been mostly using cursor or a little
- 15:49bit of agentic in cursor and he's been
- 15:51happy with it. And I've been asking him
- 15:53like, "Hey, you know,
- 15:55I'll use spec ledger with you and then
- 15:57you'll get to experience what is spec
- 15:59driven development and I will deliver
- 16:01some feature that whatever you want gets
- 16:03implemented." I told him. And he he
- 16:05wanted to drive, so I said, "If you want
- 16:07to drive, then you should have." And he
- 16:09says, "But I want to use chat GPT
- 16:11models. I'm not going to pay for
- 16:12Anthropic. I have already chat GPT." And
- 16:14I said, "Okay, then you should use open
- 16:16code." "Why not Codex?" He says, "I am
- 16:17not I don't support
- 16:19Codex CLI. I only support open code
- 16:21because it's more similar to Anthropic
- 16:23Claude Code in terms of they are trying
- 16:25to match the tool usage and stuff in the
- 16:27agent realm.
- 16:27>> Okay, okay. So so he then decided,
- 16:30"Okay, forget it. I'll just use cloud
- 16:31code then." And he's been using cloud
- 16:33code for a week now with spec driven
- 16:35development and he I think maybe he
- 16:38might have used another one, but he was
- 16:40frustrated, so he started using get
- 16:41done. And he said like within 1 week 2
- 16:44weeks, he was like, "This is amazing.
- 16:47Like why didn't I do that before?" And
- 16:48then he's he's already like running
- 16:51agent he's using get work trees and sub
- 16:54agents. And he also subscribed to the
- 16:56Claude Code next plan and um So, he's
- 16:59been red pilled.
- 17:01Like and he's asking me now how do you
- 17:03use like sub agents and work trees and
- 17:06agent teams and review agents and I'm
- 17:08like, "I'm not there."
- 17:10>> [laughter]
- 17:10>> I'm like heads deep in just the spec
- 17:12driven development side of things. I
- 17:13haven't really like I I have on purpose
- 17:16avoided going into this whole agent team
- 17:18orchestration because I believe that
- 17:20there's so many people doing it that
- 17:21soon enough it will be like, you know,
- 17:23perfect and I just need to wait a
- 17:24little.
- 17:25Yeah, so get so get done is is like
- 17:28that cook I was just sharing, right? Is
- 17:30it like that? I mean, He says it's a
- 17:32spec driven development toolkit that
- 17:35that is more like proactively keeps the
- 17:37agent running until the things are
- 17:39completed. Cuz a lot of the like spec
- 17:42driven development frameworks, they
- 17:44aren't really like keeping the agents in
- 17:46loop until it's done.
- 17:48Uh and apparently get get done does
- 17:50that more. Like you see, I've done spec
- 17:52kit open spec, but get done is
- 17:55actually delivering the results. I find
- 17:57that a little bit difficult. I'm
- 17:58definitely a a Peter Steinberger kind of
- 18:00guy. I just chat with the with the AI
- 18:03until it's done. This one seems to I
- 18:06wouldn't refer to myself as Peter
- 18:08Steinberger if I don't run if I don't
- 18:10have five
- 18:12you know, open code accounts and I'm
- 18:14running you know, 20 terminals at the
- 18:16same time. I wouldn't do you know,
- 18:18because this guy is on another level.
- 18:20Yeah, he he's obviously very good at
- 18:22context switching. I mean, I I like to
- 18:24think I'm pretty good at context
- 18:25switching.
- 18:26Like I can I can you know, spin three
- 18:28plates, maybe not five or 10. Mhm. Um
- 18:32well, I don't know what to say to this,
- 18:33but
- 18:35I guess I just need to give it a try.
- 18:37But it doesn't seem quite the same as as
- 18:39though that cook thing, but maybe maybe
- 18:42it's worth looking. I mean, there's
- 18:44I mean, this is the crazy thing why we
- 18:45we need to talk every week because
- 18:47there's a
- 18:48bazillion projects, aren't there? Yeah,
- 18:50it's moving really fast and and also
- 18:52what I took away from my my friend's
- 18:54experience is that even if you haven't
- 18:55looked at this, it takes maybe a week or
- 18:57two and you can be at the front, you
- 18:59know, trying to use the latest of the
- 19:02latest.
- 19:03>> Yeah. And maybe it's a good thing
- 19:05because if you've been using it for 8
- 19:06months, you're like stuck in your old
- 19:07behaviors and the models have moved on.
- 19:09And if you come in a fresh, you're like
- 19:11no idea where to start, but this is
- 19:12looks like what what people are doing,
- 19:13so I'm going to start doing this.
- 19:15element of beginner's luck. It's not
- 19:17like beginner Yeah, well, it's it's just
- 19:18being able to shed your your legacy or
- 19:21tribal knowledge and being able to cuz
- 19:24even Boris Chef Ni, he says that he's
- 19:26stuck in a lot of old ways when he's
- 19:28doing troubleshooting. He always gives
- 19:30this example where he says there was
- 19:31this memory leak and and he he has to
- 19:33avoid going into his habit of going
- 19:36going into an heat map to identify the
- 19:39memory leak and then somebody younger
- 19:41who joined the team and has really
- 19:42adopted Claude Code, you know, just went,
- 19:44"Hey, you know, I just asked Claude and
- 19:46within 5 minutes it found the memory
- 19:47leak. Whereas you started going into
- 19:49your heat map and you know, 20 minutes
- 19:51later you still nowhere and Cloud
- 19:54already fixed it. So it's it's really
- 19:55part of and then Boris says it, it's
- 19:57part of the models are so good. I
- 19:59constantly have to remind myself to like
- 20:01cut those old habits and just ask the
- 20:03model.
- 20:05Yeah. Speaking of Claude Code, I I think
- 20:07I don't know if this is real but I did
- 20:08see some comment that someone analyzed
- 20:11the the source code drop and there was
- 20:13some talk that there's a way more
- 20:15powerful model in the in the works but I
- 20:18guess that's always going to be true
- 20:19really. But like I don't have my faults
- 20:21or Metas.
- 20:23Yeah, when the new model drops how is it
- 20:25going to change things? I saw a
- 20:27screenshot on Reddit which could be
- 20:28completely fake but like the
- 20:30improvements compared to Opus were
- 20:33significant. I mean the way it was
- 20:34discovered when I I heard about it
- 20:37before the drop was because Anthropic
- 20:38apparently left information in a public
- 20:40database. It wasn't like a meta dot dot
- 20:43dot database. It left some information
- 20:45about this Metos project or Capybara or
- 20:48something like that.
- 20:50And and that's how I heard it was uh
- 20:53But it says quite a lot of like first of
- 20:54Anthropic like up time being such a
- 20:56horrible
- 20:57I heard a lot of people moved away from
- 20:59Anthropic because they are not able to
- 21:00deliver their reliability. Yeah. Yeah.
- 21:04They had a huge
- 21:07They had this huge
- 21:09issue with
- 21:10token caching so your usage would
- 21:13drop significantly like people would
- 21:15send one or two messages and they would
- 21:17hit their 5-hour budget because um
- 21:20there was a bug in the way that the two
- 21:22the cache was working and it was also
- 21:25happening when you restarted Cloud. So
- 21:27people were like finding the bugs and
- 21:28even when the short source code leaked
- 21:30people started to debug those bugs.
- 21:32There's a memory leak I'm going So not a
- 21:34memory leak. It was two significant bugs
- 21:36that the community highlighted and and
- 21:38that they had to fix. So they have been
- 21:39having a very hard time. Then all of
- 21:42this like internal information leaking
- 21:44about models being underway. So people
- 21:47are like right now on Reddit it's very
- 21:49annoying because every day there's three
- 21:51or four posts of people saying you know
- 21:54First of all weeks they complain about
- 21:55the the token usage budgets depleting
- 21:58too fast and now Anthropic has released
- 22:01.90 and .91 fixing some of these issues
- 22:05and now people are posting yeah that's
- 22:07not fixed until you refund you need to
- 22:10refund because we couldn't use it.
- 22:12You're all in on Anthropic right still
- 22:15with your max plan? I don't want to
- 22:17support Open AI. I like to think I'm
- 22:20being a bit balanced like I've been
- 22:21moving between Open AI and Anthropic. I
- 22:25still have ChatGPT. I canceled it they
- 22:27give me one month free but I haven't
- 22:28recanceled it. So you need to cancel it
- 22:30then they give you one month free then
- 22:32you if you Yeah, yeah. You need to
- 22:34cancel it for real after one month and I
- 22:35haven't canceled it because my wife
- 22:37really likes using ChatGPT. Mhm. The I
- 22:41think the voice mode is also Much better
- 22:43than
- 22:44Yeah. Um phone app. Okay, let's change
- 22:47topic ever so slightly. I wanted to
- 22:50ask you quickly if you've ever worked on
- 22:52a data platform. I worked for some
- 22:54engineering
- 22:56I mean I
- 22:57I think it's
- 22:59>> Enough time has passed and I can talk
- 23:00about my Gojek experience. Mhm.
- 23:04I I worked briefly at Gojek and uh
- 23:08it didn't work out to be honest at the
- 23:10end of the day. Not going to lie. But
- 23:12the
- 23:13but when I when I worked there
- 23:15uh
- 23:16as a data plat I was a data platform
- 23:18engineer. It was interesting um in the
- 23:21sense I I don't know if you've ever seen
- 23:22this sort of model like this. We we had
- 23:24data engineers and about 5 or 6 7 years
- 23:28ago data engineers was like like for
- 23:30some reason like really popular. I'm in
- 23:32fact I think you you still see it today
- 23:34like you do these like boot camps and
- 23:37then people learn how to become a data
- 23:38engineer.
- 23:40You know what I mean? Like it seems to
- 23:41be a role unto itself.
- 23:44Oh oh I can see you're distracted by the
- 23:46Claude Code.
- 23:47Now what what what would happen is that
- 23:49the the data engineers would get some
- 23:51data or get some task to to wield some
- 23:54data. They would jump in the then
- 23:56Jupiter notebooks and then they would
- 23:58come up with a POC about how the data is
- 24:02going to look or how it's going to be
- 24:03end up or something like this.
- 24:05And then and then that becomes a data
- 24:07product. But the trouble is is that they
- 24:09since the the these data engineers were
- 24:12kind of like fresh grads mostly or they
- 24:15were just not really uh I don't know
- 24:17what the reason was exactly. Well they
- 24:20they lack some skills to productionize
- 24:22it. So so they they would hand over
- 24:24their work essentially to data platform
- 24:26engineers and then we would
- 24:28productionize it. Have you ever seen
- 24:30something like this before Vincent? I
- 24:31mean I've never really worked inside of
- 24:33data team. I have supported a data team
- 24:36as a platform team um
- 24:38for one of the data teams I worked with
- 24:41I was managing their Airflow deployments
- 24:44and also helping
- 24:46them define how they would get secrets
- 24:47to the jobs in Airflow and also That's
- 24:50typical. It has secrets to I mean since
- 24:53since Airflow is like a shared thing
- 24:56I the Cloud Composer I think is is
- 24:58basically Airflow. All right. Yeah,
- 25:00essentially Airflow is quite an
- 25:02infrastructure challenge because it's I
- 25:05think it's got some horrible assumptions
- 25:09that everything is run on a shared
- 25:10instance and then of course when you
- 25:12have lots of data products. Uh I was
- 25:14running
- 25:15So at Honestbee back in 2016 they were
- 25:17using Airflow and the
- 25:20or they adopted Airflow at least around
- 25:222017
- 25:24and
- 25:25they hired someone an ex-DevOps engineer
- 25:27who wanted to go into data and he joined
- 25:30the data team and they only give him one
- 25:32job which was to deploy Airflow. So he
- 25:34was pretty pissed.
- 25:35But but he was used to run Mesosphere.
- 25:38So he was running they I was running
- 25:40Kubernetes for the the the product
- 25:43which were like several big Ruby on
- 25:44Rails applications and they approached
- 25:47the the platform team for uh you some
- 25:50type of job running framework and at the
- 25:53time 2017 the job API like the resources
- 25:56of for running jobs in Kubernetes were
- 25:58like alpha or beta they were very
- 26:00unstable. So I said yeah we can do jobs
- 26:02but
- 26:03and so they decided okay I'm just going
- 26:05to go with what I know and rather than
- 26:07to talk to us they just deployed
- 26:09Mesosphere. I was like what you know why
- 26:11you deploying a competing like another
- 26:14container orchestration system. Anyway
- 26:16they ended up with having this huge
- 26:18Mesosphere cluster
- 26:20that was mounting the file system.
- 26:22>> to Airflow right to jobs? Yeah because
- 26:25of Airflow. They was just because they
- 26:27didn't run anything because they were
- 26:28using That's that's a typical problem
- 26:30like everyone is on the shared Airflow
- 26:32instance and then they go like oh we
- 26:34have secrets we have things data we need
- 26:37to containerize it and then they come up
- 26:39with some hodgepodge containerization
- 26:41solution.
- 26:42>> because I managed Airflow at another
- 26:44company like four years later and it was
- 26:47completely different. None of that what
- 26:49we just mentioned. In Honestbee we had
- 26:51what the problem that you just
- 26:52mentioned. They had they basically
- 26:54containerized Airflow by creating a
- 26:55massive image and then mounting a file
- 26:58system into it with all of the DAGs. So
- 27:01the whole all of the DAGs was just one
- 27:04massive volume. So the image was just
- 27:06something like a shell Yeah. I don't
- 27:08think that's that's a that's a good
- 27:09idea. That's like containerizing
- 27:11Kubernetes. And the only reason I know
- 27:13is because and everything. The Yeah yeah
- 27:15they they basically run Airflow which I
- 27:18also thought like why do you need to run
- 27:19a job runner on top of a job runner?
- 27:21Like why do you need Mesosphere to run
- 27:23Airflow? Okay, okay. Okay. So when I
- 27:25inherited it but then I can tell you one
- 27:28thing okay doesn't have to be that way
- 27:30with Airflow because I deployed Airflow
- 27:32in 2020 which was like
- 27:35four years later and and at that time
- 27:38Airflow had a native Kubernetes job
- 27:40runner and it has a native Kubernetes
- 27:42orchestrator. Cuz originally Airflow was
- 27:44like using Redis to distribute jobs to
- 27:46runners but with with
- 27:49with the Kubernetes integration it was
- 27:51using Kubernetes as a job runner
- 27:53interface and it would talk to the
- 27:54Kubernetes API to spin up a pod which
- 27:56was like an Airflow worker node and then
- 27:59you it would get the the DAGs
- 28:02from I think we put them on S3. Yeah I
- 28:04don't remember how we delivered the
- 28:05DAGs.
- 28:07But it was definitely not like a huge
- 28:08massive like file system. So then
- 28:11actually it was really manageable. It
- 28:13was really very smooth and the secrets
- 28:15was easy because we were using like um
- 28:18secrets directly for jobs and they were
- 28:20just getting injected when they needed
- 28:21it. Not shared nothing like that. And
- 28:23that was in 2020 so Okay. So
- 28:25so sorry I I I was a little bit
- 28:27distracted. So how did what was the
- 28:28solution ended ended up being again?
- 28:31Airflow supports Kubernetes as a as a
- 28:33job Really? All right okay that's
- 28:35interesting.
- 28:36It has for a long time.
- 28:39I actually need to investigate that. We
- 28:41were just
- 28:42like back then we're using the the
- 28:44managed GCP version and then recently
- 28:47I've been
- 28:48running the AWS managed version called
- 28:50managed workflow I don't know MWAA. But
- 28:53it it's
- 28:56Okay, that's something to look up. I
- 28:58mean what what I wanted to sort of
- 29:01perhaps tell you was perhaps
- 29:04um not nothing AI related it's more to
- 29:07do with organization. I mean as much as
- 29:09I didn't I actually didn't really like
- 29:11this model at all because the data in
- 29:12there was so there was a lot of data
- 29:14engineers and and the data platform
- 29:16engineers which I was a part of we were
- 29:18really like overloaded with work because
- 29:20unfortunately we needed to know what
- 29:23they were doing because sometimes they
- 29:25would just throw over the wall
- 29:27um some some code that just basically
- 29:30didn't even work and we would have to
- 29:32like fix it and own it from end to end.
- 29:35So we were like basically working on new
- 29:38products all the time and as well as
- 29:40supporting old products. It was quite
- 29:42stressful.
- 29:43Yeah.
- 29:46But nowadays I think I think back to
- 29:48those five years ago and I think to
- 29:49myself like a lot of the work that we
- 29:51were doing wasn't so
- 29:53like inventive. You know what I mean?
- 29:55Like we we didn't come up with the the
- 29:58products themselves. They That was kind
- 30:00of part of the day data engineers
- 30:01things. But we were part of like
- 30:04productionizing it. And now with AI,
- 30:06productionizing probably becomes
- 30:09easier?
- 30:10Debatable. I mean, I don't think AI's
- 30:13super proven to ship, that isn't it? And
- 30:15productionizing is about shipping. But I
- 30:18still I still maintain that this world
- 30:20is probably going to look pretty
- 30:21different in 2026. That's for sure.
- 30:25Um
- 30:27And then And then also I just wanted to
- 30:29contrast that with what I saw what I saw
- 30:32kind of recently on a on a gig where
- 30:34basically um
- 30:37Yeah, basically people are expected to
- 30:39to know a lot more to do the job.
- 30:43Like it we created, you know, a proper
- 30:46platform where they where they had you
- 30:48know, had to create a Git repo and all
- 30:51that sort of stuff. And to be honest, I
- 30:52I think it was just too difficult for
- 30:54for for people to do it that way. I
- 30:57don't know if you've ever created a a
- 30:58platform where
- 31:00you know, there's a config YAML and
- 31:04you know, product teams are are expected
- 31:06to to deploy their own app.
- 31:09I I think to I think to myself that
- 31:11that's just too hard. It's too hard. You
- 31:14They've got to like It's got to be a lot
- 31:16easier for different in a big
- 31:17enterprise. It's got to become really
- 31:20really like AI easy for people to create
- 31:25software or a solution for for their
- 31:27particular problem. Can't expect people
- 31:29to like read docs, set up GitHub repos,
- 31:34run workflows. It's just too hard.
- 31:37That's That's all I wanted to share. I
- 31:39definitely have problems where the
- 31:40platforms I create around Terraform
- 31:44are for some people
- 31:46too
- 31:47um let's say niche. Yeah, yeah. That's a
- 31:51typical one cuz like like we find
- 31:52Terraform easy.
- 31:55But I know I know like as soon as you
- 31:57you tell
- 31:59a data um a product team like, "Oh, you
- 32:01have to deploy Terraform." Then mind
- 32:02just explodes. Yeah, but the problem
- 32:04with Terraform is that it's not a very
- 32:06good product.
- 32:08Like it has the Go lang mentality of
- 32:12it's better to rewrite something or
- 32:13duplicate it than to create coupling,
- 32:16right? Um what we are doing often with
- 32:18Terraform is we are creating
- 32:20abstractions that then create coupling
- 32:22between different parts because we're
- 32:24trying to reduce the the boilerplate and
- 32:27the repetitive repetitive
- 32:29repetition. So this is kind of like
- 32:31where it starts to then become
- 32:33complicated for people because we create
- 32:35these meta layers around Terraform. Mhm.
- 32:37So Terraform in itself can be bad.
- 32:41And modules Modules in Terraform also
- 32:43just flummox people then they like don't
- 32:45know what's going on inside them.
- 32:48Terragrunt reached V1, by the way. What?
- 32:51Thinking about layers that complicate
- 32:52Terraform, Terragrunt was released
- 32:55with an official V1 like stable thing.
- 32:58>> But Terragrunt has been around for a
- 32:59long time. Yeah, but they never did a
- 33:01stable release. So they finally released
- 33:03Terragrunt V1 and they included stacks,
- 33:06um which But they've been working on
- 33:09stacks. Well, I used But this isn't exa-
- 33:11exactly an example of where Terraform is
- 33:14meant to be simple and then it becomes
- 33:16too unmanageable because of the amount
- 33:18of config files and repetition that you
- 33:20get. And then people build layers around
- 33:22it like Terragrunt and it's a prime
- 33:23example of creating complete like super
- 33:28hard things to understand because of the
- 33:29complexity it it allows you to do.
- 33:33I don't know, they probably improved a
- 33:35lot of it,
- 33:36um but I used Terragrunt in in one
- 33:39organization which was rather large. And
- 33:42I feel it was very successful in the way
- 33:44that it managed our infrastructure as
- 33:46code, but I also feel it was a massive
- 33:48blocker for anyone that wasn't platform
- 33:51to then contribute to that
- 33:52infrastructure as code. Yeah, I guess
- 33:53that's a good example. And the same with
- 33:55Terra mate and all the others. Anything
- 33:57that's a Go lang CLI around Terraform is
- 34:00like that. Yeah. And do you think I
- 34:02mean, compared to CDK? Uh good.
- 34:05Um because CDK gets rid of the Terraform
- 34:09modules, which to me I think is the
- 34:10biggest problem. Most of these
- 34:13orchestration system try to work with
- 34:15Terraform modules. But Terraform CDK or
- 34:18AWS CDK completely gets rid of it by
- 34:22creating a higher level abstraction
- 34:24because it has it is not just like
- 34:27a scripting library, something that can
- 34:29do simple loops or things like that.
- 34:31It's an actual complete programming
- 34:33language language and it allows you to
- 34:35create object-oriented things such as
- 34:38extending an a base class, implementing
- 34:40interfaces, it's allowing you to do
- 34:43dependency injection by just making sure
- 34:46that the constructor takes in the
- 34:48something that implements the interface.
- 34:50So you get a lot more capabilities than
- 34:52what you can do with Terraform modules.
- 34:54So we're there CDK is not stuck in this
- 34:57like I just have to script around the
- 34:58whole bunch of stupid Terraform
- 35:00>> converted. I'm converted.
- 35:02We talked about this. We talked
- 35:04I think one
- 35:05Terragrunt was comes in view because of
- 35:07TerraTest. Do you have you ever used
- 35:09TerraTest? I am a heavy user of
- 35:11TerraTest. Really? Yeah. I just today
- 35:14was walking through
- 35:15We're having AMIs built. So I used
- 35:18TerraTest mainly for I think TerraTest
- 35:21is amazing. If you have home-cooked AMIs
- 35:26that come with a
- 35:28pairing paired module. Like for example,
- 35:30you know that there's this thing called
- 35:32FCK net, which is like a feasible cost
- 35:36um
- 35:37net gate like net instance. So instead
- 35:40of running Let me Google this. FCK what?
- 35:43>> net NAT,
- 35:44network address translation. It's like a
- 35:4610% cost of an AWS NAT gateways.
- 35:50>> Oh, so it's just like a a NAT gateway
- 35:53replacement.
- 35:53>> AWS VPCs support NAT instances. So you
- 35:57can set up your routing tables to route
- 35:58all the traffic through one EC2
- 35:59instance. You don't need a NAT gateway.
- 36:02Mhm. So basically I I forked this AMI
- 36:06because it's literally like a
- 36:0850-line bash script delivered through a
- 36:11systemd one-shot to set up your IP
- 36:14routing tables and um I'm sure people
- 36:17are not doing that. It's just IP tables
- 36:19and it's just registering your ethernet
- 36:22interface to act as a egress interface,
- 36:25right?
- 36:26>> Okay. So it's very very basic small
- 36:27little thing and it's amazing.
- 36:29Um and I have a it together with a
- 36:31module. I have a Terraform module that
- 36:34basically
- 36:35deploys this in several configurations.
- 36:37It can be a single NAT instance in one
- 36:41subnet and then all the other subnets
- 36:43routing tables are routed towards that
- 36:45NAT instance and then you would do cross
- 36:47AZ that way. Or it can be one NAT
- 36:50instance per subnet. So the module has
- 36:52many configurations and they need to be
- 36:54tested because it's a contract that you
- 36:56support. TerraTest is amazing. Yeah.
- 37:00Um so so what
- 37:01>> I I I was just trying to remember. So
- 37:03TerraTest is basically te-
- 37:05is testing your
- 37:07your
- 37:08what do you call it? Your deployed
- 37:10infrastructure, right? So what TerraTest
- 37:12is is nothing but a bunch of Go lang
- 37:14modules.
- 37:15And what it shines through is the Go
- 37:18lang testing
- 37:20capabilities. Go test? Yes, Go test
- 37:23because Go test can run test in
- 37:25parallel, it can, you know, do all kinds
- 37:28of like subnets tests, table-driven
- 37:30tests,
- 37:31and you can defer so clean up functions
- 37:33can be deferred. So Terra- TerraTest is
- 37:36just leveraging Go lang test framework
- 37:39and it's just a a whole bunch of like
- 37:42AWS SDK API implementations so that you
- 37:45can
- 37:46you know, um
- 37:49on one side it it does OS exec
- 37:51Terraform, OS exec Packer to test your
- 37:53Terraform module and your Packer build
- 37:55script. And on the other side it has a
- 37:57whole bunch of assertions that you can
- 37:58do. Is the instance registered with SSM
- 38:01>> in the past, but like I mean, the
- 38:03landscape I'm using it. So since
- 38:06Terraform has added Actually, I have a
- 38:08presentation about this that I delivered
- 38:10in a conference in in Singapore. I think
- 38:12there's different layers of testing that
- 38:14you can do with Terraform. And the first
- 38:16one you should use is the built-in test
- 38:17command, right? Mhm. Because the
- 38:19built-in test command is pure in memory.
- 38:22So compared to TerraTest, TerraTest is
- 38:24going to provision everything inside a
- 38:26file system and it's then going to run
- 38:28Terraform in it and it's going to take a
- 38:30while. Whereas if you use the Terraform
- 38:32test command, it's going to create
- 38:33everything in time. It's you used the
- 38:34Terraform test command?
- 38:36It spins resources up.
- 38:38>> Yeah. So I use both. So I I used the
- 38:40Terraform tests
- 38:41files in my module for some basic cross
- 38:44variable validation like does a variable
- 38:47condition
- 38:48is it triggered as expected? For
- 38:50example, I have a module and you should
- 38:51set one variable and not the other. And
- 38:53if you set both, you should get an
- 38:55error. So I have a test around that.
- 38:59So do you
- 39:00So you use TerraTest with your CDK
- 39:04your Terraform CDK stuff? With my my
- 39:07library that I built, basically porting
- 39:09the AWS CDK L2s, I used TerraTest to
- 39:12validate that the L2s work actually
- 39:14deploying. Yeah. Really cool. You should
- 39:16mention that on your CDK trends.
- 39:19It is.
- 39:20Uh not on CDK terrain, it's on
- 39:22TerraConstructs. Okay, okay. Which is
- 39:24the L2 porting on top of CDK terrain.
- 39:27But
- 39:28there's some really exciting like things
- 39:30in the work around that. So soon
- 39:32TerraConstructs will will be no longer
- 39:34needed, hopefully, and we can have
- 39:36something directly that is going to have
- 39:38all of the coverage of AWS CDK. And
- 39:40that's going to be amazing cuz then you
- 39:41can use it with AWS CDK with OpenTofu
- 39:43directly. No more CloudFormation. Okay.
- 39:47Can you imagine that? That you can use
- 39:48all of those AWS CDK L2s directly with
- 39:51OpenTofu. That's it's going to be
- 39:54amazing. Okay. Let's That sounds
- 39:56interesting, but that's that's upcoming,
- 39:59right? That's upcoming.
- 40:00Well, I think it's it's it's actually
- 40:02more realistic now to talk about it
- 40:04because if you if you're aware, there's
- 40:07this one guy Kanto. I think he's a Japan
- 40:10based. He's a heavy contributor to AWS
- 40:12CDK and he like writes a lot of blog
- 40:14articles about how AWS CDK works and
- 40:17some of the features within and he's
- 40:19contributing a lot of really really big
- 40:20features. And he just announced
- 40:22something called AWS CDK direct. And
- 40:25what he does is he lets you run AWS CDK
- 40:29without CloudFormation. So it reads the
- 40:31CloudFormation YAML file and then issues
- 40:34AWS CLI commands. Like it just calls
- 40:38Oh, I see. I see. Something like that.
- 40:40Yeah, and he uses a state file as well.
- 40:42I might be a CloudFormation
- 40:44apologist here, but like CloudFormation
- 40:46kind of works. I mean, do you really
- 40:48want to replace it? CloudFormation? I
- 40:50mean, they made a lot of improvements
- 40:51allowing you to refactor and I think
- 40:53we're in a broken record, but it's it's
- 40:55pretty painful when you have to deal
- 40:57with logical ideas. Well, maybe that's
- 40:59no longer a problem because now you can
- 41:01tell CloudFormation that some resource
- 41:03has changed its identity, so it's not
- 41:05really need to be deleted. But one of
- 41:06the biggest issues is a crash loopback.
- 41:09Not Oh, yeah. The update crash fallback.
- 41:11Rollback. Yeah, that's been broken. But
- 41:14how does how does Terraform Sorry, how
- 41:15does Terraform doesn't have that. Just
- 41:17because of the planning stage will catch
- 41:19that or something. No, just because
- 41:20Terraform cannot rollback. You cannot
- 41:22rollback Terraform. Well, you you can
- 41:24disable the rollback uh
- 41:26you know, you can pass an argument to
- 41:27CloudFormation so it doesn't rollback.
- 41:29>> Maybe that's new. Not last time I used
- 41:32it, which was like 2 years ago, I think.
- 41:34Okay. Well, if if there is something
- 41:36coming out, I guess it's worth
- 41:38evaluating. Like I think someone asked
- 41:40me the other day like so with CDK you
- 41:43get more linting, you you get more shift
- 41:45left, right? I mean, we can we can
- 41:47because well, I guess you have the best
- 41:49you have the best of both worlds, don't
- 41:50you? I mean,
- 41:51when I talk with Adam Jacobs and I told
- 41:54him I don't know. I told him about
- 41:56because he's he's basically saying we
- 41:58don't have to live with legacy of
- 42:00Terraform providers. We can just rewrite
- 42:02the Terraform providers on demand with
- 42:03AI whenever we need it with whatever we
- 42:05need it.
- 42:06>> As someone as someone who's developed a
- 42:08Terraform provider, it's not easy. No,
- 42:10but and I told him like why would you
- 42:12need to do that? Like you're throwing
- 42:13away the baby with the bathwater. And he
- 42:15says, "No, the model is completely
- 42:17wrong. We need to get rid of it." So I
- 42:18was like, "Okay." I just said I don't
- 42:20understand that reply. So maybe you
- 42:23I'm not going to go further there.
- 42:27Okay.
- 42:28Um hold on. I want you to get on the
- 42:31topic whereby
- 42:32Sorry. What ecosystem gives you the max
- 42:35sort of shift left ability? Like one
- 42:38thing I
- 42:39noticed Let me just share this. How do I
- 42:42share my Like there's been a few local
- 42:44stacks sort of replacement
- 42:46>> Today there was like this mini stack.
- 42:48Yeah, there's there's been a few.
- 42:51I just noticed them popping up here,
- 42:52there, and everywhere. Yeah, since
- 42:54LocalStack is like changing their
- 42:56pricing model.
- 42:56>> called Flocky. Oh, yeah. I've seen that
- 42:59one. Um and then
- 43:02I noticed this this AWS developer I
- 43:04follow and I noticed I think randomly on
- 43:07GitHub. Sometimes GitHub can just show
- 43:09you what people are working on.
- 43:11And
- 43:12um
- 43:13hold on. What is my username? And I
- 43:15noticed he was working on this thing
- 43:17called
- 43:18um yeah, this Eman Fatih.
- 43:22Um he he This I mean, this this comes in
- 43:25my opinion, since he works at AWS, this
- 43:27comes out of AWS.
- 43:28>> No. No. No. No.
- 43:30You cannot.
- 43:31I can I mean, can you imagine working at
- 43:33a big old company then everything you
- 43:35does gets associated with it? That would
- 43:36be so annoying.
- 43:38I would hate that.
- 43:39>> Obviously he vibed it. I mean, you can
- 43:41tell.
- 43:42I was about to say and I like that
- 43:44there's Gherkin in it. That's super
- 43:45interesting. I want to have a look at
- 43:46that. Yeah, so
- 43:48um
- 43:49Okay, let me get my thoughts together.
- 43:51So
- 43:52you you use you use CDK, use Terraform.
- 43:54Okay, what is the best ecosystem that
- 43:56gives you the fastest iterations and
- 43:59before you even deploy on the cloud,
- 44:02that gives you the max amount of, you
- 44:05know, verification that what you built
- 44:07works. So to me it's it's something like
- 44:11using uh I guess in the past, since I
- 44:13don't have that much CDK experience
- 44:15except my last gig, I would use
- 44:17Terraform and I've maybe used uh
- 44:19LocalStack and and then I would just,
- 44:22you know, iterate from there and then I
- 44:24would deploy.
- 44:26That would probably be the fastest shift
- 44:27left way. But have you come across any
- 44:30faster ways of doing it? And I I don't
- 44:32know exactly what happened to
- 44:33LocalStack. Did they just go really
- 44:35pricey or something? No, they changed
- 44:37the license for
- 44:39um
- 44:40Before you could download the Docker
- 44:42images of the community edition and you
- 44:44could just run them, but now they
- 44:46removed those. They deprecated those
- 44:48Docker images and they only support the
- 44:50enterprise Docker images and you have to
- 44:52give it a token. So they are tracking
- 44:54your usage. And another thing that they
- 44:56did is if it detects that it's running
- 44:58inside GitHub Actions or in CI, it just
- 45:01shuts down. So you can use it locally,
- 45:03but you can't use it in CI at all. So
- 45:05that's where I think people got upset.
- 45:07One, you can't use it anymore without
- 45:09creating an account and giving it a
- 45:11token so that they can track you. Two,
- 45:13you can't run it at all in CI anymore.
- 45:15Okay, that's a good summary. Yeah.
- 45:18Um
- 45:20that sucks.
- 45:22So what in your opinion is the fastest
- 45:23shift left way of of doing it? I mean,
- 45:26I've always been intrigued by LocalStack
- 45:28and I actually like to use it for like
- 45:30take-home assignments because it doesn't
- 45:31require a candidate to have any account
- 45:34and I give them like a very basic AWS
- 45:37infra that allows them to um you know,
- 45:39do everything within the challenge that
- 45:43um
- 45:44that doesn't require that works without
- 45:46a LocalStack license or anything like
- 45:48that, right? But I have never used it
- 45:51for anything like
- 45:53um
- 45:54you know, [snorts] validating a large
- 45:56serverless setup. I think LocalStack
- 45:58only makes sense if you are really
- 46:00heavily depending on like serverless
- 46:01services, right? That you cannot Like
- 46:04otherwise you would just spin up like a
- 46:06compose environment or you would spin up
- 46:08a
- 46:09you know, the services
- 46:10>> Well, it's also good for all the like
- 46:12AWS native, you know, Kinesis and So I I
- 46:15have I built like this the Terraform
- 46:18provider that uses SQS and I wanted to
- 46:21validate it really fast and you can you
- 46:23can actually have like complete
- 46:25emulators of of SQS. I'm not sure about
- 46:28Kinesis, but I'm I would be surprised if
- 46:31you don't have that. And the funny thing
- 46:32is those are like dedicated projects,
- 46:35which I think are better than going with
- 46:37like a massive library that tries to
- 46:39track everything. Yeah. Yeah. Yeah. I
- 46:40know what you mean. Like there's a few
- 46:42like DynamoDB type Yeah, and and and the
- 46:46the one that I was using for SQS was um
- 46:50Was it ask Yeah, it was SQS. Was the was
- 46:54written in I think Elixir or or um
- 46:57something like Java. It actually Yeah, I
- 46:59think it was using the JVM under the
- 47:01hood. Uh is it Scala? It was something
- 47:03crazy. Like I would never use it. I was
- 47:05like, "Ah, I can't use that
- 47:06because I don't I don't
- 47:07understand."
- 47:07>> self-contained as well. Yeah, it was
- 47:09absolutely like yeah, it didn't didn't
- 47:11matter what it was written in.
- 47:12>> of most of AWS is probably some insane
- 47:15Java. Yeah, but I mean, this was a this
- 47:17was like a a public thing that just um
- 47:19exposes the same API endpoints. And I
- 47:21had good success with it. I was very
- 47:22happy. Like at least I was able to test
- 47:25this one little thing that needed that
- 47:26one little service. So I could run it
- 47:28locally. Um
- 47:30but that's why I never use something
- 47:31like LocalStack uh except for like
- 47:34candidate take-home assignments or
- 47:35something like that. Mhm.
- 47:37So it sounds like you haven't really
- 47:39explored this shift shift shift left
- 47:42north stuff that hard. I mean, to me
- 47:44this sounds like the biggest problem to
- 47:46solve, really.
- 47:48Especially now with AI because you want
- 47:50AI agents to be in a little Why don't
- 47:52you just give them an AWS account? Cuz
- 47:54I'm not insane. No, I mean, why don't
- 47:56you just give a developer an AWS account
- 47:58so and a sandbox so that he can, you
- 48:00know, test it against the real AWS API
- 48:02services? Why would you try to emulate
- 48:04it? Like I don't get that.
- 48:05>> Because of speed. Speed and
- 48:08safety and
- 48:09>> you mock your tests, you get mock
- 48:11confidence. Yeah, I I
- 48:14I still maintain that this needs to be a
- 48:16bit explored a bit more further. I'll
- 48:19I'm going to bolden it. Oh my gosh.
- 48:21Okay, last topic.
- 48:23Cuz I need to run out and buy some
- 48:24bread. Orchestration
- 48:26uh can I assume that you that you and
- 48:29like most people nowadays just use
- 48:30GitHub workflows when you want to
- 48:32coordinate something or do you use
- 48:34something fancier to coordinate? I'm
- 48:37and you know, Is this the last topic? I
- 48:39don't know. I want to change the topic.
- 48:41>> [laughter]
- 48:42>> Can I change the topic?
- 48:43Sure. So you know, because I think
- 48:45there's more interesting with the trivy
- 48:46hacks and and basically the axios hack
- 48:48that happened and axios being on the
- 48:50registry with a infostealer for 2 3
- 48:54hours before it was detected and
- 48:56removed. So I think right now and and
- 48:58actually it's funny because I just got a
- 48:59DM from someone that we both are trying
- 49:02to build something and I said I'm sorry,
- 49:05but I've been busy. I I've not been
- 49:06working on this because of other stuff,
- 49:09but if you want to work me to focus on
- 49:10this, I can like pick it back up. And he
- 49:12replied,
- 49:13"I've been really busy with these supply
- 49:15chain attacks." And I think it's it's
- 49:17actually a very interesting topic
- 49:19because everyone needs to change
- 49:21completely the way that we handle
- 49:24CVE and patch and
- 49:26you know, releases. So maybe I can give
- 49:28some background, right?
- 49:30The the established practice today to
- 49:33handle
- 49:34CVEs in the past was basically to adopt
- 49:38those fixes as soon as possible. So, if
- 49:40you use semantic versioning, you have
- 49:42three numbers. The first one is the
- 49:43major
- 49:44release, the second one is the minor
- 49:46release number, and the last one is the
- 49:48patch release number.
- 49:49Mhm.
- 49:49>> And so, usually if there's a CVE, which
- 49:52you're not introducing any new um
- 49:54features or you're doing a bug fix, you
- 49:57you bump that patch version number, the
- 49:59last number, right? If you're
- 50:01introducing new features, you do the
- 50:02minor, and if it's a massive breaking
- 50:04change, you do the the major uh release
- 50:07bump. So,
- 50:08the way that you use semantic versioning
- 50:10as a consumer of dependencies is by
- 50:13setting up some type of rules around or
- 50:16constraints around the packages that you
- 50:18accept, right? So, you can set up your
- 50:20your project, and this is something that
- 50:22people learned quickly when
- 50:24um they didn't put any constraints on
- 50:26the dependencies, and they just adopted
- 50:28minor and major um versions, and then
- 50:30they got hacked or they got uh impacted
- 50:33by those. So, people very quickly
- 50:35learned to put a constraint around
- 50:37dependency that you only accept uh patch
- 50:39releases or maybe sometimes minor
- 50:42releases, but usually just patch because
- 50:44minor release Well, not minor release
- 50:46shouldn't break you, right? Yeah, yeah,
- 50:47yeah, yeah, yeah. So, so the best
- 50:49practice right now that has been
- 50:51established long by Dependabot,
- 50:53Renovate, and others is to basically
- 50:55constantly check if any of your
- 50:57dependencies has a patch release. And
- 50:59then that usually indicates, because
- 51:01there's a CVE, you should upgrade as
- 51:03soon as possible. And so, Dependabot
- 51:05detects it, creates a pull request, and
- 51:07if you're really fancy, and I think a
- 51:09lot of people are, definitely if you
- 51:10manage many projects or open source
- 51:12projects, they set up an auto merge if
- 51:15all of the CICD pass, it immediately
- 51:17merges, right? So, that means that as
- 51:20soon as a patch release is published
- 51:21>> not quite fancy, but yeah, I mean No,
- 51:24all of the CDK, TN, all of the CDK,
- 51:26Terrain is auto bumping like that.
- 51:28>> I When I say fancy, I mean that's
- 51:30actually quite mature, but yeah, carry
- 51:32on. Yeah. Cool. So, you
- 51:34is the established best practice until
- 51:37today. Yeah. Because with the recent
- 51:40supply chain attacks, and a lot of those
- 51:43basically what happened is some projects
- 51:44get compromised, and the attackers are
- 51:47smart. They just push a patch release,
- 51:50right? So, everyone that's running
- 51:51Dependabot updates and pulls in this
- 51:54this package from the registry. So, this
- 51:57this best best practice works against
- 51:59people. And in the age of AI, there's
- 52:00been a lot more supply chain attacks, a
- 52:02lot more info stealers, a lot more like
- 52:04>> so there must be something to be said
- 52:06for people who don't update, right? I'm
- 52:08just looking at my notes.
- 52:09>> because if you don't update, you're
- 52:10still exposed to CVEs, which are also
- 52:12being detected first faster thanks to
- 52:14AI, because AI is analyzing codebases
- 52:16and finding CVEs faster. So, there are
- 52:18more patch releases. Yeah, it's between
- 52:20a rock and a hard place, isn't it? So,
- 52:22what you need to So, and so, I was
- 52:24asking around, how do I protect my
- 52:26project? Because we just forked, I don't
- 52:27want to get like a supply chain attack,
- 52:29and then all of the trust in the project
- 52:30dies. How do I make sure that this
- 52:32project is not on the newspaper? Maybe
- 52:34good and any news is better than than no
- 52:36news at all, right? I could just let it
- 52:38get hacked and then say, "Ah, people
- 52:40like Finally know there's a fork."
- 52:42No such thing as a bad publicity. Yeah,
- 52:44so anyway, I I don't intend to have it
- 52:46in the publicity in that way. So, I was
- 52:48asking around, and I really like how
- 52:51we're trying to solve this problem. It's
- 52:53an interesting thing to discuss as well.
- 52:55Cuz basically, a lot of these package
- 52:57managers, aside from you obviously
- 52:59fixing your long-lived credentials so
- 53:02that you they don't get stolen and using
- 53:03OIDC publishers so you get a short-lived
- 53:05credential to publish so that even if an
- 53:07info stealer got that key, it's already
- 53:08expired by the time it tries to use it.
- 53:10Yeah. Uh aside from first of trying to
- 53:12make sure that you don't get compromised
- 53:13that way, switch everything to OIDC for
- 53:15publishing. The other way is so that you
- 53:17don't get compromised as a consumer of
- 53:19these dependencies is to make sure that
- 53:21you use the feature that they have
- 53:23added, which is one, you can demand that
- 53:26the
- 53:27dependency must be older than X days or
- 53:30seconds. So, you can say to Dependabot
- 53:33or to the package manager, do not accept
- 53:36any package that hasn't been on the
- 53:37registry more than less than 3 days.
- 53:41Yeah, that sounds like a a very good
- 53:44approach, right? Because now if the
- 53:46package gets compromised, then hopefully
- 53:48it get discovered, and by the time you
- 53:51run, either it's been deleted or, you
- 53:53know, you shouldn't have it. Yeah, I
- 53:55guess that's like the Debian stable
- 53:57model, like it has to go through an
- 53:59unstable phase before it drops down into
- 54:01stability.
- 54:03And then the second thing is because I
- 54:05don't think that's enough, right? Maybe
- 54:06it was detected, but it wasn't taken
- 54:08down because of I don't know what
- 54:09reason, but usually NPM, G, actually the
- 54:11package registry managers will
- 54:12immediately take it down. Mhm.
- 54:14The second thing is you need to gate
- 54:16your CI, because your CI is not your
- 54:19unit test passing is not sufficient
- 54:22anymore for an auto merge. You have to
- 54:24run a security scan in your CI, right?
- 54:27And I was asking
- 54:28>> do that. A lot of people do that, but
- 54:29like
- 54:30>> Yeah, yeah. You were just saying it was
- 54:31fancy.
- 54:33Well, a a lot of people A lot of people
- 54:34do, but like I I I mean, I'm so worn
- 54:36down by Well, I'm not going to I'm going
- 54:38to say the name, Snyk. Like so many
- 54:41There's so many like noisy Snyk alerts
- 54:45Well, actually, because they have an
- 54:46open source supports option, I was
- 54:48thinking about, but I don't want to
- 54:50because we use it at work and I hate it.
- 54:52I don't even want to use it for my own
- 54:53source.
- 54:54>> What what what What are you talking
- 54:56about? Something What you just
- 54:57mentioned.
- 54:58>> Oh, okay, yeah. I don't I don't I don't
- 55:00mean to cast shade, but like it's
- 55:02probably like a user error, like we
- 55:03didn't configure it correctly or someone
- 55:05didn't configure it correctly. Some
- 55:07organ-
- 55:08inevitably org administrator applies it
- 55:10to every repo. So, every time you look
- 55:12at a repo, there's a bazillion security
- 55:15errors. You can hardly
- 55:17work through the mess. Okay. So, then
- 55:20then what I asked around and people told
- 55:22me is that actually NPM audit, in this
- 55:25case because we're doing the TypeScript
- 55:26projects, right? NPM audit is pretty
- 55:29good. So, Yeah, it is It is a great
- 55:31tool. So, when I talked about this auto
- 55:34update system that automatically merges
- 55:36the PR if everything's good, actually
- 55:38that's all built into Projen. Like you
- 55:40just have to enable a flag. You just
- 55:41say, "Yes, I want weekly updates. Yes, I
- 55:43want you to to make sure
- 55:45>> Okay. Yeah, and and Projen even switched
- 55:49from Yarn Classic because apparently
- 55:51Yarn Classic is not maintained and
- 55:53doesn't have any of those features. So,
- 55:54if you're on Yarn Classic, get off it,
- 55:57right? So, I'm moving everything from
- 55:59this inherited project from from CDK,
- 56:02TF, it's all using Yarn Classic. I'm
- 56:04migrating everything over to PNPM. Uh
- 56:07Projen migrated from Yarn Classic to
- 56:09NPM. They said it's good enough, it has
- 56:10everything we need, and it's less of a
- 56:12another hurdle for people to learn if
- 56:14they don't not familiar with it with
- 56:16with Yarn, Berry, or PNPM. But I'm using
- 56:19PNPM, I really like it. And Projen has
- 56:21support for PNPM dev dependency flag.
- 56:24So, you can just say like it must be
- 56:26older than 3 days, and I want you to run
- 56:28an NPM audit in the CI of that that job
- 56:31before it auto merges. It sounds like
- 56:33NPM in a way or no that that that
- 56:36ecosystem has the best tooling, because
- 56:38the the tooling in Python, I would say
- 56:42there isn't like an NPM audit. And
- 56:44that's what I was saying. Just that What
- 56:46do you want those guys to do for
- 56:47security?
- 56:47>> Yeah, that goes back to me bemoaning the
- 56:50data platform stuff. I mean, UV UV
- 56:53Astral would probably have those things,
- 56:55right?
- 56:55>> No, it doesn't really. Like the whole
- 56:56Astral update story is still a mess.
- 56:59Okay. That's not good. That's not good.
- 57:01So, yeah, I I think it was really cool
- 57:03because it's like um a really like
- 57:07really hot and and really interesting
- 57:09really. Uh because now you get like to
- 57:11play balance. But then, of course, the
- 57:12comment the first idea that most people
- 57:15have is like, "But if everything
- 57:16everyone is waiting to adopt a package,
- 57:18how are we even going to know if it's
- 57:20compromised?" Yeah, yeah, yeah. Cuz now
- 57:22everyone's going to wait 3 days before
- 57:23they they download it, and then they're
- 57:24only going to find
- 57:25>> imagine that that the NPM What whatever
- 57:28happens in NPM is going to be
- 57:31the the
- 57:32What is the the expression? It's like
- 57:34necessity is the mother of invention.
- 57:36The stuff that happens in NPM is on the
- 57:38forefront, right? And then it will
- 57:39trickle down to other ecosystems or the
- 57:42supply chain mitigations. So, so I have
- 57:44a lot of work to do in that aspect,
- 57:46actually. Like I still have to switch I
- 57:48have already enabled OIDC publishing on
- 57:50all the on all the registries, but I
- 57:52haven't switched over the actual
- 57:53publishers, the GitHub runners, to use
- 57:55OIDC. And Okay, you're like an NPM
- 57:58publisher deluxe, then I suppose. No,
- 58:00I'm like a NPM, NuGet, Maven, and PyPI
- 58:05publisher all across the board now.
- 58:07Yeah, that's That sounds kind of risky,
- 58:09actually. Yeah. I think I think I've got
- 58:12like
- 58:12I've got a couple of PyPI packages, and
- 58:15I've got a couple of NPM packages. I
- 58:17haven't uploaded to them for a while,
- 58:19but but yeah, I think they're both just
- 58:21passwords that I've never updated.
- 58:24Yeah. But then to to address the concern
- 58:26of people saying like, "But now
- 58:27everyone's waiting, so how are we going
- 58:29to know it's compromised?" But I think
- 58:31that that security companies have a real
- 58:33incentive, because every time And now
- 58:35they're like all over Reddit, like Step
- 58:36Security, but there's a couple of them,
- 58:39Roll Security. There's like a lot of
- 58:40security companies, and every time this
- 58:42happens, they're on Reddit posting,
- 58:44"There was this massive supply chain
- 58:46attack." They have an incentive to find
- 58:49to scan the packages published and find
- 58:52any info stealer, any type of
- 58:55you know, in injected whatever they they
- 58:58usually identify things like the package
- 59:00is unusually larger than than before.
- 59:03Yeah. The package has some base64
- 59:05encoded like strings in there that are
- 59:07weird. So, they do this this uh
- 59:09heuristical scans to very quickly detect
- 59:12them. So, I don't think we need to worry
- 59:14about if everyone waits 3 days, it's not
- 59:16going to make detection slower. And then
- 59:19somebody said gave me an example, "What
- 59:20about exit utils?" I think exit util is
- 59:23is like a completely different scenario,
- 59:25right? What was the example?
- 59:29X XZ utils, which was a
- 59:32Yeah, yeah, yeah. I mean that that got
- 59:35that took months before it was detected
- 59:37and only because some Microsoft
- 59:38researchers saw his CPU spikes
- 59:40>> maybe it's worth
- 59:42maybe it's worth plotting this in a in
- 59:43Excalidraw. Let me just
- 59:45public searchable cuz I do you think
- 59:47it's worth capturing? Which one? Like Z
- 59:49utils or what we just discussed? What we
- 59:52just discussed like um I'm just sharing
- 59:55my screen. And now we I just want to
- 59:57capture it.
- 59:58I just wanted to capture some
- 1:00:00roughness. So I thought it was really
- 1:00:01cool, interesting. Aside from obviously
- 1:00:04the Claude Code source code map leak,
- 1:00:07which has been talked about for death.
- 1:00:10Um
- 1:00:12I think the the scenario the whole
- 1:00:14situation around Trevi being a complete
- 1:00:16Is it it's Aqua Security that's that was
- 1:00:19completely compromised, no? Okay, so
- 1:00:20doing forgot how to use this thing.
- 1:00:23So the
- 1:00:25Uh we started by saying that like
- 1:00:26developers with uh you know, a password
- 1:00:32can can get compromised. Since they
- 1:00:35aren't using OIDC. So that that could
- 1:00:39happen. So that's that's one angle of
- 1:00:41of attack. I'm just I'm just wanted
- 1:00:43since they aren't using short-lived
- 1:00:45credentials. Yeah, yeah. It's not
- 1:00:47necessarily just OIDC, right? Oh my god.
- 1:00:50Aqua Security posted an update yesterday
- 1:00:52as well on on Wednesday, 2 days ago. The
- 1:00:54other angle is that people are not using
- 1:00:57uh security scanners. Yeah, but if you
- 1:00:59use Aqua Security scanner
- 1:01:01you got compromised.
- 1:01:03If you were using Trevi, you got
- 1:01:05compromised.
- 1:01:07Trevi is the exception.
- 1:01:09I I just wanted to plot like the the
- 1:01:11typical ways that supply chain I mean,
- 1:01:14there's probably a better list somewhere
- 1:01:15already.
- 1:01:16Um at least the ones that we talked
- 1:01:18about. Um and then there was a third
- 1:01:20one. What
- 1:01:21Sorry, I I lost I was too busy typing.
- 1:01:24What's What is the third one? Well,
- 1:01:26well, I guess what what you just said
- 1:01:28like the NPM will will will take that
- 1:01:31will will will catch it.
- 1:01:34Uh
- 1:01:35given you know, X Y X days of cool down
- 1:01:40or something like that. You know, like
- 1:01:42like the like the XC or something.
- 1:01:44>> It's something called um
- 1:01:47age. The package The age of the package
- 1:01:49has to be above. Let me find I did a
- 1:01:51pull request on the CDK terrain repo um
- 1:01:54provider project's old one. All these
- 1:01:57security companies have Has Has anyone
- 1:02:00Have these security companies actually
- 1:02:02said that we have stopped attacks on
- 1:02:04NPM? I want I I mean, does NPM use a
- 1:02:07security scanner? Yeah, I don't think
- 1:02:08they do because I think
- 1:02:10when when Microsoft owns NPM
- 1:02:12Microsoft owns NPM. Oh, really? Yeah.
- 1:02:15Let me check.
- 1:02:16>> even know that. NPMGS I mean, like the
- 1:02:18official registry owned by GitHub. So
- 1:02:21yes, Microsoft.
- 1:02:22You understand what I'm saying? Like
- 1:02:23when I
- 1:02:24maybe I have a bad memory, but when I
- 1:02:26published NPM, it's like pretty much
- 1:02:28instant. So that means there's no
- 1:02:31there's no gate, right? It It They They
- 1:02:33just publish it immediately. I think so,
- 1:02:35yeah. So it makes makes me think is this
- 1:02:37step two people are not using security
- 1:02:39scanners?
- 1:02:41Include does
- 1:02:42does NPM do this? Something to look
- 1:02:44into.
- 1:02:46Anyway, it's a it is an interesting
- 1:02:47space. It's a space So if you use PNPM,
- 1:02:50the flag is config.minimum release age
- 1:02:54and you have to provide the number in
- 1:02:56minutes. So I've just set it up as 4
- 1:02:59days.
- 1:03:01Which is 5,760 minutes.
- 1:03:03>> parameter called? Minimum Minimum like
- 1:03:06config yeah, minimum-release-age.
- 1:03:10Oh, cool. Not underscore, but dash, but
- 1:03:12okay, don't matter. And then the second
- 1:03:14thing is you can run NPM audit with
- 1:03:16audit levels. Yeah, NPM audit is really
- 1:03:19good. NPM audit. And the guy like who
- 1:03:22maintains Projen told me he finds it
- 1:03:24good enough. And And honestly, he's also
- 1:03:26the guy I was talking to about doing
- 1:03:28some something else and he says that he
- 1:03:31hasn't been able to work on it because
- 1:03:33and he's on AWS. He says because of
- 1:03:35these supply chain attacks have been
- 1:03:36taking all of his time. Projen is
- 1:03:38heavily used within AWS as far as I
- 1:03:40understand. The way that they maintain
- 1:03:41all of their repository boilerplate is
- 1:03:44with Projen. So all of these features
- 1:03:46allow AWS to very quickly roll out like
- 1:03:48these settings across all of their
- 1:03:50repositories, right? You just update the
- 1:03:52core project and then every repo adopts
- 1:03:54it and and and reconfigures itself
- 1:03:56accordingly. Which is a dream, by the
- 1:03:58way. Like um even here with this CDK
- 1:04:02terrain provider like with the CDK
- 1:04:04terrain setup that I inherited from
- 1:04:05HashiCorp, it's all managed by Projen
- 1:04:09and Terraform for GitHub. So
- 1:04:11>> The tooling that
- 1:04:12The tooling is really good when I think
- 1:04:14about it.
- 1:04:14>> It is really nice. Because I tried to
- 1:04:17roll out Projen within my organization
- 1:04:18as well, but again it's niche, it's
- 1:04:21complicated.
- 1:04:22>> is a is is CDK ecosystem very very very
- 1:04:27I mean, but Have we ever talked about
- 1:04:29Projen? Projen's TypeScript or It's
- 1:04:32written in TypeScript. Oh, it's
- 1:04:33available for Go? What?
- 1:04:35>> Yeah, because it uses JSII, right? Oh.
- 1:04:38How is it You wouldn't You wouldn't want
- 1:04:40to put it in a Go language project. How
- 1:04:43can you say if you never tried? Yeah, I
- 1:04:44I
- 1:04:45I guess I should
- 1:04:47>> It supports Python and they also support
- 1:04:49you UV in it now. Like the good thing
- 1:04:51about Projen is that it's that actually
- 1:04:53quite a lot of people use it even though
- 1:04:56not a lot of people know about it and
- 1:04:57that means that it's been kept up to
- 1:05:00date with like quite recent frameworks.
- 1:05:02We haven't updated the CDK TF supporting
- 1:05:04there yet. We have to switch Projen all
- 1:05:05the way over to CDK terrain. Um but
- 1:05:09it it really gives you like really good
- 1:05:11um
- 1:05:13Okay, so you know how GitHub has this
- 1:05:15amazing feature of creating a template
- 1:05:17repository, right?
- 1:05:19>> Yeah. Absolutely hate it. What happens
- 1:05:21after you create it?
- 1:05:22>> say it's sarcastic uh [snorts]
- 1:05:25amazing. Okay, carry on.
- 1:05:27>> So So And And not just updated. Yeah,
- 1:05:31and then and then people have to come up
- 1:05:32with all kinds of workarounds to
- 1:05:35>> Like at at my last workplace, there was
- 1:05:37uh actually the the workaround that we
- 1:05:39have was pretty good. It was like a pack
- 1:05:41pack new inspired. I don't know if you
- 1:05:44know Arch Linux.
- 1:05:46But basically, we wrote files into
- 1:05:48people's repositories with the suffix
- 1:05:49dot new. Okay. So So but still, you need
- 1:05:53a whole bunch of additional stuff,
- 1:05:55right? Um because the biggest problem of
- 1:05:57these scaffolding framework um libraries
- 1:06:00and cookie cutter and all this is that
- 1:06:01they will bootstrap a file system for
- 1:06:04you once and then that's it, right? How
- 1:06:06do you keep that updated? Most of them
- 1:06:08don't take that into account. So Projen
- 1:06:10is different in a way that it approaches
- 1:06:12the file system exactly the same way as
- 1:06:15it deals with like a construct tree in
- 1:06:18uh AWS CDK. So every file is basically
- 1:06:21an object in memory that you construct
- 1:06:24up into a tree. And then finally, when
- 1:06:27you have defined what the contents of
- 1:06:28the file is to look you know, on that
- 1:06:30particular path, when you when you
- 1:06:32synthesize, it writes everything down to
- 1:06:34disk, okay? So then it creates the whole
- 1:06:37I'm I'm understanding like it keeps your
- 1:06:39answers. It keeps your values. Yeah, and
- 1:06:41it it you can even have a function to
- 1:06:43lazily determine the contents of a file
- 1:06:46at the very end during synthesis, right?
- 1:06:48By you know, collecting all of the other
- 1:06:50files that have been generated and then
- 1:06:52generating the contents of that file. So
- 1:06:54you're able to completely functionally
- 1:06:55define the contents of your of your file
- 1:06:58system. And and and what's good about it
- 1:07:00is that you can also hook into the
- 1:07:02process. Like with with CDK and AWS CDK
- 1:07:05and CDK Terraform, you can before
- 1:07:08synthesis do some activities go on fun
- 1:07:10activities. No, but like what you can do
- 1:07:12is you can programmatically control the
- 1:07:14contents of the file, which also means
- 1:07:16that the consumer can define patches on
- 1:07:19top of the files. So he can go find a
- 1:07:21certain file within the tree and then
- 1:07:23add additional lines or do additional
- 1:07:25things because he in his case
- 1:07:28So that means that if the if the root
- 1:07:30project or the root object that built
- 1:07:33your construct your tree of objects has
- 1:07:36changes they will all just be adopted
- 1:07:39and regenerated your file system on disk
- 1:07:41and then your patches get rerun on top
- 1:07:43of it and get reapplied as well. As long
- 1:07:46as those two don't conflict, you know,
- 1:07:48it will just re-render the file system
- 1:07:50with your patches applied. So you can
- 1:07:51constantly keep updating the the source
- 1:07:54and then roll it out and it's all
- 1:07:55programmatic. So
- 1:07:57>> Yeah. So that's I mean, this is this is
- 1:07:59applicable for for a platform where
- 1:08:01you're supporting lots of products, I
- 1:08:03guess, right? I mean, that's the big
- 1:08:05reason. Yeah, so so where Projen really
- 1:08:07shines is in like a poly repo setup
- 1:08:09because it has really good support for
- 1:08:11like a single repo with just one package
- 1:08:14in it that needs to be published. If you
- 1:08:16start to deal with one repository and
- 1:08:17you need to support publishing multiple
- 1:08:19packages then it becomes a little bit
- 1:08:21more complicated. They have built
- 1:08:23support for that on top of Projen. But
- 1:08:25to be honest, I I never managed to make
- 1:08:27it work because this is the main reason
- 1:08:29I was not able to roll it out at work is
- 1:08:30because we we have a lot of repositories
- 1:08:32that are publishing multiple packages
- 1:08:34and so I had adopted Turbo repo. And you
- 1:08:37know, it's easy to build your own
- 1:08:39project type in Projen because you can
- 1:08:41define your object, which is a project
- 1:08:43type, and you can determine what are
- 1:08:45what is it like and and it works with
- 1:08:47add-ons. So yeah, you can create one
- 1:08:49object, which is like I'm going to take
- 1:08:50care of the GitHub workflows and I'm I'm
- 1:08:52an object that's going to take care of
- 1:08:54the I don't know, your your
- 1:08:56package.json, your your YAML, like your
- 1:08:58your your manifest for your package. So
- 1:09:00So it support all of these in like
- 1:09:02add-ons. So you can say now I have a
- 1:09:04repo, a base project, and I'm going to
- 1:09:06add on the GitHub actions object and
- 1:09:08it's going to generate my actions.
- 1:09:11That sounds really powerful. I mean, it
- 1:09:12sounds really handy for publishers like
- 1:09:15yourself who you know, CDK terrain. I
- 1:09:17mean, you you must be maintaining quite
- 1:09:19a few projects, right?
- 1:09:21>> just one. Yeah, yeah, we are maintaining
- 1:09:23a lot of projects, but we just have one
- 1:09:25project type in Projen that manages all
- 1:09:27of our providers. Yeah, yeah, yeah,
- 1:09:29yeah, yeah. So, so we just define a
- 1:09:31provider within the project is Yeah.
- 1:09:34this. And it comes with like it go it
- 1:09:36comes with jobs to go and check the
- 1:09:37Terraform registry if there's a new
- 1:09:39version of the provider, and then it
- 1:09:41will if there's a a new version, it will
- 1:09:43regenerate the bindings. I know my
- 1:09:45internet just hiccuped, right? But um
- 1:09:47>> It didn't my word. Yeah, but it will be
- 1:09:49fine on the recording. Yeah, yeah, I got
- 1:09:51to edit this. Cool, man. I I I got to
- 1:09:53rush out and buy some bread before this
- 1:09:56the baker sells out and enjoy a few days
- 1:09:58offline, I think. That's my mission. Not
- 1:10:01spend spend some more time with my kids
- 1:10:04since they're not they're on holiday
- 1:10:05now. Yeah. So, I'll I get back to you
- 1:10:07next week. And next week did I I I
- 1:10:09mentioned to you I'm going to this AI
- 1:10:10engineer conference today? Yes, you
- 1:10:12mentioned it.
- 1:10:13>> I'll I'll have some I'll have a lot more
- 1:10:15to say next week. Or the week after.
- 1:10:17I'll send you a link.
- 1:10:20We'll catch up then.
- 1:10:21Okay, see you. All the best. Have a good
- 1:10:24Easter. Yeps. Uh yeah, happy Easter.
- 1:10:26Yeah, are you going to do anything? No?
- 1:10:28No. You don't have Easter in Vietnam.
- 1:10:30You have other things. Yeah, but I'm on
- 1:10:33this very annoying contract where I
- 1:10:34don't have any ability to take leave, so
- 1:10:37I'm not taking any.
- 1:10:38>> of all time. Exactly. See you, man. Bye.
- 1:10:41Okay, bye.