WEBVTT

00:00:01.040 --> 00:00:03.760
Welcome to episode 12 of the AI

00:00:03.760 --> 00:00:06.480
Infrastructure Podcast with me, Kai

00:00:06.480 --> 00:00:10.240
Hendry in the UK and Vincent Smith over

00:00:10.240 --> 00:00:13.040
in Vietnam. In this episode, we talk

00:00:13.040 --> 00:00:15.040
about CDKTF.

00:00:15.040 --> 00:00:17.920
And long story short, we try to

00:00:17.920 --> 00:00:21.039
rationalize where CDKTF fits in in light

00:00:21.039 --> 00:00:23.920
of the recent deprecation by Hashi Corp/

00:00:23.920 --> 00:00:26.240
IBM.

00:00:26.240 --> 00:00:28.080
And

00:00:28.080 --> 00:00:31.439
we we do justify CDK. Uh well, let me

00:00:31.439 --> 00:00:34.079
give you a summary why we think CDK is

00:00:34.079 --> 00:00:36.160
important.

00:00:36.160 --> 00:00:39.120
It's a high level abstraction

00:00:39.120 --> 00:00:42.719
and it allows complicated cloud

00:00:42.719 --> 00:00:48.000
infrastructure to be reasoned about.

00:00:48.000 --> 00:00:50.640
It allows you to get the most out of the

00:00:50.640 --> 00:00:53.600
cloud to differentiate.

00:00:53.600 --> 00:00:56.879
And if you just think conversely perhaps

00:00:56.879 --> 00:00:59.280
if you got if you vibe coded your

00:00:59.280 --> 00:01:01.760
infrastructure using I don't know AWS

00:01:01.760 --> 00:01:04.559
CLI or something you just couldn't get

00:01:04.559 --> 00:01:06.159
uh

00:01:06.159 --> 00:01:10.240
a solid reproducible deterministic

00:01:10.240 --> 00:01:12.720
infrastructure that way you need higher

00:01:12.720 --> 00:01:15.840
level constructs uh that the AWS CDK

00:01:15.840 --> 00:01:21.200
sort of provide you. So

00:01:21.200 --> 00:01:23.600
you ideally need to work with it. So in

00:01:23.600 --> 00:01:26.320
light of the deprecation of of IBM that

00:01:26.320 --> 00:01:30.320
we need to find a place for for CDK a

00:01:30.320 --> 00:01:33.360
programming language in order to do the

00:01:33.360 --> 00:01:35.119
next level stuff with the cloud and

00:01:35.119 --> 00:01:38.560
infrastructure. So enjoy the episode.

00:01:38.560 --> 00:01:41.280
Please uh

00:01:41.280 --> 00:01:44.479
if if CDKTF doesn't uh tickle your

00:01:44.479 --> 00:01:46.880
fancy, check out the other stuff in the

00:01:46.880 --> 00:01:50.399
playlist and have a merry Christmas. See

00:01:50.399 --> 00:01:52.560
you. Goodbye.

00:01:52.560 --> 00:01:55.439
Yeah, this guy. Which which guy?

00:01:55.439 --> 00:01:59.520
>> So, since CDKTF was sunset by IBM and I

00:01:59.520 --> 00:02:02.079
created a fork under a project that I

00:02:02.079 --> 00:02:04.320
built a bunch of CDKF

00:02:04.320 --> 00:02:07.280
L2 constructs. There's one guy who's

00:02:07.280 --> 00:02:11.920
been contributing three PRs over

00:02:11.920 --> 00:02:14.000
well so far he's contributed I think

00:02:14.000 --> 00:02:17.520
seven PRs already and I merged six and

00:02:17.520 --> 00:02:19.200
he keeps adding cool stuff. It's

00:02:19.200 --> 00:02:20.480
amazing.

00:02:20.480 --> 00:02:22.879
>> Yeah. So you just forked it and and

00:02:22.879 --> 00:02:24.101
>> No, no, no. He contributes.

00:02:24.101 --> 00:02:24.800
[clears throat]

00:02:24.800 --> 00:02:27.440
So the one that I forked, I put it on

00:02:27.440 --> 00:02:29.840
pause, right? We're waiting for a go-

00:02:29.840 --> 00:02:32.560
ahead. Um we're collaborating with the

00:02:32.560 --> 00:02:36.400
Open Construct Foundation which um hosts

00:02:36.400 --> 00:02:38.879
several of the

00:02:38.879 --> 00:02:41.840
you know CDK related projects and we're

00:02:41.840 --> 00:02:45.200
trying to find a final and good name. Um

00:02:45.200 --> 00:02:47.519
hopefully we don't have to rename but I

00:02:47.519 --> 00:02:50.080
sincere I seriously doubt that Hashi

00:02:50.080 --> 00:02:52.160
Corp is going to allow us to use the

00:02:52.160 --> 00:02:55.360
original CDKTF package names. So we'll

00:02:55.360 --> 00:02:57.519
probably have to rename it. And I

00:02:57.519 --> 00:02:59.599
renamed the TCON which is Terra

00:02:59.599 --> 00:03:02.000
Constructs. It's a four-letter acronym

00:03:02.000 --> 00:03:04.560
and people obviously don't like that.

00:03:04.560 --> 00:03:07.360
TCON sounds familiar now. [snorts]

00:03:07.360 --> 00:03:08.879
>> Yeah. Terra Constructs is the library

00:03:08.879 --> 00:03:09.920
that I built.

00:03:09.920 --> 00:03:11.360
>> Oh okay.

00:03:11.360 --> 00:03:13.920
>> Yeah. So tons is is what I you know it's

00:03:13.920 --> 00:03:16.159
a scope that I have on npmgs. So I use

00:03:16.159 --> 00:03:17.760
it for a lot of stuff. So I was like,

00:03:17.760 --> 00:03:19.599
"Yeah, I'm just going to reuse I just

00:03:19.599 --> 00:03:21.120
took immediate action, right? Fork it

00:03:21.120 --> 00:03:24.362
and rename it to my stuff and then

00:03:24.362 --> 00:03:25.760
[snorts]

00:03:25.760 --> 00:03:27.519
>> then um

00:03:27.519 --> 00:03:30.239
>> yeah, so it it pushed my project in the

00:03:30.239 --> 00:03:32.720
foreground and we're holding on the fork

00:03:32.720 --> 00:03:34.640
because we don't have the final name and

00:03:34.640 --> 00:03:37.040
I agree maybe we don't call it TCON, but

00:03:37.040 --> 00:03:38.560
at the same time somebody else took

00:03:38.560 --> 00:03:40.879
notice of my other project and has

00:03:40.879 --> 00:03:44.400
contributed about eight PRs to it and

00:03:44.400 --> 00:03:46.000
they are all high quality.

00:03:46.000 --> 00:03:47.360
>> Can you show me? Can you get give me a

00:03:47.360 --> 00:03:48.879
link? I just I'm just curious to see

00:03:48.879 --> 00:03:51.040
what what what what you what what this

00:03:51.040 --> 00:03:52.879
contribution is. [snorts]

00:03:52.879 --> 00:03:57.360
>> Yeah. Uh

00:03:57.360 --> 00:03:59.760
it's on my

00:03:59.760 --> 00:04:04.239
here.

00:04:04.239 --> 00:04:08.080
I have to get used to this um thing

00:04:08.080 --> 00:04:10.879
jumping around. Hold on.

00:04:10.879 --> 00:04:13.360
>> But you mean your Arch Linux C?

00:04:13.360 --> 00:04:18.479
>> Yeah, I use I use Arch by the way.

00:04:18.479 --> 00:04:20.079
It's never going to get old. Going to

00:04:20.079 --> 00:04:24.400
keep saying it. Okay. I send it on Zoom.

00:04:24.400 --> 00:04:27.360
>> Yeah. Like Primagin says a lot. Does he?

00:04:27.360 --> 00:04:30.080
>> Does he just We're just following other

00:04:30.080 --> 00:04:33.793
YouTubers. So sad.

00:04:33.793 --> 00:04:34.479
[snorts] Uh

00:04:34.479 --> 00:04:35.840
>> no. But then then I have to start

00:04:35.840 --> 00:04:38.400
whining like Teo.

00:04:38.400 --> 00:04:41.680
>> Shots fired.

00:04:41.680 --> 00:04:44.080
>> I'm already doing a job whining. Right.

00:04:44.080 --> 00:04:46.720
One complaint that I get from my YouTube

00:04:46.720 --> 00:04:49.360
channel is that like, Kai, yeah, I like

00:04:49.360 --> 00:04:51.199
your content, but you you you complain

00:04:51.199 --> 00:04:53.040
too much, so I can't watch you. It's

00:04:53.040 --> 00:04:59.199
like, what do I am I that guy?

00:04:59.199 --> 00:05:02.240
Uh,

00:05:02.240 --> 00:05:05.520
okay. Refactor, use AWS CDK. Oh, hold

00:05:05.520 --> 00:05:09.840
on. Let me see if I can sh my screen.

00:05:09.840 --> 00:05:11.600
I've been digging into that PR because

00:05:11.600 --> 00:05:16.240
it actually enables really cool stuff.

00:05:16.240 --> 00:05:19.360
So basically a little bit of background.

00:05:19.360 --> 00:05:24.160
AWS CDK has this regional information

00:05:24.160 --> 00:05:26.000
library

00:05:26.000 --> 00:05:28.240
that keeps it track of like which

00:05:28.240 --> 00:05:30.479
capabilities are available across the

00:05:30.479 --> 00:05:34.320
regions. They download a fact table like

00:05:34.320 --> 00:05:38.080
uh lambda runtime support for NodeJS

00:05:38.080 --> 00:05:40.880
latest is version 22 in China or

00:05:40.880 --> 00:05:42.960
government region for example but it's

00:05:42.960 --> 00:05:45.360
version 24 for other regions where

00:05:45.360 --> 00:05:47.360
NodeJS version 24 has already been

00:05:47.360 --> 00:05:48.880
deployed right it takes time for this

00:05:48.880 --> 00:05:50.400
stuff to deploy

00:05:50.400 --> 00:05:51.919
>> so [clears throat]

00:05:51.919 --> 00:05:55.039
other stuff is like uh S3 bucket

00:05:55.039 --> 00:05:58.320
endpoints or like the domain suffix of

00:05:58.320 --> 00:06:01.120
an S3 uh original endpoint point, right?

00:06:01.120 --> 00:06:04.160
The URL suffix that um they changed the

00:06:04.160 --> 00:06:07.120
way that that S3 works over the years.

00:06:07.120 --> 00:06:09.600
So new regions, they use a different

00:06:09.600 --> 00:06:10.479
suffix.

00:06:10.479 --> 00:06:13.440
>> So the you know, I think I noticed that.

00:06:13.440 --> 00:06:16.080
>> Yeah. So the AWS CDK has logic in it

00:06:16.080 --> 00:06:18.880
that uses a fact table about the regions

00:06:18.880 --> 00:06:22.240
to figure out how to build a a bucket or

00:06:22.240 --> 00:06:25.039
like if you give it a a bucket URL or

00:06:25.039 --> 00:06:27.680
just a bucket name and and it's it has a

00:06:27.680 --> 00:06:30.319
it has a regional like your AWS CDK

00:06:30.319 --> 00:06:32.560
stack has a region. So then it uses that

00:06:32.560 --> 00:06:34.160
information to find out yeah what's

00:06:34.160 --> 00:06:36.160
going to be the domain URL for that

00:06:36.160 --> 00:06:38.319
bucket depending on the region. So I had

00:06:38.319 --> 00:06:40.319
copied that over. I had copied over the

00:06:40.319 --> 00:06:42.400
fact table into my code because I didn't

00:06:42.400 --> 00:06:44.560
know it was a separate package. And he

00:06:44.560 --> 00:06:46.240
says, "Well, you know, we don't have to

00:06:46.240 --> 00:06:48.160
copy over the details. We can just reuse

00:06:48.160 --> 00:06:51.039
the AWS CDK package on top of CDKTF."

00:06:51.039 --> 00:06:52.880
>> Cool. This actually looks like a pretty

00:06:52.880 --> 00:06:54.720
good contribution. Holy moly. I'm I'm

00:06:54.720 --> 00:06:56.319
>> Oh yeah, dude. All of his contributions

00:06:56.319 --> 00:06:58.720
have been absolute fire. The only thing

00:06:58.720 --> 00:07:00.160
is he doesn't write integration tests.

00:07:00.160 --> 00:07:01.840
So every single one of them I I check

00:07:01.840 --> 00:07:04.639
out and I um I I build an integration

00:07:04.639 --> 00:07:05.919
test and I validate that you can

00:07:05.919 --> 00:07:08.240
actually terraform deploy it into AWS

00:07:08.240 --> 00:07:11.039
and doesn't get any errors. Yeah. But

00:07:11.039 --> 00:07:12.960
he's been he's been aligning Terra

00:07:12.960 --> 00:07:15.280
constructs closely to AWS CDK.

00:07:15.280 --> 00:07:17.599
>> Cool.

00:07:17.599 --> 00:07:20.240
So I got a couple of maybe noob

00:07:20.240 --> 00:07:23.280
questions for you but like I guess this

00:07:23.280 --> 00:07:26.160
might serve the audience.

00:07:26.160 --> 00:07:27.680
So

00:07:27.680 --> 00:07:30.720
CDK for Terraform

00:07:30.720 --> 00:07:33.039
basically allow people to write in that

00:07:33.039 --> 00:07:37.840
familiar CDK style which was

00:07:37.840 --> 00:07:40.560
which was like which came out of

00:07:40.560 --> 00:07:41.280
>> AWS

00:07:41.280 --> 00:07:44.800
>> AWS uh what's his name? Ben Ben Israel

00:07:44.800 --> 00:07:46.080
right that guy

00:07:46.080 --> 00:07:48.160
>> not Ben Israel

00:07:48.160 --> 00:07:52.319
>> um who was it again?

00:07:52.319 --> 00:07:55.599
Is it worth mentioning her name?

00:07:55.599 --> 00:07:56.879
Who? What? Sorry.

00:07:56.879 --> 00:07:59.280
>> Who who who was the guy that was in the

00:07:59.280 --> 00:08:02.639
original team that he left and he he did

00:08:02.639 --> 00:08:04.319
did Wing Wing Lang?

00:08:04.319 --> 00:08:07.120
>> Yeah. Elot Ben Israel. Uh Elot Ben

00:08:07.120 --> 00:08:08.400
Israel.

00:08:08.400 --> 00:08:10.000
>> Oh, I I wasn't wrong with the name.

00:08:10.000 --> 00:08:10.800
Okay. Sorry.

00:08:10.800 --> 00:08:11.440
>> Yeah. Yeah.

00:08:11.440 --> 00:08:13.599
>> I thought I was making up the his name

00:08:13.599 --> 00:08:18.000
or something. So, CDK

00:08:18.000 --> 00:08:20.080
cool beans. I think we went through

00:08:20.080 --> 00:08:23.520
yesterday that it was like the the thing

00:08:23.520 --> 00:08:25.759
that really makes it different is that

00:08:25.759 --> 00:08:29.440
is that it's operationally

00:08:29.440 --> 00:08:31.440
uh friendly. You can refactor this the

00:08:31.440 --> 00:08:33.279
stuff

00:08:33.279 --> 00:08:35.519
and it's a programming language un

00:08:35.519 --> 00:08:37.919
unlike maybe Terraform and things like

00:08:37.919 --> 00:08:40.959
that. Now the thing that I don't

00:08:40.959 --> 00:08:44.320
understand is how it links up with

00:08:44.320 --> 00:08:48.959
Terraform. A and B

00:08:48.959 --> 00:08:51.760
what did actually CDK for Terraform

00:08:51.760 --> 00:08:53.360
actually provide? Did they provide

00:08:53.360 --> 00:08:56.720
everything that that uh Terraform

00:08:56.720 --> 00:09:00.720
providers did or was it a subset?

00:09:00.720 --> 00:09:03.760
Okay. So

00:09:03.760 --> 00:09:07.920
the cloud development toolkit CDK from

00:09:07.920 --> 00:09:11.519
AWS com is built upon and they've split

00:09:11.519 --> 00:09:14.720
this out like some composible

00:09:14.720 --> 00:09:18.320
um ideas. So one of them is the concept

00:09:18.320 --> 00:09:21.680
of constructs. Constructs are basically

00:09:21.680 --> 00:09:24.320
objects that

00:09:24.320 --> 00:09:27.279
know how to synthesize or write themsel

00:09:27.279 --> 00:09:29.600
out into like a small little snippet of

00:09:29.600 --> 00:09:30.720
configuration,

00:09:30.720 --> 00:09:33.279
>> right? If you use if you use a con and

00:09:33.279 --> 00:09:35.760
they are able to be composed into trees

00:09:35.760 --> 00:09:37.760
of constructs so you can nest constructs

00:09:37.760 --> 00:09:41.360
into other constructs and so

00:09:41.360 --> 00:09:45.040
>> yeah don't people sometimes call them

00:09:45.040 --> 00:09:48.240
>> oh is my webcam just stopped don't don't

00:09:48.240 --> 00:09:50.480
some people call them like stages or

00:09:50.480 --> 00:09:51.440
something like that

00:09:51.440 --> 00:09:54.720
>> no stages is something else I think it's

00:09:54.720 --> 00:09:58.880
um if you are doing like cloud for

00:09:58.880 --> 00:10:01.600
deployment across different

00:10:01.600 --> 00:10:03.519
environments. I think you can define

00:10:03.519 --> 00:10:04.800
stages,

00:10:04.800 --> 00:10:05.279
>> okay,

00:10:05.279 --> 00:10:08.000
>> to like duplicate stacks. I I mean I I

00:10:08.000 --> 00:10:10.160
know that CDK pipelines uses stages. I

00:10:10.160 --> 00:10:11.600
know that there's a concept of stages

00:10:11.600 --> 00:10:15.920
within AWS CDK, but the thing is

00:10:15.920 --> 00:10:19.360
first AWS CDK was built within AWS.

00:10:19.360 --> 00:10:19.920
Right.

00:10:19.920 --> 00:10:20.399
>> Right.

00:10:20.399 --> 00:10:23.040
>> They had a couple of crucial innovations

00:10:23.040 --> 00:10:25.279
in terms of infrastructure as code. The

00:10:25.279 --> 00:10:29.200
first one is a tree,

00:10:29.200 --> 00:10:31.680
a composition of configuration that

00:10:31.680 --> 00:10:33.680
starts at the root note which is usually

00:10:33.680 --> 00:10:36.160
your app, your entry point and from

00:10:36.160 --> 00:10:38.880
there on you tie like a tree of

00:10:38.880 --> 00:10:41.360
constructs and when you and each one of

00:10:41.360 --> 00:10:44.399
them have a little bit of configuration

00:10:44.399 --> 00:10:47.360
like information so they know how to

00:10:47.360 --> 00:10:50.240
synthesize out into a configuration

00:10:50.240 --> 00:10:54.000
target language. So if you use AWS CDK,

00:10:54.000 --> 00:10:56.240
the constructs that you need are the

00:10:56.240 --> 00:10:59.120
app, the AWS CDK app,

00:10:59.120 --> 00:11:01.040
>> that synthesizes itself down to a cloud

00:11:01.040 --> 00:11:02.480
for stack,

00:11:02.480 --> 00:11:03.040
>> right?

00:11:03.040 --> 00:11:04.640
>> And then each construct that you put

00:11:04.640 --> 00:11:06.800
inside those apps

00:11:06.800 --> 00:11:10.640
um will be a cloud for resource, right?

00:11:10.640 --> 00:11:12.000
Because within a stack you use cloud

00:11:12.000 --> 00:11:13.440
form resources, right?

00:11:13.440 --> 00:11:13.760
>> Right.

00:11:13.760 --> 00:11:15.760
>> And now if you apply those ideas on top

00:11:15.760 --> 00:11:16.959
of Terraform,

00:11:16.959 --> 00:11:19.279
>> right? So when when they port over the

00:11:19.279 --> 00:11:21.839
the app, it's basically something that

00:11:21.839 --> 00:11:24.240
represents a single terraform

00:11:24.240 --> 00:11:26.480
uh root module, right? If you talk about

00:11:26.480 --> 00:11:30.480
terraform modu um nomenclature or or

00:11:30.480 --> 00:11:31.279
concepts

00:11:31.279 --> 00:11:32.720
>> terminologies.

00:11:32.720 --> 00:11:34.480
>> Yeah. Yeah. If you if you basically have

00:11:34.480 --> 00:11:36.240
a directory and you drop in a config

00:11:36.240 --> 00:11:38.480
file and then you run Terraform in it,

00:11:38.480 --> 00:11:41.680
it will consider that directory as the

00:11:41.680 --> 00:11:43.760
root module, right? And then if you

00:11:43.760 --> 00:11:45.440
create another directory and you put in

00:11:45.440 --> 00:11:47.600
some config there and then you include

00:11:47.600 --> 00:11:49.680
that directory as a module that will be

00:11:49.680 --> 00:11:52.640
like a sub module right. So in terapform

00:11:52.640 --> 00:11:54.320
constructs are kind of like directories

00:11:54.320 --> 00:11:57.600
of configuration files and you you um

00:11:57.600 --> 00:12:00.800
source them into like module source and

00:12:00.800 --> 00:12:02.720
then you can nest those modules as well.

00:12:02.720 --> 00:12:07.600
But the one that is the actual um

00:12:07.600 --> 00:12:09.680
you know app entry point is the root

00:12:09.680 --> 00:12:11.360
module of your directory. Right? When

00:12:11.360 --> 00:12:13.519
terraform runs, it will find the

00:12:13.519 --> 00:12:15.519
terapform configurations in your

00:12:15.519 --> 00:12:17.440
directly sibling files and aggregate

00:12:17.440 --> 00:12:20.000
everything into a single config in

00:12:20.000 --> 00:12:22.000
memory, right? Both HCL, which is a

00:12:22.000 --> 00:12:23.760
separate set of JSON and some JSON if

00:12:23.760 --> 00:12:25.680
you want. And then it will create in

00:12:25.680 --> 00:12:28.720
memory your Terraform configuration.

00:12:28.720 --> 00:12:30.880
And then within that root module, you

00:12:30.880 --> 00:12:32.560
may refer to other modules that are

00:12:32.560 --> 00:12:34.079
coming from either

00:12:34.079 --> 00:12:35.680
>> it does it write it out as normal

00:12:35.680 --> 00:12:37.279
Terraform. So you can inspect the

00:12:37.279 --> 00:12:38.880
Terraform.

00:12:38.880 --> 00:12:41.760
>> Yeah. So the the whole greatness of CDK

00:12:41.760 --> 00:12:44.880
for Terraform is that ultimately what

00:12:44.880 --> 00:12:50.560
you get once you synthesize or serialize

00:12:50.560 --> 00:12:52.560
that construct tree down to the target

00:12:52.560 --> 00:12:58.240
language you get pure and raw Terraform

00:12:58.240 --> 00:13:01.120
>> and is is it is it readable or is it

00:13:01.120 --> 00:13:02.800
like

00:13:02.800 --> 00:13:04.160
>> it is

00:13:04.160 --> 00:13:05.680
>> nonsense?

00:13:05.680 --> 00:13:08.079
>> It's very readable. Uh there's a couple

00:13:08.079 --> 00:13:10.000
of things that may you know make people

00:13:10.000 --> 00:13:15.040
upset because in the construct tree

00:13:15.040 --> 00:13:17.760
um the identity of a resource like if

00:13:17.760 --> 00:13:19.920
you write terraform you're going to say

00:13:19.920 --> 00:13:22.560
um AWS

00:13:22.560 --> 00:13:24.320
instance and then you give it a name

00:13:24.320 --> 00:13:26.720
like uh web and then you put in the

00:13:26.720 --> 00:13:29.440
config attributes such as VPC ID

00:13:29.440 --> 00:13:32.160
instance type imi like what's the image

00:13:32.160 --> 00:13:34.320
that needs to be provided right so the

00:13:34.320 --> 00:13:37.440
name right AWS instance And then you

00:13:37.440 --> 00:13:41.519
have the name web in when you serialize

00:13:41.519 --> 00:13:43.600
from from TypeScript down into that

00:13:43.600 --> 00:13:44.639
config.

00:13:44.639 --> 00:13:45.120
>> Yeah.

00:13:45.120 --> 00:13:47.120
>> Kind of flattens everything. So it it

00:13:47.120 --> 00:13:49.680
does some type of unique ID generation.

00:13:49.680 --> 00:13:50.959
>> That's a good thing though. I thought we

00:13:50.959 --> 00:13:52.800
we we discussed that.

00:13:52.800 --> 00:13:55.279
>> No, it it's it creates an unique logical

00:13:55.279 --> 00:13:57.120
ID. So that resource it's not your

00:13:57.120 --> 00:13:58.880
physical ID because in in any case when

00:13:58.880 --> 00:14:00.720
you create an instance in AWS your

00:14:00.720 --> 00:14:02.480
physical ID is you cannot determine it

00:14:02.480 --> 00:14:04.720
either, right? Not all AWS resources

00:14:04.720 --> 00:14:07.199
allow you to determine your physical ID.

00:14:07.199 --> 00:14:09.600
The instance ID is I- blah blah blah

00:14:09.600 --> 00:14:12.320
blah. Your your load balancer ID is I is

00:14:12.320 --> 00:14:14.639
LB- something. But if you do a bucket

00:14:14.639 --> 00:14:16.480
and you say I want the bucket name to be

00:14:16.480 --> 00:14:18.800
FU, it will be exactly FU and globally

00:14:18.800 --> 00:14:20.160
unique. You will not get it even if

00:14:20.160 --> 00:14:21.600
somebody else created a bucket fu.

00:14:21.600 --> 00:14:22.240
Right? [snorts]

00:14:22.240 --> 00:14:25.040
>> Um so so some resources they allow you

00:14:25.040 --> 00:14:27.519
to determine or to define your physical

00:14:27.519 --> 00:14:30.000
ID and some [snorts] resources they

00:14:30.000 --> 00:14:31.600
don't allow you and they automatically

00:14:31.600 --> 00:14:33.440
get an ID. But here I'm talking about

00:14:33.440 --> 00:14:36.000
the logical ID, right? Even though the

00:14:36.000 --> 00:14:37.600
logical ID will be something that you

00:14:37.600 --> 00:14:39.760
write in your configuration file. So if

00:14:39.760 --> 00:14:42.399
you ask me like does it serialize to to

00:14:42.399 --> 00:14:47.120
readable terraform, it is just the logic

00:14:47.120 --> 00:14:49.120
ids have these weird suffixes that you

00:14:49.120 --> 00:14:50.560
can actually disable if you want. You

00:14:50.560 --> 00:14:52.480
can actually go and say don't give me

00:14:52.480 --> 00:14:54.959
these hash suffixes, but they're used to

00:14:54.959 --> 00:14:57.360
make things unique. They're used to make

00:14:57.360 --> 00:14:58.959
sure that the logic IDs don't have any

00:14:58.959 --> 00:15:01.440
conflicts. So, [snorts] so that's the

00:15:01.440 --> 00:15:02.959
only thing that I think people when they

00:15:02.959 --> 00:15:04.639
first look at it kind of get annoyed by

00:15:04.639 --> 00:15:06.800
is like why are these names so like have

00:15:06.800 --> 00:15:09.199
this weird checksum like like you know

00:15:09.199 --> 00:15:12.000
this hash at the end of the name. Uh and

00:15:12.000 --> 00:15:13.360
that's purely because they don't want to

00:15:13.360 --> 00:15:15.199
have a conflict or an error when you

00:15:15.199 --> 00:15:17.199
have like nested parts that all get

00:15:17.199 --> 00:15:19.360
serialized down into the root module.

00:15:19.360 --> 00:15:22.560
>> Um so CDKTF also supports modules

00:15:22.560 --> 00:15:24.160
Terraform modules by the way you can

00:15:24.160 --> 00:15:25.920
refer to an existing Terapform module.

00:15:25.920 --> 00:15:28.160
So it's very good for an existing team

00:15:28.160 --> 00:15:30.320
that is already using terapform modules

00:15:30.320 --> 00:15:33.199
extensively. With CDKTF, you can take

00:15:33.199 --> 00:15:35.680
that terapform module and convert it

00:15:35.680 --> 00:15:38.399
into a TypeScript interface. So it reads

00:15:38.399 --> 00:15:40.720
the full module definition, looks at all

00:15:40.720 --> 00:15:42.800
of the variables and their types

00:15:42.800 --> 00:15:44.639
>> and then creates an equivalent type.

00:15:44.639 --> 00:15:48.079
>> In my in my current client, we we we

00:15:48.079 --> 00:15:50.160
switched to Terra. They they were

00:15:50.160 --> 00:15:53.519
they're a CDK shop, but we but when I

00:15:53.519 --> 00:15:56.480
joined, we we basically set up a new

00:15:56.480 --> 00:15:59.120
workflow with Terraform because of

00:15:59.120 --> 00:16:00.639
Snowflake.

00:16:00.639 --> 00:16:02.959
But it sounds like I could have used

00:16:02.959 --> 00:16:06.399
CDKTF to bring in the Snowflake

00:16:06.399 --> 00:16:09.600
Terraform provider into into CDK world,

00:16:09.600 --> 00:16:13.600
right? Or to Am I misunderstanding?

00:16:13.600 --> 00:16:18.160
the CDKTF provider would allow you to if

00:16:18.160 --> 00:16:21.680
you so so that's one thing right you can

00:16:21.680 --> 00:16:23.519
create bindings for modules and it will

00:16:23.519 --> 00:16:24.959
look at the variables that the module

00:16:24.959 --> 00:16:26.480
take and then generate a typescript

00:16:26.480 --> 00:16:28.560
interface or you can create bindings to

00:16:28.560 --> 00:16:30.079
terapform providers like the so

00:16:30.079 --> 00:16:33.040
snowflake provider and yes you will get

00:16:33.040 --> 00:16:35.680
a TypeScript interface but no it will

00:16:35.680 --> 00:16:38.639
not allow you to to use it with AWS CDK

00:16:38.639 --> 00:16:40.480
right because AWS CDK only works with

00:16:40.480 --> 00:16:43.600
cloud form and the CDKTF generated one

00:16:43.600 --> 00:16:45.120
will generate terraform.

00:16:45.120 --> 00:16:49.279
>> Yeah. Yes. So, but it Yeah.

00:16:49.279 --> 00:16:51.360
I mean, to be honest, I'm not a huge fan

00:16:51.360 --> 00:16:57.199
of all the I mean, this this this magic

00:16:57.199 --> 00:16:59.199
converting different bindings of

00:16:59.199 --> 00:17:00.800
different languages into CDK kind of

00:17:00.800 --> 00:17:01.839
makes me nervous.

00:17:01.839 --> 00:17:04.480
>> I I want to clarify one thing, right? in

00:17:04.480 --> 00:17:06.000
itself

00:17:06.000 --> 00:17:08.079
creating a terapform provider I mean

00:17:08.079 --> 00:17:09.520
reading in the terraform provider

00:17:09.520 --> 00:17:11.679
resources and generating TypeScript

00:17:11.679 --> 00:17:14.240
bindings or Python orn net or whatever

00:17:14.240 --> 00:17:16.959
on its own has very little value

00:17:16.959 --> 00:17:20.559
honestly um you just get these like L1

00:17:20.559 --> 00:17:25.120
constructs and you now can call that

00:17:25.120 --> 00:17:27.600
constructor and maybe the one thing that

00:17:27.600 --> 00:17:30.799
you get is you're able to use like um

00:17:30.799 --> 00:17:34.000
lazy evaluations basically you And for

00:17:34.000 --> 00:17:35.440
some attributes, you can provide a

00:17:35.440 --> 00:17:38.000
function instead of an actual value. And

00:17:38.000 --> 00:17:40.559
so when it synthesizes, it's going to

00:17:40.559 --> 00:17:43.039
execute the function to basically decide

00:17:43.039 --> 00:17:44.640
what the value for that property needs

00:17:44.640 --> 00:17:46.480
to be. And that is very powerful

00:17:46.480 --> 00:17:48.080
already, right? Because it means that

00:17:48.080 --> 00:17:50.559
depending on how you call it, a function

00:17:50.559 --> 00:17:52.640
can execute and then determine what the

00:17:52.640 --> 00:17:54.160
value for this particular attribute

00:17:54.160 --> 00:17:57.840
could be. Um, for example, if you are

00:17:57.840 --> 00:17:59.760
where is this like really useful? Yeah,

00:17:59.760 --> 00:18:02.400
maybe in policies, right? Let's say that

00:18:02.400 --> 00:18:04.880
you you are you are building some type

00:18:04.880 --> 00:18:06.880
of infrastructure and you're using an IM

00:18:06.880 --> 00:18:09.840
policy and you're using a bunch of other

00:18:09.840 --> 00:18:12.240
resources and you want the policy to be

00:18:12.240 --> 00:18:14.559
generated at the very end after the user

00:18:14.559 --> 00:18:16.559
has already defined the full program and

00:18:16.559 --> 00:18:18.320
all of the configuration that he wants

00:18:18.320 --> 00:18:18.480
to be

00:18:18.480 --> 00:18:20.000
>> generated. Yeah, there's a lease

00:18:20.000 --> 00:18:21.840
privileges type thing. M

00:18:21.840 --> 00:18:24.559
>> yeah the functions can be very smart and

00:18:24.559 --> 00:18:27.120
identify exactly what are the actions

00:18:27.120 --> 00:18:29.200
that need to be added into the policy

00:18:29.200 --> 00:18:33.360
depending on what the user um you know

00:18:33.360 --> 00:18:35.679
connected. So it's kind of like it's

00:18:35.679 --> 00:18:37.520
kind of a mixture of like an imperative

00:18:37.520 --> 00:18:39.039
language to create a declarative

00:18:39.039 --> 00:18:41.360
definition of infrastructure as code and

00:18:41.360 --> 00:18:42.720
like people are like oh you know why

00:18:42.720 --> 00:18:44.960
would you do that you know is all about

00:18:44.960 --> 00:18:47.679
declarative and you you cannot do mix it

00:18:47.679 --> 00:18:49.600
with imperative you start doing that

00:18:49.600 --> 00:18:51.760
people will no longer like know exactly

00:18:51.760 --> 00:18:54.000
what's going on uh but if you look at

00:18:54.000 --> 00:18:56.799
the language itself since uh terraform

00:18:56.799 --> 00:18:58.640
0.12

00:18:58.640 --> 00:19:01.760
you know before it became uh stable they

00:19:01.760 --> 00:19:05.360
added um list comprehensions they added

00:19:05.360 --> 00:19:08.559
dynamic values dynamic you know for each

00:19:08.559 --> 00:19:10.240
and there's a very clear reason why they

00:19:10.240 --> 00:19:13.840
did that because you can't manage AWS

00:19:13.840 --> 00:19:16.720
resources with pure static definitions

00:19:16.720 --> 00:19:18.480
you're always before that you have free

00:19:18.480 --> 00:19:20.080
processors people wrote template

00:19:20.080 --> 00:19:21.600
languages to generate terapform

00:19:21.600 --> 00:19:22.640
configuration

00:19:22.640 --> 00:19:24.960
>> yeah yeah I feel I feel this is a trend

00:19:24.960 --> 00:19:27.600
in infrastructures co in infrastructure

00:19:27.600 --> 00:19:29.919
game is like

00:19:29.919 --> 00:19:31.919
the days have gone where you can just

00:19:31.919 --> 00:19:34.080
declaratively put thing is in YAML,

00:19:34.080 --> 00:19:35.919
right? You you need

00:19:35.919 --> 00:19:37.679
>> you need a programming language and then

00:19:37.679 --> 00:19:39.360
>> you're going to keep adding layers and

00:19:39.360 --> 00:19:40.960
layers of abstraction to work around

00:19:40.960 --> 00:19:44.320
this this core missing feature that you

00:19:44.320 --> 00:19:45.840
are not working with a proper language

00:19:45.840 --> 00:19:47.679
programming language and then you start

00:19:47.679 --> 00:19:49.840
adding um config language.

00:19:49.840 --> 00:19:51.200
>> Yeah. So generators

00:19:51.200 --> 00:19:54.400
>> I guess in a in a very

00:19:54.400 --> 00:19:59.760
uh succinct way CDK gives you the binds

00:19:59.760 --> 00:20:01.679
to a proper programming language and

00:20:01.679 --> 00:20:03.600
that's that's really what what it does

00:20:03.600 --> 00:20:05.200
right [clears throat]

00:20:05.200 --> 00:20:07.280
>> and but still I mean and then and then

00:20:07.280 --> 00:20:08.720
it gives you the ability to do lazy

00:20:08.720 --> 00:20:11.679
evaluations so late binding um so that

00:20:11.679 --> 00:20:14.080
you can evaluate the full full program

00:20:14.080 --> 00:20:16.799
and the user can program uh imperatively

00:20:16.799 --> 00:20:19.440
build up the the configuration so he can

00:20:19.440 --> 00:20:21.280
take some object that somebody else

00:20:21.280 --> 00:20:24.720
wrote and then invoke some methods on it

00:20:24.720 --> 00:20:27.120
to mutate this, you know, the the the

00:20:27.120 --> 00:20:28.720
object to their liking.

00:20:28.720 --> 00:20:30.640
>> Like for example, in in CDK for

00:20:30.640 --> 00:20:33.600
Kubernetes, um when you create a

00:20:33.600 --> 00:20:35.760
deployment, it's going to define a pot

00:20:35.760 --> 00:20:38.480
template and then a replica uh count

00:20:38.480 --> 00:20:39.760
that how many times you want that

00:20:39.760 --> 00:20:42.080
template to be created um to create the

00:20:42.080 --> 00:20:44.799
pots, right? And and then you want maybe

00:20:44.799 --> 00:20:47.679
to set some type of anti-affffinity. So

00:20:47.679 --> 00:20:49.360
you can do all of that declaratively in

00:20:49.360 --> 00:20:51.280
in Kubernetes and it's not a simple

00:20:51.280 --> 00:20:53.600
configuration system because to define a

00:20:53.600 --> 00:20:56.320
pot template with anti- affinity rules

00:20:56.320 --> 00:20:58.960
um to be fully flexible and this is also

00:20:58.960 --> 00:21:00.799
why people like compose right compose is

00:21:00.799 --> 00:21:02.640
super simple but like Kubernetes has all

00:21:02.640 --> 00:21:05.280
the little dials and knobs.

00:21:05.280 --> 00:21:07.200
>> Sorry what's compose oh with a K. You

00:21:07.200 --> 00:21:07.440
mean

00:21:07.440 --> 00:21:09.840
>> docker compose um you know before that

00:21:09.840 --> 00:21:11.120
or ECS people like

00:21:11.120 --> 00:21:13.600
>> oh docker compose oh okay

00:21:13.600 --> 00:21:16.880
>> yeah I love docker compose because it

00:21:16.880 --> 00:21:18.240
gives you like this very simple thing

00:21:18.240 --> 00:21:20.080
but if you want to do something earlier

00:21:20.080 --> 00:21:22.159
you were complaining um yesterday you

00:21:22.159 --> 00:21:23.360
were complaining you were saying

00:21:23.360 --> 00:21:25.200
verscell is great but if you want to do

00:21:25.200 --> 00:21:28.720
like um custom type of database I can't

00:21:28.720 --> 00:21:30.400
do it you know I need the dials and

00:21:30.400 --> 00:21:32.159
knobs well that's where it breaks right

00:21:32.159 --> 00:21:34.559
these abstractions so the same way way

00:21:34.559 --> 00:21:36.000
with compose and and and that's why

00:21:36.000 --> 00:21:37.840
kubernetes as like everything under the

00:21:37.840 --> 00:21:39.919
sun, right? You can define exactly what

00:21:39.919 --> 00:21:41.679
resources on the node need to be

00:21:41.679 --> 00:21:43.600
>> for days and crossplane.

00:21:43.600 --> 00:21:46.000
>> Yes. And and and and so the actual

00:21:46.000 --> 00:21:47.760
configuration you have to write becomes

00:21:47.760 --> 00:21:49.440
super complicated. Kubernetes is the

00:21:49.440 --> 00:21:52.240
same thing. You end up with like

00:21:52.240 --> 00:21:55.919
>> what is the Yeah. So I got CDK is the

00:21:55.919 --> 00:21:59.840
programming language answer to maybe uh

00:21:59.840 --> 00:22:01.280
Terraform. But what is what is the

00:22:01.280 --> 00:22:04.320
programming language answer to to

00:22:04.320 --> 00:22:06.400
you know Kubernetes?

00:22:06.400 --> 00:22:09.600
So AWS built CDK for Kubernetes. There's

00:22:09.600 --> 00:22:12.320
one guy Ilia, he did a lot of like he's

00:22:12.320 --> 00:22:14.720
one of the main contributors.

00:22:14.720 --> 00:22:16.480
Yeah, I loved it. Like initially it was

00:22:16.480 --> 00:22:18.960
a bit frustrating because you

00:22:18.960 --> 00:22:20.480
>> Yeah, because one of the things you

00:22:20.480 --> 00:22:22.080
learn as a Kubernetes administrator and

00:22:22.080 --> 00:22:23.360
if you go for certificates, which I

00:22:23.360 --> 00:22:24.559
never do because I don't think they're

00:22:24.559 --> 00:22:26.080
worth it. Um,

00:22:26.080 --> 00:22:28.000
>> oh dear God, don't go there. That's a

00:22:28.000 --> 00:22:29.200
rabbit hole.

00:22:29.200 --> 00:22:29.840
>> Yeah. So

00:22:29.840 --> 00:22:33.520
>> is this another Ben Israel thing? Um,

00:22:33.520 --> 00:22:36.080
no, but it comes from within AWS, but it

00:22:36.080 --> 00:22:38.559
applies the same idea of of creating a

00:22:38.559 --> 00:22:41.440
tree of constructs and and and the same

00:22:41.440 --> 00:22:43.919
idea of building like the core

00:22:43.919 --> 00:22:46.720
Kubernetes API objects which are pod

00:22:46.720 --> 00:22:50.640
deployment, replica set, um, service and

00:22:50.640 --> 00:22:53.600
all of these, right? And now he's doing

00:22:53.600 --> 00:22:55.679
robotics.

00:22:55.679 --> 00:22:58.240
>> Anyway, so Ilia is one of the guys that

00:22:58.240 --> 00:23:00.240
like I see contribute and react and

00:23:00.240 --> 00:23:01.919
still maintain this project mostly. I'm

00:23:01.919 --> 00:23:03.520
sure there's other people working on it.

00:23:03.520 --> 00:23:05.679
But the greatest thing here is

00:23:05.679 --> 00:23:07.840
>> the moment you have built those core API

00:23:07.840 --> 00:23:10.880
objects, you can still write this, you

00:23:10.880 --> 00:23:12.640
know, create your Kubernetes

00:23:12.640 --> 00:23:15.600
configuration, but it's honestly worse

00:23:15.600 --> 00:23:17.600
worse than YAML because you have all

00:23:17.600 --> 00:23:19.360
these additional curly braces and very

00:23:19.360 --> 00:23:21.840
nested like complicated configuration.

00:23:21.840 --> 00:23:24.240
So pure L1 constructs, this pure

00:23:24.240 --> 00:23:27.679
language binding are not very useful.

00:23:27.679 --> 00:23:30.320
But what's immensely useful when you

00:23:30.320 --> 00:23:32.799
work with CDK for Kubernetes is that

00:23:32.799 --> 00:23:36.159
they built these higher level ideas of

00:23:36.159 --> 00:23:38.320
like we're going to grab this low-level

00:23:38.320 --> 00:23:40.480
API object that's called a deployment

00:23:40.480 --> 00:23:42.559
and we're going to add a scheduling

00:23:42.559 --> 00:23:45.120
namespace and we're going to add the

00:23:45.120 --> 00:23:48.480
idea of spreading pods on the scheduling

00:23:48.480 --> 00:23:50.799
namespace and suddenly you are defining

00:23:50.799 --> 00:23:53.440
like I want to spread this across nodes

00:23:53.440 --> 00:23:55.440
and there you basically you go like my

00:23:55.440 --> 00:23:58.559
deployment.spread spread dot uh sorry my

00:23:58.559 --> 00:24:00.240
deployment.sccheduling.spread

00:24:00.240 --> 00:24:03.440
spread as a method. Your intention is to

00:24:03.440 --> 00:24:05.440
spread these pots. That's your

00:24:05.440 --> 00:24:07.600
intention, right? And that gets

00:24:07.600 --> 00:24:10.720
translated into a declaration, an actual

00:24:10.720 --> 00:24:11.200
rule.

00:24:11.200 --> 00:24:13.279
>> Yeah. So,

00:24:13.279 --> 00:24:14.000
>> the affinity

00:24:14.000 --> 00:24:16.640
>> these convenient Yeah, that sounds like

00:24:16.640 --> 00:24:18.720
a good useful abstraction.

00:24:18.720 --> 00:24:19.279
>> Plus,

00:24:19.279 --> 00:24:21.600
>> so what what abstractions?

00:24:21.600 --> 00:24:24.320
>> Oh, plus, sorry. Yeah, plus is is the

00:24:24.320 --> 00:24:26.559
the the the real power because that's

00:24:26.559 --> 00:24:28.159
where they they create these high level

00:24:28.159 --> 00:24:31.120
like deployment and chron job and and

00:24:31.120 --> 00:24:33.279
then you and they make service and and

00:24:33.279 --> 00:24:35.520
then they have like reasonable defaults.

00:24:35.520 --> 00:24:38.480
So with very few lines of code it's kind

00:24:38.480 --> 00:24:41.360
of like Helm, right? But Helm is

00:24:41.360 --> 00:24:43.360
declarative like YAML config files with

00:24:43.360 --> 00:24:44.720
no schema. So you don't get

00:24:44.720 --> 00:24:46.640
IntelliSense. you don't know exactly

00:24:46.640 --> 00:24:48.240
like where do I need to put this

00:24:48.240 --> 00:24:49.919
configuration for it to end up where it

00:24:49.919 --> 00:24:52.400
needs to be because YAML helm doesn't

00:24:52.400 --> 00:24:54.480
have any schemas and even in later

00:24:54.480 --> 00:24:56.320
versions they try to add schemas but it

00:24:56.320 --> 00:24:56.799
doesn't really work.

00:24:56.799 --> 00:24:58.000
>> So have you have you used this

00:24:58.000 --> 00:25:00.480
production or you just checked it out?

00:25:00.480 --> 00:25:03.200
>> No I I I I

00:25:03.200 --> 00:25:04.960
was at an organization that had

00:25:04.960 --> 00:25:06.799
everything under the sun. They had helm

00:25:06.799 --> 00:25:08.480
they had JSONet they had customized they

00:25:08.480 --> 00:25:08.960
had

00:25:08.960 --> 00:25:09.760
>> Oh my god.

00:25:09.760 --> 00:25:10.559
>> Yeah. They had everything.

00:25:10.559 --> 00:25:11.919
>> And did you introduce something new

00:25:11.919 --> 00:25:14.320
while you were there? Of course, I I I

00:25:14.320 --> 00:25:15.840
built a new standard, but I [laughter]

00:25:15.840 --> 00:25:17.600
did more than that. I did not just add a

00:25:17.600 --> 00:25:19.360
new standard. I actually built a bunch

00:25:19.360 --> 00:25:22.320
of migration tools for everything else.

00:25:22.320 --> 00:25:24.640
So, I I had like a very clear path like

00:25:24.640 --> 00:25:26.320
if this is a service that you're working

00:25:26.320 --> 00:25:28.720
on and we we were adopting Argo CD and

00:25:28.720 --> 00:25:30.960
the only way to adopt Argo CD was to

00:25:30.960 --> 00:25:33.200
adopt CDK for Kubernetes. So, I made it

00:25:33.200 --> 00:25:35.039
so that you can't go and manage your

00:25:35.039 --> 00:25:37.600
service with Argo CD without

00:25:37.600 --> 00:25:38.880
>> I don't think we've ever really talked

00:25:38.880 --> 00:25:41.840
about GitOps. Are you a GitOps? I mean,

00:25:41.840 --> 00:25:44.080
do you have uh any opinions there

00:25:44.080 --> 00:25:47.600
quickly?

00:25:47.600 --> 00:25:49.679
>> Yes, I I

00:25:49.679 --> 00:25:52.320
>> maybe save that for another video.

00:25:52.320 --> 00:25:55.919
I [snorts] ran Argo CD since 2019

00:25:55.919 --> 00:26:00.159
and very quickly realized that a lot of

00:26:00.159 --> 00:26:03.279
people like to do magic on the server

00:26:03.279 --> 00:26:05.520
side and they like to minimize the

00:26:05.520 --> 00:26:08.400
configuration that goes in and then they

00:26:08.400 --> 00:26:10.240
like to Argo CD to like expand

00:26:10.240 --> 00:26:13.120
everything using Helm uh rendering like

00:26:13.120 --> 00:26:14.240
last minute.

00:26:14.240 --> 00:26:16.720
>> Oh no no no. You want Argo CD just to be

00:26:16.720 --> 00:26:18.480
a UI is is or

00:26:18.480 --> 00:26:21.120
>> Yeah. Yeah. Exactly. You want Argo CD to

00:26:21.120 --> 00:26:22.880
take whatever is in git and fire it

00:26:22.880 --> 00:26:24.400
straight at Kubernetes. Exactly. And

00:26:24.400 --> 00:26:26.480
then get back to that's that's one thing

00:26:26.480 --> 00:26:31.520
I I use Argo CD and ang

00:26:31.520 --> 00:26:34.080
>> crazy like why mix it up.

00:26:34.080 --> 00:26:35.840
>> Yeah. So some so they build all these

00:26:35.840 --> 00:26:38.159
amazing customized plugins and Helm

00:26:38.159 --> 00:26:40.720
plugins to run on the Argo City server

00:26:40.720 --> 00:26:42.720
and that's the first thing I throw out

00:26:42.720 --> 00:26:44.320
because you want

00:26:44.320 --> 00:26:46.799
>> you and I

00:26:46.799 --> 00:26:47.760
pattern

00:26:47.760 --> 00:26:48.480
>> sorry

00:26:48.480 --> 00:26:50.720
>> you and I are the are a little bit too

00:26:50.720 --> 00:26:52.240
similar

00:26:52.240 --> 00:26:54.320
>> but but you know why this is relevant

00:26:54.320 --> 00:26:56.080
because this is called the rendered

00:26:56.080 --> 00:26:59.279
manifest pattern and the co and the core

00:26:59.279 --> 00:27:00.960
creator of Kubernetes like one of the

00:27:00.960 --> 00:27:03.600
co-founders Brian Grant and one of the

00:27:03.600 --> 00:27:05.760
co-founder founders of of of the idea of

00:27:05.760 --> 00:27:08.880
githops uh for flux with weave and you

00:27:08.880 --> 00:27:12.080
know there's flux cd and there's argo cd

00:27:12.080 --> 00:27:14.080
>> yeah I don't yeah flux used to be a

00:27:14.080 --> 00:27:15.760
contender right

00:27:15.760 --> 00:27:17.840
>> I think ar flux is still a contender

00:27:17.840 --> 00:27:20.559
they broke it down into microser they

00:27:20.559 --> 00:27:22.720
make it it's way more performant but it

00:27:22.720 --> 00:27:24.640
doesn't have a fancy UI so everyone

00:27:24.640 --> 00:27:27.679
loves Argo CD but nobody like flux is

00:27:27.679 --> 00:27:29.760
still evolving but again like I haven't

00:27:29.760 --> 00:27:32.000
ran communities for 2 years but what I

00:27:32.000 --> 00:27:35.279
wanted to say is that the guys that are

00:27:35.279 --> 00:27:38.159
very, you know, smart people, [laughter]

00:27:38.159 --> 00:27:40.960
Brian Grant and um Richardson, uh from

00:27:40.960 --> 00:27:44.720
Weave, they created the logical

00:27:44.720 --> 00:27:47.279
extension of this rendered manifest

00:27:47.279 --> 00:27:49.279
pattern. So basically the idea of like

00:27:49.279 --> 00:27:52.000
you you make sure that everything gets

00:27:52.000 --> 00:27:54.480
rendered down into manifest into git. So

00:27:54.480 --> 00:27:57.840
Argo CD can purely track a raw manifest

00:27:57.840 --> 00:28:00.159
and just fire it off after Kubernetes

00:28:00.159 --> 00:28:01.919
and then you you are able to validate

00:28:01.919 --> 00:28:03.200
immediately what is the error message

00:28:03.200 --> 00:28:04.880
that that Kubernetes sends back because

00:28:04.880 --> 00:28:06.880
it just relates directly to whatever you

00:28:06.880 --> 00:28:08.640
have in git. So you can see very

00:28:08.640 --> 00:28:10.399
clearly. So they evolved that pattern

00:28:10.399 --> 00:28:12.720
and they call it config hub. So instead

00:28:12.720 --> 00:28:14.720
of just like having a very dumb git

00:28:14.720 --> 00:28:16.720
database, they built a specialized

00:28:16.720 --> 00:28:19.520
database for for for uh storing these

00:28:19.520 --> 00:28:22.000
configurations. And then the idea of

00:28:22.000 --> 00:28:24.799
like um making a change, you can go

00:28:24.799 --> 00:28:26.720
straight into config hub and make a a

00:28:26.720 --> 00:28:28.159
change where it needs to be. So you

00:28:28.159 --> 00:28:29.120
don't need to go through the git

00:28:29.120 --> 00:28:32.240
pipeline. Um and then you can also call

00:28:32.240 --> 00:28:33.520
functions if you need to make a change

00:28:33.520 --> 00:28:34.399
across

00:28:34.399 --> 00:28:35.840
>> I thought we thought I thought we

00:28:35.840 --> 00:28:37.919
established that changing things outside

00:28:37.919 --> 00:28:40.640
the the pipeline is a bad idea.

00:28:40.640 --> 00:28:43.840
So, so they turned it upside down and

00:28:43.840 --> 00:28:47.279
they they provided an a config hub that

00:28:47.279 --> 00:28:49.200
helps you make changes in a controlled

00:28:49.200 --> 00:28:51.520
way and in a repeatable way because it's

00:28:51.520 --> 00:28:53.279
kind of like functional programming. You

00:28:53.279 --> 00:28:55.520
can register endpoints on top of your

00:28:55.520 --> 00:28:57.760
config data and then you can apply

00:28:57.760 --> 00:28:59.919
functions. So, mutate your config data

00:28:59.919 --> 00:29:01.919
across your whole environment and then

00:29:01.919 --> 00:29:03.840
you can do it with an approval step uh

00:29:03.840 --> 00:29:05.919
workflow. So you you just select what

00:29:05.919 --> 00:29:07.440
you want to affect, you apply the

00:29:07.440 --> 00:29:09.200
function, you can see a preview, and

00:29:09.200 --> 00:29:10.799
then you can approve and then boom, it's

00:29:10.799 --> 00:29:14.240
GitOps. It gets ops in a in a in a like

00:29:14.240 --> 00:29:15.679
reasonable way.

00:29:15.679 --> 00:29:17.600
>> Have you used this product? Have you

00:29:17.600 --> 00:29:19.200
used this yourself?

00:29:19.200 --> 00:29:22.640
>> Uh no, but I um I understand the idea

00:29:22.640 --> 00:29:24.720
because a lot of what what he built

00:29:24.720 --> 00:29:26.399
originally with customize, you know, the

00:29:26.399 --> 00:29:28.640
idea of applying JSON patches, they kind

00:29:28.640 --> 00:29:31.200
of like extended it as those get JSON

00:29:31.200 --> 00:29:33.120
patches now run as part of like ant

00:29:33.120 --> 00:29:35.039
hooks. haven't used it. They just made

00:29:35.039 --> 00:29:35.919
it like

00:29:35.919 --> 00:29:37.600
>> Oh, yeah. We were talking about hooks

00:29:37.600 --> 00:29:39.919
yesterday. What was using hooks again?

00:29:39.919 --> 00:29:42.320
Oh my god.

00:29:42.320 --> 00:29:44.480
>> Oh, can do can do

00:29:44.480 --> 00:29:46.480
>> Yeah. Yeah. The hooks thing is

00:29:46.480 --> 00:29:48.480
>> in the CDK as well.

00:29:48.480 --> 00:29:50.080
>> This kind of a little bit different.

00:29:50.080 --> 00:29:51.440
Hooks.

00:29:51.440 --> 00:29:54.640
>> Yeah. But this one in my mind

00:29:54.640 --> 00:29:56.559
>> I don't know if config hub can can

00:29:56.559 --> 00:29:59.360
manage any other configuration except

00:29:59.360 --> 00:30:01.760
for Kubernetes. This this is like firmly

00:30:01.760 --> 00:30:03.520
settled in the idea of like a

00:30:03.520 --> 00:30:05.840
reconciliation loop and and having a

00:30:05.840 --> 00:30:08.159
control plane that runs that constantly

00:30:08.159 --> 00:30:10.000
runs these reconciliation loops and

00:30:10.000 --> 00:30:12.240
automatically adjust your like with

00:30:12.240 --> 00:30:14.720
eventual consistency adjust your your

00:30:14.720 --> 00:30:17.520
cloud towards it. Right?

00:30:17.520 --> 00:30:19.279
>> So which is one thing that Terraform

00:30:19.279 --> 00:30:21.360
does not have right terraform you run an

00:30:21.360 --> 00:30:23.120
apply and it doesn't touch it until the

00:30:23.120 --> 00:30:24.559
next time you run an apply where

00:30:24.559 --> 00:30:27.039
Kubernetes is constantly re-evaluating

00:30:27.039 --> 00:30:28.640
your infrastructure and making sure that

00:30:28.640 --> 00:30:33.360
it is aligned. I the the one thing

00:30:33.360 --> 00:30:35.331
uh

00:30:35.331 --> 00:30:35.919
[snorts]

00:30:35.919 --> 00:30:38.480
was so like let me start with the

00:30:38.480 --> 00:30:42.159
problem at what we're using terraform

00:30:42.159 --> 00:30:44.960
uh actually this is a problem with CDK

00:30:44.960 --> 00:30:46.960
too the whole CDK deploy thing is a bit

00:30:46.960 --> 00:30:48.480
slow but okay never mind that

00:30:48.480 --> 00:30:49.600
>> that's cloudformation issues

00:30:49.600 --> 00:30:51.039
>> that's that's infrastructures yeah

00:30:51.039 --> 00:30:54.799
that's that's cloudformation issues but

00:30:54.799 --> 00:30:57.039
um stop me if I talked about this before

00:30:57.039 --> 00:30:59.360
but one one issue that we have right now

00:30:59.360 --> 00:31:02.240
is that we're using uh database we're

00:31:02.240 --> 00:31:05.120
using Terraform to to manage Snowflake

00:31:05.120 --> 00:31:06.799
and we don't want to we don't want to

00:31:06.799 --> 00:31:08.480
delete the resources because that could

00:31:08.480 --> 00:31:10.159
lead to data loss and all

00:31:10.159 --> 00:31:12.640
>> stuff and we don't want to recreate

00:31:12.640 --> 00:31:15.440
resources. So, so I have I have like

00:31:15.440 --> 00:31:16.159
some crappy

00:31:16.159 --> 00:31:18.240
>> worried about constantly re like

00:31:18.240 --> 00:31:20.000
>> Yeah, I have some crappy what do you

00:31:20.000 --> 00:31:23.039
call it? You know, uh GitHub workflow

00:31:23.039 --> 00:31:25.120
where I basically inspect the plan to

00:31:25.120 --> 00:31:28.559
make sure to make sure it's not deleting

00:31:28.559 --> 00:31:30.480
anything. But I thought to myself, come

00:31:30.480 --> 00:31:31.600
on, there's got to be a better way

00:31:31.600 --> 00:31:34.000
because because right now we have a we

00:31:34.000 --> 00:31:35.840
have a separate plan and an apply stage.

00:31:35.840 --> 00:31:38.320
Why? Because we want people to do a plan

00:31:38.320 --> 00:31:40.480
before they know what they're doing

00:31:40.480 --> 00:31:42.480
before they delete things.

00:31:42.480 --> 00:31:44.480
Unfortunately, no one really reads the

00:31:44.480 --> 00:31:47.440
plan in all honesty. So, there's that

00:31:47.440 --> 00:31:50.240
problem. So, so hence I have some crappy

00:31:50.240 --> 00:31:53.679
code to check for for some a deletion or

00:31:53.679 --> 00:31:56.399
a a recreate. And I just think to

00:31:56.399 --> 00:31:58.880
myself, is this the way people do it? Is

00:31:58.880 --> 00:32:01.039
there a better way?

00:32:01.039 --> 00:32:05.200
I mean, that that sort of life cycle

00:32:05.200 --> 00:32:08.799
type thing kind of sucks.

00:32:08.799 --> 00:32:09.760
That's my current.

00:32:09.760 --> 00:32:11.039
>> Yeah. And that's also why a lot of

00:32:11.039 --> 00:32:13.840
people when we talk about crossplane

00:32:13.840 --> 00:32:17.200
there people very um

00:32:17.200 --> 00:32:19.120
pessimistic around it because they put

00:32:19.120 --> 00:32:22.240
so much um official or orchestration

00:32:22.240 --> 00:32:25.519
around this you know plan and apply.

00:32:25.519 --> 00:32:29.519
they have a a big like ceremony around

00:32:29.519 --> 00:32:31.760
the process and so something going

00:32:31.760 --> 00:32:33.039
behind the scene and constantly

00:32:33.039 --> 00:32:35.760
reconciling kind of feels wrong to them,

00:32:35.760 --> 00:32:37.840
right? Uh and I think it really depends

00:32:37.840 --> 00:32:40.000
on the maturity. If you're Google and

00:32:40.000 --> 00:32:41.840
you're deploying a thousand times a day,

00:32:41.840 --> 00:32:43.600
your services are reconciling and this

00:32:43.600 --> 00:32:44.960
is how you build your architecture. I

00:32:44.960 --> 00:32:47.120
guess if you I guess the there's an

00:32:47.120 --> 00:32:50.080
there's an adage with when it comes to I

00:32:50.080 --> 00:32:51.600
mean this is probably one of the first

00:32:51.600 --> 00:32:52.880
things I learned when I got into

00:32:52.880 --> 00:32:56.000
infrastructure is like don't manage your

00:32:56.000 --> 00:32:59.760
database in infrastructure is code

00:32:59.760 --> 00:33:01.519
you know because because then you won't

00:33:01.519 --> 00:33:03.120
have these problems like separate the

00:33:03.120 --> 00:33:05.039
data

00:33:05.039 --> 00:33:07.919
>> so that was definitely s uh like true

00:33:07.919 --> 00:33:11.039
for the longest time because stateful

00:33:11.039 --> 00:33:12.240
kubernetes cluster

00:33:12.240 --> 00:33:13.760
>> like

00:33:13.760 --> 00:33:15.919
maintaining database in and I think

00:33:15.919 --> 00:33:18.320
there was a Kubernetes uh controller or

00:33:18.320 --> 00:33:21.200
something where you could spin up a a

00:33:21.200 --> 00:33:23.840
database and everyone said no this is a

00:33:23.840 --> 00:33:24.960
terrible idea

00:33:24.960 --> 00:33:28.080
>> and I and quickly caught on to why

00:33:28.080 --> 00:33:31.519
>> if I talk about 2016 then stateful sets

00:33:31.519 --> 00:33:34.080
are like just introduced.

00:33:34.080 --> 00:33:35.039
>> Yeah.

00:33:35.039 --> 00:33:38.320
And and so at the time the problem with

00:33:38.320 --> 00:33:40.399
Helm is that everyone can just pull a

00:33:40.399 --> 00:33:42.399
chart and go like, "Oh, uh, Helm

00:33:42.399 --> 00:33:44.480
installed MySQL. There I go. I have

00:33:44.480 --> 00:33:47.200
MySQL now." Yes. But you know,

00:33:47.200 --> 00:33:49.039
>> set up a huge cluster.

00:33:49.039 --> 00:33:51.200
>> Yeah. What what where where is the data

00:33:51.200 --> 00:33:53.279
stores? Oh, so it's provisioning an EBS

00:33:53.279 --> 00:33:55.120
volume. How how is the ownership of that

00:33:55.120 --> 00:33:57.200
EBS volume tracked? Like what if you do

00:33:57.200 --> 00:33:59.279
an upgrade? How do you manage? And then

00:33:59.279 --> 00:34:01.600
people they built this is like you know

00:34:01.600 --> 00:34:05.279
pets versus cattle where you're building

00:34:05.279 --> 00:34:07.760
yes you're creating a a cattle of nodes

00:34:07.760 --> 00:34:09.359
but you're building pat kubernetes

00:34:09.359 --> 00:34:12.320
clusters. So so what is the the point of

00:34:12.320 --> 00:34:14.159
pat kubernetes clusters then you need to

00:34:14.159 --> 00:34:16.399
start bu using arcane or whatever it's

00:34:16.399 --> 00:34:18.560
called to to create backups of your

00:34:18.560 --> 00:34:20.639
clusters and your control plane. I never

00:34:20.639 --> 00:34:23.040
like that idea. I always made my cluster

00:34:23.040 --> 00:34:24.879
completely stateless so that I can

00:34:24.879 --> 00:34:25.679
rebuild it

00:34:25.679 --> 00:34:27.760
>> a thermal I don't know.

00:34:27.760 --> 00:34:30.399
>> Yeah. So all of all of the state lives

00:34:30.399 --> 00:34:32.000
outside right that's how you want to

00:34:32.000 --> 00:34:34.240
build your microservices if you can

00:34:34.240 --> 00:34:36.879
depending on you know what is the SLAs

00:34:36.879 --> 00:34:39.040
and and what is your your architecture

00:34:39.040 --> 00:34:41.520
that you have to support um but if you

00:34:41.520 --> 00:34:43.040
can and you can perfectly scale

00:34:43.040 --> 00:34:44.480
horizontally and you keep all of your

00:34:44.480 --> 00:34:46.560
data on a different tier outside of your

00:34:46.560 --> 00:34:48.639
cluster then that makes life so much

00:34:48.639 --> 00:34:50.399
easier because you can just blow away a

00:34:50.399 --> 00:34:51.760
cluster and rebuild it. Yeah.

00:34:51.760 --> 00:34:53.280
>> You can just put them side by side and

00:34:53.280 --> 00:34:55.520
they can share the state outside of the

00:34:55.520 --> 00:34:58.400
cluster. Um and then once you start

00:34:58.400 --> 00:35:00.400
building stateful clusters, your SLOs's

00:35:00.400 --> 00:35:01.839
are completely different. Your your

00:35:01.839 --> 00:35:03.359
operations around those clusters are

00:35:03.359 --> 00:35:04.160
completely different.

00:35:04.160 --> 00:35:06.400
>> Yeah. But but don't you think that like

00:35:06.400 --> 00:35:09.520
like just going going back to CDK like I

00:35:09.520 --> 00:35:11.359
mean a lot of tooling does bring state

00:35:11.359 --> 00:35:15.760
into it, doesn't it? A little bit.

00:35:15.760 --> 00:35:18.800
Sorry about CDK and and like uh sorry to

00:35:18.800 --> 00:35:22.480
I'm just trying to bring it back to

00:35:22.480 --> 00:35:26.160
to CDK like like like doesn't CDK I

00:35:26.160 --> 00:35:27.520
think we talked about it yesterday but

00:35:27.520 --> 00:35:29.359
like doesn't CDK have like a strong

00:35:29.359 --> 00:35:31.599
concept of context or something like

00:35:31.599 --> 00:35:34.400
that and that in itself is a state isn't

00:35:34.400 --> 00:35:36.640
it I mean

00:35:36.640 --> 00:35:38.720
so on one side in these traditional

00:35:38.720 --> 00:35:40.400
infrastructure as code frameworks you

00:35:40.400 --> 00:35:42.480
have the concept of a state like cloud

00:35:42.480 --> 00:35:44.320
form keeps track of the resources it

00:35:44.320 --> 00:35:46.400
created And Terraform has a state file

00:35:46.400 --> 00:35:48.000
that keeps track of the resources it

00:35:48.000 --> 00:35:50.560
created. So that it knows, you know, it

00:35:50.560 --> 00:35:53.200
ties back those logical ids in the state

00:35:53.200 --> 00:35:55.040
file to the actual physical ideas. And

00:35:55.040 --> 00:35:56.560
if you remove a logic ID in your

00:35:56.560 --> 00:35:58.000
configuration, it will make sure that

00:35:58.000 --> 00:35:59.920
that resource is deleted. And if you

00:35:59.920 --> 00:36:01.599
modify the configuration,

00:36:01.599 --> 00:36:02.160
>> yeah,

00:36:02.160 --> 00:36:03.440
>> it will make sure that the actual

00:36:03.440 --> 00:36:05.920
physical ID uh resource is updated.

00:36:05.920 --> 00:36:06.800
Right. So

00:36:06.800 --> 00:36:09.200
>> it uses a state file.

00:36:09.200 --> 00:36:12.240
>> Yeah. So basically I'm just

00:36:12.240 --> 00:36:15.280
uh wiring these in my brain. I mean I'm

00:36:15.280 --> 00:36:18.160
crosswiring these in my brain. Like if

00:36:18.160 --> 00:36:19.839
we have infrastructure and we want to

00:36:19.839 --> 00:36:23.200
have a goal of keeping separate state

00:36:23.200 --> 00:36:26.160
I guess maybe it should be scoped to

00:36:26.160 --> 00:36:28.560
application state or something but but

00:36:28.560 --> 00:36:33.359
it's it's um it's not I mean if you're

00:36:33.359 --> 00:36:37.119
religious about separate state it's not

00:36:37.119 --> 00:36:40.400
that clear to me separate cleanly

00:36:40.400 --> 00:36:41.839
>> you wouldn't run a terraform controller

00:36:41.839 --> 00:36:43.359
in your kubernetes because that means

00:36:43.359 --> 00:36:45.520
you're adding state to it or the

00:36:45.520 --> 00:36:47.280
terraform controller must have access to

00:36:47.280 --> 00:36:49.440
an external state bucket uh within the

00:36:49.440 --> 00:36:51.119
>> Yeah, it's got to it's got to be it's

00:36:51.119 --> 00:36:52.880
got to be a very clear division, right?

00:36:52.880 --> 00:36:54.079
>> Yeah. So, that's a problem with

00:36:54.079 --> 00:36:55.760
crossplane, right? Because where does

00:36:55.760 --> 00:36:58.400
crossplane store that state tracking? It

00:36:58.400 --> 00:37:00.320
stores it inside the Kubernetes cluster

00:37:00.320 --> 00:37:01.440
control plane.

00:37:01.440 --> 00:37:03.040
>> So, now you've created a stateful

00:37:03.040 --> 00:37:04.640
control like control plane. You've

00:37:04.640 --> 00:37:06.560
created a stateful cluster.

00:37:06.560 --> 00:37:09.200
>> So, so that's where where like you know

00:37:09.200 --> 00:37:11.040
you're using crossplane to bootstrap

00:37:11.040 --> 00:37:13.440
Kubernetes and that becomes a stateful

00:37:13.440 --> 00:37:15.599
cluster. So you need like one Uber

00:37:15.599 --> 00:37:17.119
cluster that controls all the other

00:37:17.119 --> 00:37:19.119
clusters and that becomes your stateful

00:37:19.119 --> 00:37:20.880
cluster that you need to do very careful

00:37:20.880 --> 00:37:23.280
upgrades around operations are are

00:37:23.280 --> 00:37:24.560
different. And of course it makes sense

00:37:24.560 --> 00:37:26.400
for a company like Upbound which

00:37:26.400 --> 00:37:29.760
sponsors crossplane to say hey you know

00:37:29.760 --> 00:37:32.400
we are your your Uber cluster we manage

00:37:32.400 --> 00:37:34.240
that for you. We we provide you a

00:37:34.240 --> 00:37:36.480
stateful cluster. We guarantee that your

00:37:36.480 --> 00:37:38.640
your control plane is backed up and can

00:37:38.640 --> 00:37:40.800
be res restored and we're we're going to

00:37:40.800 --> 00:37:42.720
take care of that. And that's the you

00:37:42.720 --> 00:37:44.720
know the the managed service offering

00:37:44.720 --> 00:37:46.880
that they provide. Um and that's why

00:37:46.880 --> 00:37:48.400
they they they create something like

00:37:48.400 --> 00:37:51.920
crossplane right. Um and I think Google

00:37:51.920 --> 00:37:54.560
cloud went the same way. They have like

00:37:54.560 --> 00:37:57.200
service connect or config connect. They

00:37:57.200 --> 00:37:59.119
have a service in GCP that's very

00:37:59.119 --> 00:38:01.920
strongly based on of off crossplane that

00:38:01.920 --> 00:38:05.920
basically you you you you define and and

00:38:05.920 --> 00:38:07.359
to be honest Kubernetes is already

00:38:07.359 --> 00:38:09.200
taking care of a lot of your a your

00:38:09.200 --> 00:38:11.040
cloud resources right because when you

00:38:11.040 --> 00:38:12.640
say I have a service and I need to make

00:38:12.640 --> 00:38:15.119
make it externally exposed it goes and

00:38:15.119 --> 00:38:17.200
creates a load balancer right so you

00:38:17.200 --> 00:38:18.960
already have a cloud controller inside

00:38:18.960 --> 00:38:22.400
Kubernetes creating um AWS resources you

00:38:22.400 --> 00:38:24.320
have a controller that creates nodes to

00:38:24.320 --> 00:38:26.480
add capacity to the cluster you have a

00:38:26.480 --> 00:38:30.240
controller that that um creates um

00:38:30.240 --> 00:38:32.320
routing rules if you are depending on

00:38:32.320 --> 00:38:34.960
what type of uh networking that you set

00:38:34.960 --> 00:38:37.359
up so that your your uh routing tables

00:38:37.359 --> 00:38:38.880
can route the traffic between your pots

00:38:38.880 --> 00:38:41.520
across the nodes. So, Kubernetes control

00:38:41.520 --> 00:38:44.160
plane already modifies your cloud and

00:38:44.160 --> 00:38:46.079
creates resources in the cloud. So, it

00:38:46.079 --> 00:38:47.920
makes sense to extend that and also

00:38:47.920 --> 00:38:50.560
create databases and buckets and

00:38:50.560 --> 00:38:52.079
>> Yeah. Yeah. This is this is where things

00:38:52.079 --> 00:38:54.240
get look crazy to me.

00:38:54.240 --> 00:38:58.400
>> Yeah. I mean I I [sighs] see the point.

00:38:58.400 --> 00:39:00.320
I I think if you're going all in and

00:39:00.320 --> 00:39:02.320
you're a big Kubernetes shop, it makes

00:39:02.320 --> 00:39:04.240
sense. The only biggest issue I have

00:39:04.240 --> 00:39:06.320
with Kubernetes is that you have these

00:39:06.320 --> 00:39:08.400
declarative YAML that becomes super hard

00:39:08.400 --> 00:39:10.640
to to manage and then solutions like

00:39:10.640 --> 00:39:12.720
config hub make sense because now you

00:39:12.720 --> 00:39:14.880
can define your load balancers, your

00:39:14.880 --> 00:39:17.200
buckets, your databases, everything in

00:39:17.200 --> 00:39:19.359
config hub and let the reconciliation

00:39:19.359 --> 00:39:23.680
loop constantly. tell okay maybe let's

00:39:23.680 --> 00:39:26.000
turn the conversation back to AI like if

00:39:26.000 --> 00:39:29.520
you were to if you were if you were to

00:39:29.520 --> 00:39:31.920
like start on a green field project and

00:39:31.920 --> 00:39:37.359
use Claude to to set up um

00:39:37.359 --> 00:39:40.240
I don't know we kind of do need to scope

00:39:40.240 --> 00:39:42.560
this to some sort of example let's say

00:39:42.560 --> 00:39:47.200
that we need to run um I don't know

00:39:47.200 --> 00:39:48.800
WordPress

00:39:48.800 --> 00:39:51.760
at scale you know WordPress.com

00:39:51.760 --> 00:39:56.017
Uh, so PHP, MySQL, blah blah blah.

00:39:56.017 --> 00:39:58.800
[snorts] the

00:39:58.800 --> 00:40:00.000
>> be careful. Would you do would you do

00:40:00.000 --> 00:40:01.440
that in Kub would you do that in

00:40:01.440 --> 00:40:05.280
Kubernetes and and just let Claude

00:40:05.280 --> 00:40:07.920
spin up some

00:40:07.920 --> 00:40:12.240
uh I don't know CDK uh what did we call

00:40:12.240 --> 00:40:14.960
it CDK Kubernetes like what what would

00:40:14.960 --> 00:40:17.280
give the best

00:40:17.280 --> 00:40:19.520
iteration you know what would give the

00:40:19.520 --> 00:40:22.960
best AI friendliness slash

00:40:22.960 --> 00:40:26.320
iteration loop

00:40:26.320 --> 00:40:29.680
is what I'm thinking

00:40:29.680 --> 00:40:33.839
Oh. Um, so this are you thinking about

00:40:33.839 --> 00:40:37.040
what type of system would be able to

00:40:37.040 --> 00:40:39.920
leverage AI in the me like the best way?

00:40:39.920 --> 00:40:42.240
Yeah. Would be intuitive to the AI,

00:40:42.240 --> 00:40:42.640
right?

00:40:42.640 --> 00:40:46.800
>> Exactly. So, so the so that kind of

00:40:46.800 --> 00:40:50.560
assumes some the AI is sort of maybe

00:40:50.560 --> 00:40:53.440
kind of familiar to the workflow. I

00:40:53.440 --> 00:40:54.800
mean, you don't want to spend too much

00:40:54.800 --> 00:40:56.480
time teaching it something new, I

00:40:56.480 --> 00:40:59.440
suppose, is what I'm trying to lose.

00:40:59.440 --> 00:41:00.880
>> So, that's where everyone jumped on

00:41:00.880 --> 00:41:03.440
creating MCP servers or or finding ways

00:41:03.440 --> 00:41:06.960
to to provide the LLM, the generic LLM

00:41:06.960 --> 00:41:09.280
that has been trained of lots of data to

00:41:09.280 --> 00:41:12.880
basically give it the right context for

00:41:12.880 --> 00:41:15.040
the work that it needs to do. So, if

00:41:15.040 --> 00:41:17.280
you're take a generic

00:41:17.280 --> 00:41:19.920
>> MCP, MCP is more for doing tool calls

00:41:19.920 --> 00:41:22.160
than giving context.

00:41:22.160 --> 00:41:24.720
Some people seem to mix that up a bit.

00:41:24.720 --> 00:41:27.839
>> I think it's No, it's the difference is

00:41:27.839 --> 00:41:30.079
tool calls allow you to pull in context

00:41:30.079 --> 00:41:33.359
on demand. The LLM sees a tool that says

00:41:33.359 --> 00:41:35.839
you can call me to get information about

00:41:35.839 --> 00:41:38.560
the weather in in London. Um, you can

00:41:38.560 --> 00:41:40.000
call me.

00:41:40.000 --> 00:41:41.760
>> So, it's tool calls

00:41:41.760 --> 00:41:44.000
>> give the LLMs the arms and legs to reach

00:41:44.000 --> 00:41:46.240
out into the world to find information

00:41:46.240 --> 00:41:47.760
that it doesn't have.

00:41:47.760 --> 00:41:50.000
>> So, it can do it on its own. If you if

00:41:50.000 --> 00:41:52.079
you don't use tool calls, you as an

00:41:52.079 --> 00:41:53.599
operator of the LLM have to kind of

00:41:53.599 --> 00:41:55.440
figure out everything that that LLM

00:41:55.440 --> 00:41:57.359
might need to solve the problem that

00:41:57.359 --> 00:41:59.520
you're trying to do, right?

00:41:59.520 --> 00:42:01.680
>> On the subject of tools, you know,

00:42:01.680 --> 00:42:04.720
Kubernetes tools, cubectl is pretty

00:42:04.720 --> 00:42:07.680
pretty awesome, isn't it?

00:42:07.680 --> 00:42:11.440
>> Um, so that's where things have evolved,

00:42:11.440 --> 00:42:12.960
right? If you if you use Claude Code

00:42:12.960 --> 00:42:14.319
skills and you give it a high level

00:42:14.319 --> 00:42:16.160
overview what cubectl can be used for

00:42:16.160 --> 00:42:17.760
and then it goes and finds out more

00:42:17.760 --> 00:42:19.920
information about like the user has a

00:42:19.920 --> 00:42:22.880
problem uh with autoscaling and I need

00:42:22.880 --> 00:42:24.880
to figure out if there's enough capacity

00:42:24.880 --> 00:42:27.920
in the cluster and then it goes off and

00:42:27.920 --> 00:42:30.720
uh finds the cubectl commands that you

00:42:30.720 --> 00:42:33.280
know tells it how much like the top like

00:42:33.280 --> 00:42:35.440
node stop for example to see how much

00:42:35.440 --> 00:42:37.359
CPU is being used across the cluster.

00:42:37.359 --> 00:42:39.839
So, so skills are this like gradual

00:42:39.839 --> 00:42:43.440
discovery of information without

00:42:43.440 --> 00:42:45.119
overloading the context with every

00:42:45.119 --> 00:42:46.880
possible

00:42:46.880 --> 00:42:49.040
uh tool that the QTL exposes, right?

00:42:49.040 --> 00:42:51.520
because ultimately cubectl can be used

00:42:51.520 --> 00:42:53.920
in such a way that you can overload um

00:42:53.920 --> 00:42:56.960
with like hundreds of tools but you you

00:42:56.960 --> 00:42:58.800
need to slice it and dice it down into

00:42:58.800 --> 00:43:00.800
like you know if you're working on this

00:43:00.800 --> 00:43:02.800
particular problem then you might want

00:43:02.800 --> 00:43:05.200
to look at this set of tools uh and if

00:43:05.200 --> 00:43:06.800
you want to work on that type of problem

00:43:06.800 --> 00:43:08.560
you want to look at this set of tools so

00:43:08.560 --> 00:43:10.720
then cloud knows like hey I'm looking at

00:43:10.720 --> 00:43:12.319
this type of problem oh can can we go

00:43:12.319 --> 00:43:13.520
look at those set of tools and then

00:43:13.520 --> 00:43:15.200
loads them in and figures out that it

00:43:15.200 --> 00:43:16.319
needs to like

00:43:16.319 --> 00:43:19.040
>> that's what what what the skills changed

00:43:19.040 --> 00:43:19.839
compared to tools.

00:43:19.839 --> 00:43:22.480
>> Yeah. Yeah. But like yeah, sorry.

00:43:22.480 --> 00:43:25.440
>> But which which infrastructures code

00:43:25.440 --> 00:43:28.640
technology has the best tooling in that

00:43:28.640 --> 00:43:30.160
regard?

00:43:30.160 --> 00:43:34.640
Kubernetes does come into my mind

00:43:34.640 --> 00:43:40.319
or do you think CDK is uh I mean are you

00:43:40.319 --> 00:43:42.560
managing infrastructure with AI and CDK

00:43:42.560 --> 00:43:43.760
is my next question.

00:43:43.760 --> 00:43:45.040
>> Actually funny I can give you an

00:43:45.040 --> 00:43:48.880
example. Um because when I built Terra

00:43:48.880 --> 00:43:51.760
constructs I copied the AWS CDK

00:43:51.760 --> 00:43:55.599
interfaces. So my company they adopted

00:43:55.599 --> 00:43:59.119
GitHub copilot into PR review process

00:43:59.119 --> 00:44:02.160
and my colleague created a pull request

00:44:02.160 --> 00:44:05.119
with Terra constructs that basically

00:44:05.119 --> 00:44:06.560
creates a load balancer sets up

00:44:06.560 --> 00:44:08.800
listeners and things like that but the

00:44:08.800 --> 00:44:11.359
code is TypeScript and it looks like AWS

00:44:11.359 --> 00:44:14.800
CDK. So copilot started to to comment on

00:44:14.800 --> 00:44:16.960
it and say like hey um your load

00:44:16.960 --> 00:44:19.119
balancer listener here uh is not using

00:44:19.119 --> 00:44:23.359
TLS or whatever. So even though um you

00:44:23.359 --> 00:44:24.720
know it hasn't been trained on terra

00:44:24.720 --> 00:44:26.319
constructs and

00:44:26.319 --> 00:44:29.040
>> and it had no it had no like uh what do

00:44:29.040 --> 00:44:31.440
you call this type hinting or

00:44:31.440 --> 00:44:34.079
>> no nothing I I I think you know big part

00:44:34.079 --> 00:44:35.839
of the corpus I don't think we can

00:44:35.839 --> 00:44:38.720
imagine how much of of of you know these

00:44:38.720 --> 00:44:40.880
weights actually encapsulate it's like

00:44:40.880 --> 00:44:43.040
billions of of internet data you can ask

00:44:43.040 --> 00:44:46.480
it something silly like um you ask about

00:44:46.480 --> 00:44:50.400
cats in in in in uh in Dermund Belgium

00:44:50.400 --> 00:44:52.079
and they will tell you about a tradition

00:44:52.079 --> 00:44:54.319
back in the Middle Ages where they throw

00:44:54.319 --> 00:44:56.720
cats off the walls and it's like who

00:44:56.720 --> 00:44:58.800
would know that, right? And and it's not

00:44:58.800 --> 00:45:00.319
made up like it's true.

00:45:00.319 --> 00:45:02.960
>> Why did they throw cats onto walls?

00:45:02.960 --> 00:45:05.599
>> After the winter um they they they kept

00:45:05.599 --> 00:45:08.160
cats to kill to prevent the mice to eat

00:45:08.160 --> 00:45:10.800
the grains or something or to bite the

00:45:10.800 --> 00:45:12.720
rats or the mice were were destroying

00:45:12.720 --> 00:45:15.119
the all of the storage like the linen

00:45:15.119 --> 00:45:17.119
and so on. So, so they have cats to

00:45:17.119 --> 00:45:18.880
hunt, but then when the summer comes

00:45:18.880 --> 00:45:20.640
around, they have too many cats, so they

00:45:20.640 --> 00:45:22.560
threw them off the off the off the

00:45:22.560 --> 00:45:25.839
towers. Uh, tradition, Belgian

00:45:25.839 --> 00:45:27.839
tradition.

00:45:27.839 --> 00:45:29.839
>> So dark. [laughter]

00:45:29.839 --> 00:45:30.880
>> So, this is one thing,

00:45:30.880 --> 00:45:32.560
>> but with Belgian, it's always like some

00:45:32.560 --> 00:45:34.000
dark stories like

00:45:34.000 --> 00:45:35.839
>> Yeah. So, if it knows this horrible

00:45:35.839 --> 00:45:37.920
detail that we Belgians have been trying

00:45:37.920 --> 00:45:39.920
to hide, how of course it's going to

00:45:39.920 --> 00:45:42.516
know how to write AWS CDK, you know.

00:45:42.516 --> 00:45:44.160
[laughter]

00:45:44.160 --> 00:45:46.480
>> Interesting. So, so you're basically

00:45:46.480 --> 00:45:48.560
saying that it doesn't matter what you

00:45:48.560 --> 00:45:50.880
use, AI is going to be flexible enough

00:45:50.880 --> 00:45:52.720
to get you there.

00:45:52.720 --> 00:45:55.839
>> And what I'm saying is for me and the

00:45:55.839 --> 00:45:57.359
reason why I spend all this time on what

00:45:57.359 --> 00:46:00.880
I'm doing for me AI is is pure

00:46:00.880 --> 00:46:02.880
intuition, right? All of this

00:46:02.880 --> 00:46:05.440
hallucination which we sometimes we

00:46:05.440 --> 00:46:07.760
don't like, but sometimes it is pure

00:46:07.760 --> 00:46:09.200
like out of the box thinking and we

00:46:09.200 --> 00:46:11.920
embrace it. All of this hallucination is

00:46:11.920 --> 00:46:14.880
intuition. it's built into the model to

00:46:14.880 --> 00:46:17.119
like feel like that's the way I need to

00:46:17.119 --> 00:46:19.760
go. So whatever you know framework you

00:46:19.760 --> 00:46:21.760
work with should be an intuitive

00:46:21.760 --> 00:46:25.440
framework. So I feel AWS CDK is

00:46:25.440 --> 00:46:27.760
beautiful because it's all about

00:46:27.760 --> 00:46:30.000
intentoriented methods. It's not like

00:46:30.000 --> 00:46:31.920
this massive declarative get every

00:46:31.920 --> 00:46:33.680
single attribute correct or it's not

00:46:33.680 --> 00:46:36.079
going to work. It's intuitive. It's like

00:46:36.079 --> 00:46:39.440
I want to deploy I want to deploy my

00:46:39.440 --> 00:46:41.119
service. I want to spread it one per

00:46:41.119 --> 00:46:43.599
node. Um and and I want the spot

00:46:43.599 --> 00:46:46.000
disruption budget. That's a good

00:46:46.000 --> 00:46:47.280
intuition.

00:46:47.280 --> 00:46:49.520
>> Yeah. So that's where I feel like it's

00:46:49.520 --> 00:46:51.359
been trained heavily on Typescript and

00:46:51.359 --> 00:46:53.359
JavaScript because that's like still in

00:46:53.359 --> 00:46:55.359
the top one languages of of Stack

00:46:55.359 --> 00:46:57.760
Overflow every year. So it has a massive

00:46:57.760 --> 00:46:59.520
amount of JavaScript samples and

00:46:59.520 --> 00:47:01.760
TypeScript samples. It has I don't know

00:47:01.760 --> 00:47:04.400
probably more JavaScript and it has the

00:47:04.400 --> 00:47:06.560
ideas and hallucinate and hallucinates

00:47:06.560 --> 00:47:09.520
constantly. It's actually not Lams is

00:47:09.520 --> 00:47:11.119
all hallucination like every single

00:47:11.119 --> 00:47:12.960
token it outputs is just hallucination

00:47:12.960 --> 00:47:16.640
and int intuition right so the fact that

00:47:16.640 --> 00:47:19.359
it's correct these hallucinations are is

00:47:19.359 --> 00:47:22.720
is mindboggling right uh but the fact

00:47:22.720 --> 00:47:25.359
that it can generate AWS CDK correctly

00:47:25.359 --> 00:47:29.440
and in Typescript to me is proof that I

00:47:29.440 --> 00:47:32.319
would rather um focus on a highle

00:47:32.319 --> 00:47:33.839
language like that

00:47:33.839 --> 00:47:35.680
>> yeah but don't you think it's strange

00:47:35.680 --> 00:47:38.240
don't don't I mean surely

00:47:38.240 --> 00:47:39.920
going back to what I was asking earlier

00:47:39.920 --> 00:47:42.000
like so you don't give a type hinting

00:47:42.000 --> 00:47:46.319
like surely if you if you if you let uh

00:47:46.319 --> 00:47:49.680
Claude I mean VS code must somehow do

00:47:49.680 --> 00:47:51.920
this but like if you open up a project

00:47:51.920 --> 00:47:55.839
with with uh with with type checking

00:47:55.839 --> 00:47:57.520
then

00:47:57.520 --> 00:47:59.760
and you let AI make some you let Claude

00:47:59.760 --> 00:48:02.240
make some changes surely it it can

00:48:02.240 --> 00:48:04.480
recognize that it's done a bad change

00:48:04.480 --> 00:48:07.520
when the uh LSP starts That's this is

00:48:07.520 --> 00:48:09.520
the agent's shell, right? This is how

00:48:09.520 --> 00:48:13.200
the shell surfaces the information

00:48:13.200 --> 00:48:15.119
to the LLM. It captures a whole bunch of

00:48:15.119 --> 00:48:16.960
information. It also gives it guidelines

00:48:16.960 --> 00:48:18.400
like I made a change. Like if you look

00:48:18.400 --> 00:48:19.839
at cloud, it will say I made a change to

00:48:19.839 --> 00:48:21.760
this file. Let me make sure I don't know

00:48:21.760 --> 00:48:22.880
it says low bandwidth. Maybe my

00:48:22.880 --> 00:48:23.680
connection is bad.

00:48:23.680 --> 00:48:26.720
>> Yeah. Yeah. You just dropped out a bit.

00:48:26.720 --> 00:48:28.319
>> Sometimes cloud says,

00:48:28.319 --> 00:48:30.480
>> yeah. So, so cloud will say I made a

00:48:30.480 --> 00:48:31.520
change to this file. Let me run the

00:48:31.520 --> 00:48:34.319
tests or let me let me run this. This is

00:48:34.319 --> 00:48:36.800
like agent shell instructions, right?

00:48:36.800 --> 00:48:38.960
This is like part of Claude Code's magic

00:48:38.960 --> 00:48:41.760
sauce. It just it just says like you do

00:48:41.760 --> 00:48:43.119
this then you do that. You run this

00:48:43.119 --> 00:48:45.200
tool. You connect to the IDE and look

00:48:45.200 --> 00:48:47.359
for the problem. If you go to Visual

00:48:47.359 --> 00:48:49.280
Studio Code, you can see problems and

00:48:49.280 --> 00:48:51.200
say file. Exactly.

00:48:51.200 --> 00:48:53.200
>> Yeah. Language servers integrations and

00:48:53.200 --> 00:48:55.920
so on. So this is agent cell. This is ID

00:48:55.920 --> 00:48:57.839
context. This is what makes a coding

00:48:57.839 --> 00:49:00.319
agent good at what it does by by

00:49:00.319 --> 00:49:03.119
surfacing the information in small bits

00:49:03.119 --> 00:49:05.280
right when it's needed. Um,

00:49:05.280 --> 00:49:07.920
>> yeah, it's it's it's it's such an

00:49:07.920 --> 00:49:10.000
incredible technology, isn't it? It's so

00:49:10.000 --> 00:49:11.760
incredible.

00:49:11.760 --> 00:49:13.520
>> And and so what I wanted to give you an

00:49:13.520 --> 00:49:16.559
example of where I think it's obvious

00:49:16.559 --> 00:49:19.599
that cloud will not be good at doing

00:49:19.599 --> 00:49:21.839
things with Terraform compared to AWS

00:49:21.839 --> 00:49:22.960
CDK.

00:49:22.960 --> 00:49:28.720
>> Okay, juicy. I had the requirement

00:49:28.720 --> 00:49:32.240
a theory to set up swap files for nodes

00:49:32.240 --> 00:49:34.800
because we wanted to allow bursting. You

00:49:34.800 --> 00:49:36.960
know, you can overshare resources on a

00:49:36.960 --> 00:49:40.640
node and we wanted sometimes resources

00:49:40.640 --> 00:49:43.040
to be overs subscribed and some services

00:49:43.040 --> 00:49:45.040
to basically burst out and take more

00:49:45.040 --> 00:49:47.119
memory than the node has. So we wanted

00:49:47.119 --> 00:49:49.599
to alleviate some of the pressure by

00:49:49.599 --> 00:49:52.559
creating a swap file on disk. So I asked

00:49:52.559 --> 00:49:54.960
cloud to help me prepare the launch

00:49:54.960 --> 00:49:56.559
templates for the autoscaling group. And

00:49:56.559 --> 00:50:00.000
this was pure terapform, no AWS CDK. And

00:50:00.000 --> 00:50:02.480
to do the swap file configuration, you

00:50:02.480 --> 00:50:05.119
have to define the swappiness on the

00:50:05.119 --> 00:50:07.359
task definition. But on Terraform, the

00:50:07.359 --> 00:50:09.839
task definition is a massive JSON blob,

00:50:09.839 --> 00:50:10.559
right?

00:50:10.559 --> 00:50:12.880
>> It's just a massive JSON definition. And

00:50:12.880 --> 00:50:15.920
cloud can do like the first level of of

00:50:15.920 --> 00:50:19.119
of um of attributes of this JSON

00:50:19.119 --> 00:50:21.839
definition. it it can do it decently,

00:50:21.839 --> 00:50:24.079
but it when I mention about swappiness,

00:50:24.079 --> 00:50:25.520
it also just put the attribute

00:50:25.520 --> 00:50:27.680
swappiness straight on like the the top

00:50:27.680 --> 00:50:29.599
level as an attribute as a field on a

00:50:29.599 --> 00:50:32.240
JSON document and it didn't work. Uh or

00:50:32.240 --> 00:50:33.440
it looked like it worked. It didn't give

00:50:33.440 --> 00:50:35.359
me any errors, right? But when I looked

00:50:35.359 --> 00:50:37.119
into it, it actually didn't work. And I

00:50:37.119 --> 00:50:39.680
had to look really deep into AWS docs to

00:50:39.680 --> 00:50:41.680
figure out that swappiness was not a top

00:50:41.680 --> 00:50:43.680
level field, but was nested within

00:50:43.680 --> 00:50:45.760
something called kernel attributes or

00:50:45.760 --> 00:50:47.839
something like that. So on the ECS task

00:50:47.839 --> 00:50:49.839
definition, you had to create a field

00:50:49.839 --> 00:50:51.520
called kernel attributes. I'm not sure

00:50:51.520 --> 00:50:52.960
I'm just making that up, but it was

00:50:52.960 --> 00:50:54.079
something like that.

00:50:54.079 --> 00:50:55.599
>> And then there was a field under there

00:50:55.599 --> 00:50:57.440
called swappiness that you had to set to

00:50:57.440 --> 00:50:59.200
like a certain value to actually take

00:50:59.200 --> 00:51:02.240
effect. Now both the AWS API did not

00:51:02.240 --> 00:51:03.839
throw an error because it just ignored

00:51:03.839 --> 00:51:06.880
any unknown fields and and cloud did not

00:51:06.880 --> 00:51:09.440
know what was wrong because it's just

00:51:09.440 --> 00:51:11.599
it's just a JSON blob. But if I look at

00:51:11.599 --> 00:51:15.680
AWS CDK, they actually exploded this

00:51:15.680 --> 00:51:18.160
this this into a construct. They created

00:51:18.160 --> 00:51:20.400
a task definition construct and every

00:51:20.400 --> 00:51:23.359
possible field um is properly structured

00:51:23.359 --> 00:51:25.359
in a TypeScript interface. So if you put

00:51:25.359 --> 00:51:27.440
swappiness of the top level, you get a

00:51:27.440 --> 00:51:29.520
TypeScript error that doesn't compile.

00:51:29.520 --> 00:51:31.200
>> Yeah, but that but but you're assuming

00:51:31.200 --> 00:51:34.400
that someone's done the work in the CDK

00:51:34.400 --> 00:51:36.400
band. And that's the craziness about the

00:51:36.400 --> 00:51:39.119
AWS CDK is that somebody has been doing

00:51:39.119 --> 00:51:41.680
the work for 10 years and it's likeund

00:51:41.680 --> 00:51:43.760
contributors and it's spread across

00:51:43.760 --> 00:51:45.599
>> but that could work against you. They

00:51:45.599 --> 00:51:48.000
might not have been well maintained and

00:51:48.000 --> 00:51:49.520
you can't set

00:51:49.520 --> 00:51:51.040
>> well that's why a framework like that

00:51:51.040 --> 00:51:52.880
needs to be backed by the cloud

00:51:52.880 --> 00:51:55.280
provider. This only works on AWS CDK

00:51:55.280 --> 00:51:57.040
because AWS invests resources into

00:51:57.040 --> 00:51:58.640
building this library. And that's why

00:51:58.640 --> 00:52:00.319
AWS CDK is much more powerful than

00:52:00.319 --> 00:52:02.880
Terraform because it's backed by AWS and

00:52:02.880 --> 00:52:06.480
fine-tuned for its cloud.

00:52:06.480 --> 00:52:08.079
>> And

00:52:08.079 --> 00:52:10.319
that's what they use internally is what

00:52:10.319 --> 00:52:11.040
we

00:52:11.040 --> 00:52:12.880
>> exactly because when I look at the pull

00:52:12.880 --> 00:52:14.640
requests, they're like, I'm at a service

00:52:14.640 --> 00:52:17.520
team of AWS and we need this, you know,

00:52:17.520 --> 00:52:20.240
this particular EC2 or task definition

00:52:20.240 --> 00:52:22.079
field needs to be made available. On the

00:52:22.079 --> 00:52:26.160
topic of CDK, um, let me just share my,

00:52:26.160 --> 00:52:29.200
uh, thing again. I had a question for

00:52:29.200 --> 00:52:36.960
you on operational flexibility

00:52:36.960 --> 00:52:39.839
or operational features.

00:52:39.839 --> 00:52:43.440
Okay. So, so here's an example. Uh I'm

00:52:43.440 --> 00:52:46.319
I'm maintaining u let's just call it an

00:52:46.319 --> 00:52:50.800
airflow an AWS ma MWAA airflow instance

00:52:50.800 --> 00:52:54.000
at work and it's getting overloaded. I

00:52:54.000 --> 00:52:56.240
need to scale it up quickly. So in

00:52:56.240 --> 00:52:57.920
terraform

00:52:57.920 --> 00:52:59.680
if I was man if I was managing airflow

00:52:59.680 --> 00:53:03.520
in terraform I would set the CPU type

00:53:03.520 --> 00:53:05.440
from

00:53:05.440 --> 00:53:09.920
I don't know T1 to T5 or something M1 to

00:53:09.920 --> 00:53:13.119
M5 or something right and then I do then

00:53:13.119 --> 00:53:16.319
I do a plan and then I do apply and I

00:53:16.319 --> 00:53:18.880
don't know half an hour later the

00:53:18.880 --> 00:53:20.319
instance of airflow would have been

00:53:20.319 --> 00:53:22.319
updated

00:53:22.319 --> 00:53:25.359
in AWS CDK land

00:53:25.359 --> 00:53:27.119
Um, again, I don't think it's any

00:53:27.119 --> 00:53:30.240
faster, right? You you would still have

00:53:30.240 --> 00:53:34.160
to go into your CDK code, change of

00:53:34.160 --> 00:53:36.720
change something, and then do a CDK

00:53:36.720 --> 00:53:39.280
deploy, and it's probably the the same

00:53:39.280 --> 00:53:41.520
amount of time as the Terraform plan and

00:53:41.520 --> 00:53:43.839
apply. Right?

00:53:43.839 --> 00:53:46.079
What I'm trying to say here is that is

00:53:46.079 --> 00:53:48.079
that is there

00:53:48.079 --> 00:53:50.559
um what's the quickest way to make a

00:53:50.559 --> 00:53:54.400
quick change in of these technologies

00:53:54.400 --> 00:53:56.640
besides don't say click ops I mean yeah

00:53:56.640 --> 00:53:58.400
I I think click ops is probably the

00:53:58.400 --> 00:54:01.440
fastest you know what I mean the speed

00:54:01.440 --> 00:54:03.040
to make a change

00:54:03.040 --> 00:54:08.000
>> I don't think we captured it very well

00:54:08.000 --> 00:54:10.319
>> um

00:54:10.319 --> 00:54:12.640
yeah I

00:54:12.640 --> 00:54:15.760
It's a trade-off, right, that you you I

00:54:15.760 --> 00:54:17.440
it's all or nothing in these frameworks,

00:54:17.440 --> 00:54:20.319
right? You either go all in and you make

00:54:20.319 --> 00:54:22.720
single source of truth, Terraform, and

00:54:22.720 --> 00:54:24.079
there's no way of making a change

00:54:24.079 --> 00:54:28.800
outside of Terraform. Um or you

00:54:28.800 --> 00:54:30.640
completely ignore that attribute in

00:54:30.640 --> 00:54:32.559
terapform and then people can change it

00:54:32.559 --> 00:54:34.400
and Terraform will not complain or try

00:54:34.400 --> 00:54:36.800
to revert it. You know, you can say life

00:54:36.800 --> 00:54:40.079
cycle ignore this attribute so try to

00:54:40.079 --> 00:54:43.520
reset it. Um that's where other

00:54:43.520 --> 00:54:46.160
frameworks recently try to improve

00:54:46.160 --> 00:54:48.880
because they say by nature the cloud is

00:54:48.880 --> 00:54:52.079
birectional. It's not one way. You know

00:54:52.079 --> 00:54:54.400
forcing your infrastructure as code to

00:54:54.400 --> 00:54:57.520
be single direction single sort of truth

00:54:57.520 --> 00:55:00.319
in practice doesn't work. It slows teams

00:55:00.319 --> 00:55:03.200
down and that's where config that all of

00:55:03.200 --> 00:55:04.800
what I just said is basically from a

00:55:04.800 --> 00:55:08.000
block um series from Brian Grant, right?

00:55:08.000 --> 00:55:10.640
the guy who who then announced uh Config

00:55:10.640 --> 00:55:13.680
Hub. So, their idea is that you must be

00:55:13.680 --> 00:55:16.000
able to go into your config store and

00:55:16.000 --> 00:55:17.839
change a value and have it applied

00:55:17.839 --> 00:55:21.280
quickly without going through a massive

00:55:21.280 --> 00:55:25.440
um and slow uh process. But that's a

00:55:25.440 --> 00:55:28.000
trade-off, right? I mean their point is

00:55:28.000 --> 00:55:30.240
that if you do it through our system I

00:55:30.240 --> 00:55:32.079
guess there's more tracing and more

00:55:32.079 --> 00:55:33.680
control over it than if somebody goes in

00:55:33.680 --> 00:55:35.359
click ops at least as the config field

00:55:35.359 --> 00:55:37.119
is stored inside the data and you can

00:55:37.119 --> 00:55:40.319
have an audit trails there. I don't know

00:55:40.319 --> 00:55:43.359
I do feel you get you can you know have

00:55:43.359 --> 00:55:45.760
your cloud trail

00:55:45.760 --> 00:55:50.400
events siphoned off to just note what

00:55:50.400 --> 00:55:53.119
infrastructure changes they are.

00:55:53.119 --> 00:55:56.400
>> Yeah. Um so system initiative they also

00:55:56.400 --> 00:55:59.839
have this idea of we are a digital twin

00:55:59.839 --> 00:56:01.760
and we synchronize whatever you do in

00:56:01.760 --> 00:56:03.200
AWS back

00:56:03.200 --> 00:56:05.839
>> I need I need to give assistive

00:56:05.839 --> 00:56:08.799
system initiative a trial before I meet

00:56:08.799 --> 00:56:11.119
up go meet up with

00:56:11.119 --> 00:56:13.040
>> they have great ideas I mean the people

00:56:13.040 --> 00:56:14.880
behind it have a lot of experience with

00:56:14.880 --> 00:56:17.520
chef and puppet and there some of the

00:56:17.520 --> 00:56:19.760
you know original creators of some of

00:56:19.760 --> 00:56:22.720
the ideas of how chef originally worked

00:56:22.720 --> 00:56:24.799
and they carried over after working with

00:56:24.799 --> 00:56:26.799
Terafhone for a long time and and they

00:56:26.799 --> 00:56:30.799
they they just built a new idea and the

00:56:30.799 --> 00:56:33.200
way I understood from his podcast that I

00:56:33.200 --> 00:56:35.359
I listen was that system system

00:56:35.359 --> 00:56:37.839
initiative is a programmable graph. So

00:56:37.839 --> 00:56:42.319
you create nodes and every node in the

00:56:42.319 --> 00:56:45.280
graph has hooks like create, read,

00:56:45.280 --> 00:56:48.240
update, delete and those notes those

00:56:48.240 --> 00:56:50.720
hooks are all programmable. So you can

00:56:50.720 --> 00:56:54.240
decide this node

00:56:54.240 --> 00:56:56.160
It doesn't. Yeah. This node if it gets

00:56:56.160 --> 00:56:58.880
created, this is how the function runs.

00:56:58.880 --> 00:57:00.880
And this node if it needs to be updated,

00:57:00.880 --> 00:57:03.359
this is what function it runs. And you

00:57:03.359 --> 00:57:05.599
can therefore build your own nodes. It's

00:57:05.599 --> 00:57:07.200
kind of like terapform provider

00:57:07.200 --> 00:57:09.200
resources, right? But all split out into

00:57:09.200 --> 00:57:11.040
individual node because a terapform

00:57:11.040 --> 00:57:13.040
provider resource has create, read,

00:57:13.040 --> 00:57:15.839
update, delete hooks, right? And the

00:57:15.839 --> 00:57:17.920
telephone provider just looks at the

00:57:17.920 --> 00:57:20.079
graph, determines that note needs to be

00:57:20.079 --> 00:57:22.319
updated and then calls the update hook

00:57:22.319 --> 00:57:25.359
for that resource and gives it the um

00:57:25.359 --> 00:57:27.280
you know the actual values and and the

00:57:27.280 --> 00:57:30.480
the new values and then that resource as

00:57:30.480 --> 00:57:32.400
part of the provider will apply those

00:57:32.400 --> 00:57:34.720
changes by making the correct AWS API

00:57:34.720 --> 00:57:36.640
calls. Right? So they they kind of take

00:57:36.640 --> 00:57:39.440
this terapform provider but they split

00:57:39.440 --> 00:57:41.040
it out into individual programmable

00:57:41.040 --> 00:57:44.160
nodes and then they they reimplemented

00:57:44.160 --> 00:57:46.799
each of those nodes. What I don't like

00:57:46.799 --> 00:57:49.920
as far as I understand is that under the

00:57:49.920 --> 00:57:52.319
hood every single function of those

00:57:52.319 --> 00:57:56.079
nodes is like using AWS CLI commands. So

00:57:56.079 --> 00:57:58.240
it doesn't like it

00:57:58.240 --> 00:58:00.240
>> and and

00:58:00.240 --> 00:58:03.280
I don't know because honestly if you I

00:58:03.280 --> 00:58:04.799
think they spent four years rebuilding

00:58:04.799 --> 00:58:07.359
Terraform provider AWS by defining every

00:58:07.359 --> 00:58:08.960
resource type as a node and giving it

00:58:08.960 --> 00:58:12.000
create read update scripts you've only

00:58:12.000 --> 00:58:15.119
done the very basic foundation because

00:58:15.119 --> 00:58:17.040
what really makes infrastructure as code

00:58:17.040 --> 00:58:19.040
powerful is like what I just told you 10

00:58:19.040 --> 00:58:20.880
years of AWS CDK and hundreds of

00:58:20.880 --> 00:58:22.799
contributors splitting out every

00:58:22.799 --> 00:58:24.880
possible field and building integration

00:58:24.880 --> 00:58:26.000
pattern.

00:58:26.000 --> 00:58:27.839
Right?

00:58:27.839 --> 00:58:29.119
Imagine you spend four years

00:58:29.119 --> 00:58:31.280
re-implementing Terraform providers and

00:58:31.280 --> 00:58:33.040
offering it as a solution and you

00:58:33.040 --> 00:58:35.040
haven't even gotten to the level of like

00:58:35.040 --> 00:58:37.040
now I have a lambda and a gateway and I

00:58:37.040 --> 00:58:38.880
need to integrate them and that means I

00:58:38.880 --> 00:58:40.400
need to call all of these resources and

00:58:40.400 --> 00:58:42.559
I need to call all of these hooks in

00:58:42.559 --> 00:58:44.880
sequence. You're you've you

00:58:44.880 --> 00:58:46.960
>> Yeah. But the

00:58:46.960 --> 00:58:51.119
but in a in an in a in a in an ideal

00:58:51.119 --> 00:58:55.920
world the AWS CLI should be exposing

00:58:55.920 --> 00:58:58.319
these things should be exposing even

00:58:58.319 --> 00:59:00.240
these high level obstructions in some

00:59:00.240 --> 00:59:03.760
ways the AWS CLI

00:59:03.760 --> 00:59:05.599
um I mean I'm just playing devil's

00:59:05.599 --> 00:59:08.559
advocate here

00:59:08.559 --> 00:59:11.839
>> the CLI should be should be actually the

00:59:11.839 --> 00:59:13.839
interface

00:59:13.839 --> 00:59:15.440
should be enough is what I'm trying to

00:59:15.440 --> 00:59:16.880
say.

00:59:16.880 --> 00:59:18.559
>> Yeah. So, I haven't played enough with

00:59:18.559 --> 00:59:21.280
system initiative, but I can imagine

00:59:21.280 --> 00:59:24.000
that based on what he says, if they

00:59:24.000 --> 00:59:26.400
started from scratch, it would take an

00:59:26.400 --> 00:59:28.319
immense amount of work to reach anything

00:59:28.319 --> 00:59:31.040
like AWS CDK level of UX

00:59:31.040 --> 00:59:34.640
>> or DevX developer experience. And sure

00:59:34.640 --> 00:59:37.280
you can show a demo which he says we you

00:59:37.280 --> 00:59:39.200
know we have a demo where you give us

00:59:39.200 --> 00:59:41.599
your AWS account and we point system

00:59:41.599 --> 00:59:44.240
initiative and it at it and it will very

00:59:44.240 --> 00:59:46.240
quickly create your AWS account

00:59:46.240 --> 00:59:48.799
resources as a digital twin in our graph

00:59:48.799 --> 00:59:50.880
our programmable graph and you can

00:59:50.880 --> 00:59:53.119
immediately start modifying them through

00:59:53.119 --> 00:59:55.680
our interface with our digital twin

00:59:55.680 --> 00:59:59.520
technology but that doesn't talk about I

00:59:59.520 --> 01:00:01.839
am a devop developer and I need to

01:00:01.839 --> 01:00:03.440
deploy nextgs

01:00:03.440 --> 01:00:06.160
And I don't care how to set up API

01:00:06.160 --> 01:00:07.839
gateway and every single lambda so that

01:00:07.839 --> 01:00:11.040
nextgs has a server side and can execute

01:00:11.040 --> 01:00:12.799
right because that is what a developer

01:00:12.799 --> 01:00:14.400
wants to do. This is the actual

01:00:14.400 --> 01:00:16.480
functionality like I started Terraform

01:00:16.480 --> 01:00:18.960
sorry I started my career you know

01:00:18.960 --> 01:00:20.799
understanding how the control plane

01:00:20.799 --> 01:00:23.680
works how reconciliation loops works but

01:00:23.680 --> 01:00:26.079
if you work for an organization

01:00:26.079 --> 01:00:28.559
nobody cares right we need to deploy the

01:00:28.559 --> 01:00:30.000
feature and what is the best

01:00:30.000 --> 01:00:31.920
architecture for us to deploy it I don't

01:00:31.920 --> 01:00:34.799
care how kubernetes you know atcd needs

01:00:34.799 --> 01:00:36.400
to be set up and backup procedures and

01:00:36.400 --> 01:00:39.200
all that you want to write code

01:00:39.200 --> 01:00:41.440
>> yeah I I that is the business value

01:00:41.440 --> 01:00:43.359
unless you're you're a hosted kubernetes

01:00:43.359 --> 01:00:46.000
this cluster provider as a DevOps

01:00:46.000 --> 01:00:47.599
engineer you're coming in and only

01:00:47.599 --> 01:00:49.599
knowing how to set up clusters you don't

01:00:49.599 --> 01:00:51.680
bring any value unless you can do these

01:00:51.680 --> 01:00:53.440
high level integration patterns and

01:00:53.440 --> 01:00:55.280
after you know it was very interesting

01:00:55.280 --> 01:00:57.040
for me but after doing it for five or

01:00:57.040 --> 01:00:59.680
six years I wanted to actually be

01:00:59.680 --> 01:01:02.240
valuable [laughter] you know actually

01:01:02.240 --> 01:01:04.559
focus on these hard

01:01:04.559 --> 01:01:07.119
level integration patterns as you'll as

01:01:07.119 --> 01:01:08.720
you

01:01:08.720 --> 01:01:11.520
are only really possible with CDK right

01:01:11.520 --> 01:01:13.599
Mhm.

01:01:13.599 --> 01:01:18.240
>> Yeah. So I CDK is great but there

01:01:18.240 --> 01:01:20.000
obviously I think other approaches like

01:01:20.000 --> 01:01:25.200
Pulumi they I was very surprised because

01:01:25.200 --> 01:01:27.760
CDK has this as as I just explained it

01:01:27.760 --> 01:01:29.359
has like these amazing deep level

01:01:29.359 --> 01:01:32.079
integrations within the AWS services. So

01:01:32.079 --> 01:01:34.559
if you take a TypeScript object uh for

01:01:34.559 --> 01:01:36.720
that represents an API gateway, it gives

01:01:36.720 --> 01:01:39.200
you a method to to like bind it to a

01:01:39.200 --> 01:01:40.720
lambda and it knows exactly what to do

01:01:40.720 --> 01:01:44.079
under the hood. Um Palumi is kind of

01:01:44.079 --> 01:01:46.559
like starting from scratch and then

01:01:46.559 --> 01:01:49.040
build little like helper methods on top.

01:01:49.040 --> 01:01:51.359
For example, the bucket object that you

01:01:51.359 --> 01:01:54.640
get within Palumi has the ID of like an

01:01:54.640 --> 01:01:56.400
onevent

01:01:56.400 --> 01:01:59.359
um hook and and you can put the function

01:01:59.359 --> 01:02:01.760
handler in that onevent.

01:02:01.760 --> 01:02:03.760
Uh it's on the bucket object. You should

01:02:03.760 --> 01:02:06.640
search for bucket.onvent.

01:02:06.640 --> 01:02:08.799
And apparently that's not in their like

01:02:08.799 --> 01:02:12.079
L1s but also in in their like higher

01:02:12.079 --> 01:02:17.440
level on event. Yeah, I see it's in Pumi

01:02:17.440 --> 01:02:21.119
crosswalks. So, so AWS CDK is like the

01:02:21.119 --> 01:02:23.920
the L2, right? And Crosswalks is like

01:02:23.920 --> 01:02:26.640
their version of L2. It's like you take

01:02:26.640 --> 01:02:29.200
the low-level bucket API object and then

01:02:29.200 --> 01:02:31.839
you add ideas on top of like do onevent

01:02:31.839 --> 01:02:33.599
and and that's a really neat little

01:02:33.599 --> 01:02:35.599
thing. But again it required somebody at

01:02:35.599 --> 01:02:38.480
pulley to implement the idea of a bucket

01:02:38.480 --> 01:02:41.520
a cloudatch rule an SNS topic have this

01:02:41.520 --> 01:02:44.640
idea of invoking a function and does

01:02:44.640 --> 01:02:46.400
they rep they they created a repeatable

01:02:46.400 --> 01:02:48.799
pattern that on event you pack in you

01:02:48.799 --> 01:02:50.720
pass in the function handler and it will

01:02:50.720 --> 01:02:52.400
automatically create the bucket create

01:02:52.400 --> 01:02:54.160
the lambda create the bucket

01:02:54.160 --> 01:02:55.760
notification that calls the lambda set

01:02:55.760 --> 01:02:57.599
up the lambda permissions everything for

01:02:57.599 --> 01:03:00.000
you right and then the only event is

01:03:00.000 --> 01:03:03.760
like this this um this pattern that they

01:03:03.760 --> 01:03:05.599
expose it's an interface because it's a

01:03:05.599 --> 01:03:06.880
programming language. So you can

01:03:06.880 --> 01:03:08.480
reimplement it. If you have something of

01:03:08.480 --> 01:03:09.760
your own that you want to implement the

01:03:09.760 --> 01:03:11.839
on event then you can implement exactly

01:03:11.839 --> 01:03:13.119
what are the grant permissions that need

01:03:13.119 --> 01:03:15.280
to be added to the policy. So you can

01:03:15.280 --> 01:03:17.599
implement your own on event. So that's

01:03:17.599 --> 01:03:19.280
the the the benefit of using a

01:03:19.280 --> 01:03:20.960
programming language. You can create an

01:03:20.960 --> 01:03:22.799
interface. You can define a contract.

01:03:22.799 --> 01:03:24.079
You can't do that with terapform

01:03:24.079 --> 01:03:25.920
modules. Can you try to think about

01:03:25.920 --> 01:03:30.960
doing that with terapform modules?

01:03:30.960 --> 01:03:33.760
Well, and I'm and going back to your IM

01:03:33.760 --> 01:03:36.079
example

01:03:36.079 --> 01:03:38.799
to achieve these these priv privileges

01:03:38.799 --> 01:03:42.000
without some sort of dynamism is going

01:03:42.000 --> 01:03:43.359
to be hard.

01:03:43.359 --> 01:03:44.960
>> Yeah, that's exactly because of you have

01:03:44.960 --> 01:03:47.119
this like synthesis time, lazy

01:03:47.119 --> 01:03:49.839
evaluation, late binding, setting

01:03:49.839 --> 01:03:51.920
properties after the program has

01:03:51.920 --> 01:03:52.720
executed.

01:03:52.720 --> 01:03:54.880
>> But I can't think this cuts both ways. I

01:03:54.880 --> 01:03:58.344
mean

01:03:58.344 --> 01:03:59.920
[sighs and gasps]

01:03:59.920 --> 01:04:01.440
there surely there's an argu there's an

01:04:01.440 --> 01:04:02.319
argument

01:04:02.319 --> 01:04:04.000
>> policy that you want to to attach

01:04:04.000 --> 01:04:05.520
>> there's there's an argument to be made

01:04:05.520 --> 01:04:07.119
is like as soon as someone starts

01:04:07.119 --> 01:04:12.000
writing a whole bunch of code with with

01:04:12.000 --> 01:04:15.839
like onvent uh logic it's going to get

01:04:15.839 --> 01:04:17.359
pretty probably quite difficult to

01:04:17.359 --> 01:04:20.559
follow right the beauty of opening up a

01:04:20.559 --> 01:04:23.599
lot of terraform projects is that you

01:04:23.599 --> 01:04:25.359
kind of know what's what's happening and

01:04:25.359 --> 01:04:29.680
it's kind of it's constrained by by the

01:04:29.680 --> 01:04:33.200
by the language right if if like just

01:04:33.200 --> 01:04:36.240
like any code in the world if people can

01:04:36.240 --> 01:04:38.400
do things they will and it will just get

01:04:38.400 --> 01:04:40.880
complex without any

01:04:40.880 --> 01:04:43.680
>> uh yes without any uh abandon right

01:04:43.680 --> 01:04:45.440
>> I just got the question to the today

01:04:45.440 --> 01:04:47.680
from someone he says like do you think

01:04:47.680 --> 01:04:49.520
that it makes sense to target an

01:04:49.520 --> 01:04:52.319
intermediate DSL and and when you're

01:04:52.319 --> 01:04:53.760
saying what you're saying just now it's

01:04:53.760 --> 01:04:55.760
Like with the terra constructs, if you

01:04:55.760 --> 01:04:58.640
do this complicated coupling uh of of

01:04:58.640 --> 01:05:00.799
creating a lambda in an API gateway

01:05:00.799 --> 01:05:03.280
ultimately when you run synth you get a

01:05:03.280 --> 01:05:05.680
flat config file which is the DSL that

01:05:05.680 --> 01:05:08.000
is terraform and you can run your

01:05:08.000 --> 01:05:12.000
whatever um you know llinters and

01:05:12.000 --> 01:05:14.640
problems but it's probably going to be

01:05:14.640 --> 01:05:17.599
fishly complex but yeah okay

01:05:17.599 --> 01:05:21.280
>> yeah because the cloud is complex dude

01:05:21.280 --> 01:05:25.440
>> this was I Um the trade-off is you're

01:05:25.440 --> 01:05:27.039
getting

01:05:27.039 --> 01:05:28.880
capabilities,

01:05:28.880 --> 01:05:30.400
elasticity

01:05:30.400 --> 01:05:35.200
and uptime for services to move fast in

01:05:35.200 --> 01:05:38.559
terms of a business value and does it

01:05:38.559 --> 01:05:40.480
end up being complex? What's the

01:05:40.480 --> 01:05:42.319
alternative? You're going to spin up an

01:05:42.319 --> 01:05:44.480
EC2 instance and build your own and then

01:05:44.480 --> 01:05:47.839
you know yeah on it there's different

01:05:47.839 --> 01:05:49.359
way there's different ways of looking at

01:05:49.359 --> 01:05:54.400
it like

01:05:54.400 --> 01:05:56.160
you know, the more I need to give system

01:05:56.160 --> 01:05:58.319
initiative a bit of a whirl to be

01:05:58.319 --> 01:05:59.440
honest,

01:05:59.440 --> 01:06:04.079
>> but I'm I'm start I'm but like I'm I'm

01:06:04.079 --> 01:06:07.599
my I'm working backwards from AI

01:06:07.599 --> 01:06:12.000
and I feel with AI it's about uh I mean

01:06:12.000 --> 01:06:14.240
it's also it's also about the same thing

01:06:14.240 --> 01:06:16.880
for humans really it's about iteration

01:06:16.880 --> 01:06:19.440
speed and uh

01:06:19.440 --> 01:06:21.599
>> and a to and a and a tool full chain

01:06:21.599 --> 01:06:23.920
like I'm just thinking aloud that like

01:06:23.920 --> 01:06:29.599
maybe calling AWS CLI from from Claude

01:06:29.599 --> 01:06:31.039
uh you know something where system

01:06:31.039 --> 01:06:33.200
initiative does behind the behind the

01:06:33.200 --> 01:06:36.880
scenes is perhaps not a terrible way of

01:06:36.880 --> 01:06:40.240
uh bootstrapping an account right to

01:06:40.240 --> 01:06:43.680
what it needs to do for for for

01:06:43.680 --> 01:06:47.200
a you know a typical a typical

01:06:47.200 --> 01:06:50.319
organization and let's take a step back

01:06:50.319 --> 01:06:53.359
what you just said about iteration and

01:06:53.359 --> 01:06:57.039
achieving results quickly. Um, it's kind

01:06:57.039 --> 01:06:58.880
of like how how I was understanding what

01:06:58.880 --> 01:07:00.400
you're saying. I think this is also

01:07:00.400 --> 01:07:02.400
related to people like originally people

01:07:02.400 --> 01:07:03.680
were like, "Oh, Kubernetes is going to

01:07:03.680 --> 01:07:06.000
give me this full cloud independence.

01:07:06.000 --> 01:07:07.599
I'm going to be able to do multicloud,

01:07:07.599 --> 01:07:09.839
you know, as a resilience strategy and

01:07:09.839 --> 01:07:12.160
and and everything, right?" Very quickly

01:07:12.160 --> 01:07:14.559
that breaks down because the advantage

01:07:14.559 --> 01:07:17.599
of being in a cloud is to maximize its

01:07:17.599 --> 01:07:20.319
capabilities. Like if you are an AI team

01:07:20.319 --> 01:07:23.440
and you need to set up like this complex

01:07:23.440 --> 01:07:26.960
um data ETL pipeline, but you need to be

01:07:26.960 --> 01:07:29.520
completely cloud independent and you

01:07:29.520 --> 01:07:33.760
need to do everything yourself versus oh

01:07:33.760 --> 01:07:35.280
I'm going to use some step functions or

01:07:35.280 --> 01:07:37.760
durable lambdas now and I'm going to

01:07:37.760 --> 01:07:39.039
leverage all of the serverless

01:07:39.039 --> 01:07:40.880
capabilities and I've got something

01:07:40.880 --> 01:07:43.039
working you know because you have like

01:07:43.039 --> 01:07:45.440
DBOS you just define your your

01:07:45.440 --> 01:07:47.599
programming and then under the hood

01:07:47.599 --> 01:07:49.839
whenever a function is called, it can be

01:07:49.839 --> 01:07:53.520
suspended and it can be persisted and I

01:07:53.520 --> 01:07:54.960
don't need to worry about exactly how

01:07:54.960 --> 01:07:56.960
all of that works. I can just focus pure

01:07:56.960 --> 01:07:59.119
on my business flow and it's a neat

01:07:59.119 --> 01:08:01.920
clear data pipeline and under the hood

01:08:01.920 --> 01:08:03.920
it's it's automatically creating lambdas

01:08:03.920 --> 01:08:05.599
and they are being suspended when

01:08:05.599 --> 01:08:07.440
they're waiting for events and they're

01:08:07.440 --> 01:08:10.079
resumable and it's taking care of of of

01:08:10.079 --> 01:08:11.599
um making sure that the event is

01:08:11.599 --> 01:08:13.680
propagated and no notifications are

01:08:13.680 --> 01:08:15.280
being missed and and all of this like

01:08:15.280 --> 01:08:18.000
fall torren and and and re repeat and

01:08:18.000 --> 01:08:20.080
that that letter Q setup and all of this

01:08:20.080 --> 01:08:22.880
complexity gets handled by a cloud layer

01:08:22.880 --> 01:08:24.480
and that gives you the ability to move

01:08:24.480 --> 01:08:28.000
forward and to deliver a feature that's

01:08:28.000 --> 01:08:30.880
between in in an organization

01:08:30.880 --> 01:08:33.359
that's between being the market layer or

01:08:33.359 --> 01:08:35.600
being leader of being out of out of the

01:08:35.600 --> 01:08:40.719
market and closing down.

01:08:40.719 --> 01:08:42.239
>> I worked in many organizations.

01:08:42.239 --> 01:08:44.960
>> Well, okay. Just to replay my

01:08:44.960 --> 01:08:46.400
understanding what you just said is that

01:08:46.400 --> 01:08:50.400
like if you don't uh

01:08:50.400 --> 01:08:53.600
get fine if if you don't

01:08:53.600 --> 01:08:54.239
get

01:08:54.239 --> 01:08:55.120
>> realize

01:08:55.120 --> 01:08:56.880
>> get down in the weeds then you're not

01:08:56.880 --> 01:08:59.359
really innovating type is what I is what

01:08:59.359 --> 01:09:00.480
I heard.

01:09:00.480 --> 01:09:04.000
>> It's more about if you what is what

01:09:04.000 --> 01:09:05.359
business are you delivering? What is

01:09:05.359 --> 01:09:07.359
your core business right? your core

01:09:07.359 --> 01:09:09.440
business is not creating a perfect ECS

01:09:09.440 --> 01:09:11.600
cluster and and taking care exactly of

01:09:11.600 --> 01:09:15.120
like setting up um pipeline that that

01:09:15.120 --> 01:09:16.640
does exactly one delivery of all the

01:09:16.640 --> 01:09:18.719
messages and and does does all of this

01:09:18.719 --> 01:09:22.239
core like engineering most organizations

01:09:22.239 --> 01:09:23.920
just need to deliver business value or

01:09:23.920 --> 01:09:25.440
they're or they they die

01:09:25.440 --> 01:09:26.799
>> they're out of business. Yeah. And then

01:09:26.799 --> 01:09:28.159
you

01:09:28.159 --> 01:09:30.319
>> I think you made the argument that like

01:09:30.319 --> 01:09:32.080
you can't do this in the CLI. You need

01:09:32.080 --> 01:09:34.480
to you need to get down into the the

01:09:34.480 --> 01:09:37.279
details. I mean sorry if I My link back

01:09:37.279 --> 01:09:40.400
to to what you were saying earlier about

01:09:40.400 --> 01:09:42.640
um

01:09:42.640 --> 01:09:45.279
my link back was basically

01:09:45.279 --> 01:09:48.719
maximizing highle services of cloud

01:09:48.719 --> 01:09:51.759
without

01:09:51.759 --> 01:09:53.359
um

01:09:53.359 --> 01:09:55.440
worrying about it not being reproducible

01:09:55.440 --> 01:09:59.199
or um yeah I don't know I I I had a

01:09:59.199 --> 01:09:59.520
point

01:09:59.520 --> 01:10:03.280
>> okay we we I sorry I I my kids uh need

01:10:03.280 --> 01:10:06.320
to be taken to school so I ran out of I

01:10:06.320 --> 01:10:08.000
sound like I have a point just now. I

01:10:08.000 --> 01:10:09.679
need to rewatch this to remember what my

01:10:09.679 --> 01:10:10.640
point is.

01:10:10.640 --> 01:10:11.040
>> Okay,

01:10:11.040 --> 01:10:12.000
>> I'll put it in the comments.

01:10:12.000 --> 01:10:14.560
>> We'll we'll get to the point. Thanks for

01:10:14.560 --> 01:10:18.400
watching if you're watching this. Bye.

