WEBVTT

00:00:00.320 --> 00:00:03.679
to uh the value add on Terraform.

00:00:03.679 --> 00:00:06.879
As by means of introduction, Vincent and

00:00:06.879 --> 00:00:10.639
I are seasoned infrastructure engineers

00:00:10.639 --> 00:00:12.800
and the following is a conversation

00:00:12.800 --> 00:00:16.160
where we talk about Terraform CDK

00:00:16.160 --> 00:00:18.560
infrastructurees code and I think it's

00:00:18.560 --> 00:00:21.199
the best conversation I've ever had

00:00:21.199 --> 00:00:23.600
about platform teams. It's a bit of a

00:00:23.600 --> 00:00:26.000
slow burn. I hope you enjoy it. like the

00:00:26.000 --> 00:00:29.439
video. Um, and I recommend listening

00:00:29.439 --> 00:00:32.480
this to this in in a car. You don't need

00:00:32.480 --> 00:00:35.760
to look at the screen. I I did capture

00:00:35.760 --> 00:00:37.440
an angle of me from the side, which I

00:00:37.440 --> 00:00:40.320
think is a bit unflattering. Uh, so you

00:00:40.320 --> 00:00:43.040
don't need to watch this. We we do try

00:00:43.040 --> 00:00:46.320
share the the screen and browse to the

00:00:46.320 --> 00:00:47.600
things that we talk about, but

00:00:47.600 --> 00:00:50.480
essentially I feel this is a podcast

00:00:50.480 --> 00:00:52.480
format. You don't need to watch the

00:00:52.480 --> 00:00:55.280
video, but the video helps. Do please

00:00:55.280 --> 00:00:58.239
enjoy and comment below.

00:00:58.239 --> 00:00:58.800
>> See you.

00:00:58.800 --> 00:01:00.559
>> Why did I rebuild it? I probably didn't

00:01:00.559 --> 00:01:02.640
even need to rebuild it. Okay, so the

00:01:02.640 --> 00:01:04.720
value on top of Terapform. Um last time

00:01:04.720 --> 00:01:06.479
we talked about a lot of drama around

00:01:06.479 --> 00:01:08.640
the cloud providers and the way that you

00:01:08.640 --> 00:01:11.119
manage Terraform state and the resource

00:01:11.119 --> 00:01:14.640
under um under management pricing that's

00:01:14.640 --> 00:01:16.560
exuberant and then some drama around

00:01:16.560 --> 00:01:18.799
some open source projects and I'm very

00:01:18.799 --> 00:01:20.240
excited about them because I have my own

00:01:20.240 --> 00:01:22.240
open source project which is focused on

00:01:22.240 --> 00:01:26.000
strongly typed terraform right um

00:01:26.000 --> 00:01:28.720
originally terraform

00:01:28.720 --> 00:01:30.240
>> I mean just to interrupt you I mean like

00:01:30.240 --> 00:01:33.439
terraform is pretty typed I mean you

00:01:33.439 --> 00:01:36.159
have your strings, you have your default

00:01:36.159 --> 00:01:37.360
values, you have your

00:01:37.360 --> 00:01:38.159
>> strings,

00:01:38.159 --> 00:01:40.079
>> strings for enum values.

00:01:40.079 --> 00:01:41.680
>> Uh, okay. You have strings, strings,

00:01:41.680 --> 00:01:43.759
strings. No, you have um I'm sure you

00:01:43.759 --> 00:01:45.840
have integers. I'm I'm sure.

00:01:45.840 --> 00:01:47.840
>> No, no, but the problem is

00:01:47.840 --> 00:01:50.560
>> you have reg x you have uh you have

00:01:50.560 --> 00:01:51.920
stuff, right?

00:01:51.920 --> 00:01:54.960
>> Yeah. So, Terraform basically

00:01:54.960 --> 00:01:58.000
is built on the concept of plugins or

00:01:58.000 --> 00:02:01.200
providers for a for clouds and cloud or

00:02:01.200 --> 00:02:05.439
for pro for SAS or whatever services

00:02:05.439 --> 00:02:07.840
cloud services that give you an API

00:02:07.840 --> 00:02:09.599
where you can create resources such as

00:02:09.599 --> 00:02:11.920
AWS creates gives you an EC2 API where

00:02:11.920 --> 00:02:13.760
you can create an EC2 uh resource,

00:02:13.760 --> 00:02:16.239
right? And that was very good and well

00:02:16.239 --> 00:02:18.239
um you know 10 years ago where you just

00:02:18.239 --> 00:02:20.080
needed to create a VPC couple of subnets

00:02:20.080 --> 00:02:22.239
an instance or an autoscaling group and

00:02:22.239 --> 00:02:24.959
the number of knobs and dials that you

00:02:24.959 --> 00:02:26.800
could configure were not that much but

00:02:26.800 --> 00:02:28.400
then you start to having like life cycle

00:02:28.400 --> 00:02:30.400
hoots on autoscaling groups that works

00:02:30.400 --> 00:02:32.959
with lambdas and you have SNS topics and

00:02:32.959 --> 00:02:34.480
you have a lot of different services and

00:02:34.480 --> 00:02:36.080
different integration patterns between

00:02:36.080 --> 00:02:38.319
them right the cloud became way more

00:02:38.319 --> 00:02:40.720
complex uh a lot more serverless is now

00:02:40.720 --> 00:02:43.200
being part of a lot of the tech stack

00:02:43.200 --> 00:02:45.920
And Terraform is originally just a

00:02:45.920 --> 00:02:47.599
config file and a lot of programmatic

00:02:47.599 --> 00:02:49.280
features were completely omitted. So

00:02:49.280 --> 00:02:50.800
they tried to keep it dumb. They tried

00:02:50.800 --> 00:02:52.879
to keep it as simple as possible to

00:02:52.879 --> 00:02:54.560
avoid people shooting themselves in the

00:02:54.560 --> 00:02:56.560
foot. Most of the time when you talk to

00:02:56.560 --> 00:02:59.840
people about using actual programming

00:02:59.840 --> 00:03:02.400
actual programming language for for um

00:03:02.400 --> 00:03:05.360
cloud configuration, they say like that

00:03:05.360 --> 00:03:07.840
is a mistake. Like um what are you doing

00:03:07.840 --> 00:03:09.280
that requires a programming language?

00:03:09.280 --> 00:03:12.319
you should stick to the the proven path

00:03:12.319 --> 00:03:15.280
>> like a more declarative style of uh

00:03:15.280 --> 00:03:17.200
>> yeah declarative way of of doing things.

00:03:17.200 --> 00:03:18.959
But then they introduce for each. Then

00:03:18.959 --> 00:03:20.560
they introduce list comprehensions. Then

00:03:20.560 --> 00:03:22.319
they introduce local blocks. And then

00:03:22.319 --> 00:03:24.720
you look at the Terraform AWS community

00:03:24.720 --> 00:03:26.800
module that has like 45 different

00:03:26.800 --> 00:03:30.400
variables for input and and like five of

00:03:30.400 --> 00:03:33.519
them need to be set in a specific way to

00:03:33.519 --> 00:03:35.120
that trickles down through different

00:03:35.120 --> 00:03:37.360
local blocks with different tertiary

00:03:37.360 --> 00:03:39.920
conditionals that then need to value

00:03:39.920 --> 00:03:41.840
like that go down ultimately in one

00:03:41.840 --> 00:03:43.599
resource configuration and then you

00:03:43.599 --> 00:03:44.720
don't even know how those variables

00:03:44.720 --> 00:03:46.000
interact. Speaking speaking of

00:03:46.000 --> 00:03:48.000
complexity, I mean I always thought

00:03:48.000 --> 00:03:50.159
serverless was a godsend because it's

00:03:50.159 --> 00:03:53.760
going to uh simplify

00:03:53.760 --> 00:03:58.720
uh deployment of um of uh of application

00:03:58.720 --> 00:04:01.200
code, simplify the you know the life

00:04:01.200 --> 00:04:03.840
cycle, simplify

00:04:03.840 --> 00:04:06.080
uh everything to do with with that sort

00:04:06.080 --> 00:04:08.959
of stuff. For some reason um in

00:04:08.959 --> 00:04:11.280
Terraform at least provisioning a lambda

00:04:11.280 --> 00:04:16.239
is just a nightmarish uh I wonder why

00:04:16.239 --> 00:04:19.040
like why is that? How come Terraform

00:04:19.040 --> 00:04:22.880
never managed to make lambda versioning

00:04:22.880 --> 00:04:24.000
simple

00:04:24.000 --> 00:04:26.479
>> because Terraform's

00:04:26.479 --> 00:04:28.880
provider is built on the bare minimum

00:04:28.880 --> 00:04:31.360
resources to cover the API. So you go

00:04:31.360 --> 00:04:33.840
into very granular level to you know to

00:04:33.840 --> 00:04:36.080
to set up a lambda you must configure

00:04:36.080 --> 00:04:38.400
the lambda permission resource you must

00:04:38.400 --> 00:04:40.800
configure the IM role you must couple it

00:04:40.800 --> 00:04:42.080
and bind it to the lambda

00:04:42.080 --> 00:04:43.520
>> so there was no good uh there was no

00:04:43.520 --> 00:04:45.840
good abstraction or something um

00:04:45.840 --> 00:04:48.320
>> so the the abstraction in terraform is a

00:04:48.320 --> 00:04:51.040
terapform module which is very limited

00:04:51.040 --> 00:04:53.040
in the way that you can configure it. It

00:04:53.040 --> 00:04:56.160
provides a fat set of variable inputs

00:04:56.160 --> 00:04:59.120
and it provides some outputs and there's

00:04:59.120 --> 00:05:00.960
no guarantee around the type system of

00:05:00.960 --> 00:05:02.639
the output at all. Like the outputs are

00:05:02.639 --> 00:05:04.560
any they can be maps, they can be lists,

00:05:04.560 --> 00:05:06.720
they can be strings, they change if you

00:05:06.720 --> 00:05:08.400
depending on the internal of the module.

00:05:08.400 --> 00:05:10.800
If you decide to put a count inside the

00:05:10.800 --> 00:05:12.960
resource and then you use those outputs

00:05:12.960 --> 00:05:14.639
uh or those attributes in an output,

00:05:14.639 --> 00:05:16.080
then suddenly those outputs become a

00:05:16.080 --> 00:05:18.080
list and you know for some reason

00:05:18.080 --> 00:05:19.199
because under the hood something

00:05:19.199 --> 00:05:20.880
changed, right? Yeah, that's inherent to

00:05:20.880 --> 00:05:23.280
how terrible modules are developed.

00:05:23.280 --> 00:05:26.000
>> Actually, I mean my usage of of of

00:05:26.000 --> 00:05:29.199
serverless is generally quite

00:05:29.199 --> 00:05:30.880
>> what what do you call it? uh

00:05:30.880 --> 00:05:32.320
standardized

00:05:32.320 --> 00:05:34.880
>> you know I usually just run a go binary

00:05:34.880 --> 00:05:36.320
but I guess that's the trouble with

00:05:36.320 --> 00:05:38.160
serverless is that you can do you can

00:05:38.160 --> 00:05:40.479
you can do a lot with serverless you can

00:05:40.479 --> 00:05:42.320
integrate it in lots of different ways

00:05:42.320 --> 00:05:42.639
right

00:05:42.639 --> 00:05:44.560
>> well so the great thing about serverless

00:05:44.560 --> 00:05:47.840
is that you you're able to configure

00:05:47.840 --> 00:05:50.240
very expressive business logic across

00:05:50.240 --> 00:05:52.160
cloud resources but that's also

00:05:52.160 --> 00:05:54.400
immediately why it becomes so complex

00:05:54.400 --> 00:05:56.639
right because now your business logic is

00:05:56.639 --> 00:05:58.800
spread across your serverless components

00:05:58.800 --> 00:06:00.479
and if you work with something like

00:06:00.479 --> 00:06:02.720
Terraform, those components are very

00:06:02.720 --> 00:06:04.400
low-level resources that all need to be

00:06:04.400 --> 00:06:06.400
configured exactly right for your actual

00:06:06.400 --> 00:06:07.520
business logic to work.

00:06:07.520 --> 00:06:08.800
>> I mean I mean

00:06:08.800 --> 00:06:10.319
>> think about like a simple lambda

00:06:10.319 --> 00:06:12.960
chaining setup where you have lambda.

00:06:12.960 --> 00:06:13.600
>> Yeah.

00:06:13.600 --> 00:06:15.280
>> Yeah. I I want to definitely get away

00:06:15.280 --> 00:06:18.639
from that because my my usage of of of

00:06:18.639 --> 00:06:21.280
serverless and is to is to essentially

00:06:21.280 --> 00:06:23.840
run my monolithic application.

00:06:23.840 --> 00:06:26.880
Like for me serverless is like a way

00:06:26.880 --> 00:06:30.000
better uh ECS

00:06:30.000 --> 00:06:33.120
But of course that doesn't work. I guess

00:06:33.120 --> 00:06:34.880
that is the crux of the problem with

00:06:34.880 --> 00:06:36.560
with lambda because yeah you can get

00:06:36.560 --> 00:06:39.120
chaining, you can get uh distributed

00:06:39.120 --> 00:06:41.600
systems, you can get microservices,

00:06:41.600 --> 00:06:42.960
you can get all sorts of things with

00:06:42.960 --> 00:06:45.039
lambda and then of course the complexity

00:06:45.039 --> 00:06:46.880
explodes.

00:06:46.880 --> 00:06:49.280
>> That's right. And the complexity

00:06:49.280 --> 00:06:52.560
explodes not only just because of how

00:06:52.560 --> 00:06:54.639
your business logic gets like trickled

00:06:54.639 --> 00:06:56.960
down across all of your cloud resources

00:06:56.960 --> 00:06:59.039
um but also because of how these cloud

00:06:59.039 --> 00:07:01.360
resources are spread across different

00:07:01.360 --> 00:07:02.880
services of the cloud provider. For

00:07:02.880 --> 00:07:05.440
example in AWS you have a cloudatch

00:07:05.440 --> 00:07:07.680
service you have a uh where you define

00:07:07.680 --> 00:07:08.880
your logging groups and then your

00:07:08.880 --> 00:07:10.080
permissions of your lambda must be

00:07:10.080 --> 00:07:11.599
configured to write to those logging

00:07:11.599 --> 00:07:13.120
groups. So that's an integration between

00:07:13.120 --> 00:07:14.960
two different services. you have your S3

00:07:14.960 --> 00:07:16.000
bucket where you have to have your

00:07:16.000 --> 00:07:18.400
lambda notification like settings done

00:07:18.400 --> 00:07:19.919
or you use event bridge where you have

00:07:19.919 --> 00:07:21.599
to have like event bridge rules that

00:07:21.599 --> 00:07:23.599
then need to be capturing the right

00:07:23.599 --> 00:07:25.440
event fields that you want to propagate

00:07:25.440 --> 00:07:27.919
towards the lambdas. So the main problem

00:07:27.919 --> 00:07:29.759
is the integration across the different

00:07:29.759 --> 00:07:32.240
services and you know how to bind them

00:07:32.240 --> 00:07:35.440
together and that's where AWS does like

00:07:35.440 --> 00:07:36.479
solves it really well

00:07:36.479 --> 00:07:40.080
>> but lambda and cloudatch should be a uh

00:07:40.080 --> 00:07:42.479
what do you call it a fixed pattern or

00:07:42.479 --> 00:07:45.360
something like that

00:07:45.360 --> 00:07:47.680
>> it changes a lot and and and it's funny

00:07:47.680 --> 00:07:49.759
because sometimes

00:07:49.759 --> 00:07:52.479
it could be very simple like you have a

00:07:52.479 --> 00:07:55.680
situation where you want a lambda to be

00:07:55.680 --> 00:07:57.440
triggered on an event bridge rule and

00:07:57.440 --> 00:07:59.840
you can simply go to the lambda and say

00:07:59.840 --> 00:08:02.479
async config and then say on success and

00:08:02.479 --> 00:08:04.160
then it will you know trigger another

00:08:04.160 --> 00:08:06.400
lambda or something else right and if

00:08:06.400 --> 00:08:07.919
you do a very simple like lambda

00:08:07.919 --> 00:08:09.520
chaining and you can do that directly on

00:08:09.520 --> 00:08:12.000
the lambda resource it works until you

00:08:12.000 --> 00:08:13.759
have a use case and that's a very fixed

00:08:13.759 --> 00:08:15.360
pattern but then you have a use case

00:08:15.360 --> 00:08:17.520
where now when the lambda success

00:08:17.520 --> 00:08:19.759
happens you want to extract some field

00:08:19.759 --> 00:08:22.319
from the um success event like you need

00:08:22.319 --> 00:08:26.160
to get the actual um I don't know result

00:08:26.160 --> 00:08:28.400
field from the ext JSON of that success

00:08:28.400 --> 00:08:31.039
event and you want to get the extract

00:08:31.039 --> 00:08:33.360
the payload like extract a certain

00:08:33.360 --> 00:08:35.599
payload then suddenly you can't do that

00:08:35.599 --> 00:08:37.519
with async evoke that's not possible

00:08:37.519 --> 00:08:39.279
with the way that the the lambda API

00:08:39.279 --> 00:08:40.959
works and you must use event bridge

00:08:40.959 --> 00:08:43.279
rules so you're very use like very

00:08:43.279 --> 00:08:45.839
simple pattern of like integrating two

00:08:45.839 --> 00:08:47.120
things together which should always be

00:08:47.120 --> 00:08:49.120
the same thing no longer works because

00:08:49.120 --> 00:08:50.640
now you have an event bridge rules that

00:08:50.640 --> 00:08:53.040
like match messes up your whole like

00:08:53.040 --> 00:08:55.680
situation because you need to parse the

00:08:55.680 --> 00:08:58.080
payload of the event and get out one

00:08:58.080 --> 00:09:00.240
field. And that's an example that I

00:09:00.240 --> 00:09:02.959
learned because I wrote a library to to

00:09:02.959 --> 00:09:06.000
implement um these integration patterns

00:09:06.000 --> 00:09:08.720
from AWS CDK on top of Terraform. And so

00:09:08.720 --> 00:09:11.040
I saw that like this is very this is an

00:09:11.040 --> 00:09:12.720
integration test actually that they have

00:09:12.720 --> 00:09:15.760
on their Lambda function integration. Um

00:09:15.760 --> 00:09:16.720
>> okay. Okay.

00:09:16.720 --> 00:09:17.440
>> Yeah. So

00:09:17.440 --> 00:09:19.760
>> I can show you the the actual running

00:09:19.760 --> 00:09:20.800
code for that.

00:09:20.800 --> 00:09:22.959
>> Okay. So so you're just showing some

00:09:22.959 --> 00:09:25.120
Lambda REST API. That's actually quite

00:09:25.120 --> 00:09:28.320
interesting because uh we we we use that

00:09:28.320 --> 00:09:30.000
a lot at work.

00:09:30.000 --> 00:09:32.399
>> Yeah. So so that's where the reality of

00:09:32.399 --> 00:09:34.480
the cloud today is that people are using

00:09:34.480 --> 00:09:36.720
these type of patterns more and more and

00:09:36.720 --> 00:09:38.800
and that's also because you want to you

00:09:38.800 --> 00:09:40.560
know leverage the cloud to accelerate

00:09:40.560 --> 00:09:42.640
your business feature delivery. So you

00:09:42.640 --> 00:09:46.240
can't be like completely decoupled from

00:09:46.240 --> 00:09:47.680
the cloud. You start to be really

00:09:47.680 --> 00:09:49.200
ingrained and integrated with the cloud

00:09:49.200 --> 00:09:51.200
features. Even though a lot of original

00:09:51.200 --> 00:09:52.640
cloud adoption was like we want to be

00:09:52.640 --> 00:09:55.040
cloud agnostic, Kubernetes is great. The

00:09:55.040 --> 00:09:57.040
reality is even if you use Kubernetes,

00:09:57.040 --> 00:09:58.240
you're going to have a whole bunch of

00:09:58.240 --> 00:10:01.120
custom resources just for AWS um to use

00:10:01.120 --> 00:10:03.040
to to to integrate with the cloud that

00:10:03.040 --> 00:10:05.600
you run. at at work we we love to use

00:10:05.600 --> 00:10:08.720
the lambda rest API because because it

00:10:08.720 --> 00:10:11.440
integrates with IM and then IM is the

00:10:11.440 --> 00:10:15.440
way that we uh uh mediate govern uh

00:10:15.440 --> 00:10:18.560
different APIs between different uh

00:10:18.560 --> 00:10:20.880
teams and stuff and a lot of the things

00:10:20.880 --> 00:10:24.000
in AWS is like the benefits is that

00:10:24.000 --> 00:10:26.079
tight integration between services right

00:10:26.079 --> 00:10:28.560
because like you just said IM is is a is

00:10:28.560 --> 00:10:31.279
a really nice way to control permissions

00:10:31.279 --> 00:10:33.360
across all of across all of for

00:10:33.360 --> 00:10:37.839
resources. Um, and so yeah, but I I

00:10:37.839 --> 00:10:40.160
pulled this up because this is kind of a

00:10:40.160 --> 00:10:42.160
nice example and this is a great example

00:10:42.160 --> 00:10:43.600
from originally when they released the

00:10:43.600 --> 00:10:47.200
AWS CDK workshop um in how it simplifies

00:10:47.200 --> 00:10:48.720
like try to imagine how you would do

00:10:48.720 --> 00:10:50.320
this with terapform modules. You're

00:10:50.320 --> 00:10:51.839
creating a function,

00:10:51.839 --> 00:10:54.000
>> right? And and you're specifying here is

00:10:54.000 --> 00:10:55.519
something very special already which is

00:10:55.519 --> 00:10:57.600
the from asset. So this is actually

00:10:57.600 --> 00:10:58.320
going to

00:10:58.320 --> 00:11:00.000
>> this is a whole asset pipeline built in

00:11:00.000 --> 00:11:01.519
right in there. It's going to take care

00:11:01.519 --> 00:11:03.519
of bundling the code, you know, putting

00:11:03.519 --> 00:11:05.120
it in S3, making sure that the lambda

00:11:05.120 --> 00:11:06.560
can pick it up or you can, you know,

00:11:06.560 --> 00:11:08.320
directly put the code in line. That's

00:11:08.320 --> 00:11:10.480
something that you cannot imagine how to

00:11:10.480 --> 00:11:11.839
build this with Terraform modules,

00:11:11.839 --> 00:11:13.600
right? I mean, I know that there's an

00:11:13.600 --> 00:11:16.320
attempt serverless.tf

00:11:16.320 --> 00:11:19.440
to do this, but I mean, it's just it's

00:11:19.440 --> 00:11:22.480
just a mistake and I'm sorry because I

00:11:22.480 --> 00:11:24.800
know the people behind this uh and I try

00:11:24.800 --> 00:11:28.320
to to to explain that, but yeah, they

00:11:28.320 --> 00:11:29.760
have, you know, this their projects at

00:11:29.760 --> 00:11:32.240
PET. So uh so anyway yeah so this whole

00:11:32.240 --> 00:11:33.600
this one line already is an asset

00:11:33.600 --> 00:11:35.440
pipeline and then this one right here

00:11:35.440 --> 00:11:37.600
the lambda rest API is a special rest

00:11:37.600 --> 00:11:39.680
API so this is object-oriented

00:11:39.680 --> 00:11:41.040
programming and it's it's like an

00:11:41.040 --> 00:11:43.120
extension it's just not a rest API it's

00:11:43.120 --> 00:11:45.440
a lambda rest API that understands the

00:11:45.440 --> 00:11:47.760
concept of a handler that is backed by a

00:11:47.760 --> 00:11:50.079
function so this handler must implement

00:11:50.079 --> 00:11:52.320
the function interface and then it knows

00:11:52.320 --> 00:11:54.399
how to bind and automatically create the

00:11:54.399 --> 00:11:57.519
the API gateway integration and back end

00:11:57.519 --> 00:11:59.120
lender call right

00:11:59.120 --> 00:12:01.120
>> yeah So, so, so just these lines

00:12:01.120 --> 00:12:02.800
already. Um,

00:12:02.800 --> 00:12:05.680
>> and you get all the LSP, you know, what

00:12:05.680 --> 00:12:07.680
do you call it? Checking to make sure

00:12:07.680 --> 00:12:09.600
that everything's there.

00:12:09.600 --> 00:12:11.680
>> So, because this is an actual

00:12:11.680 --> 00:12:13.519
programming language with enums and and

00:12:13.519 --> 00:12:16.880
TypeScript is specifically built to add

00:12:16.880 --> 00:12:19.519
typing on top of a non-type language

00:12:19.519 --> 00:12:20.959
like JavaScript. So, it has a lot of

00:12:20.959 --> 00:12:22.959
functionality to to inspect the type

00:12:22.959 --> 00:12:25.440
schema and to to really be strong around

00:12:25.440 --> 00:12:27.920
your typing. So you do get like indeed

00:12:27.920 --> 00:12:30.000
like the from asset then it will the

00:12:30.000 --> 00:12:31.920
handler with the I function and it's

00:12:31.920 --> 00:12:33.120
strongly typed right.

00:12:33.120 --> 00:12:35.120
>> Okay. So I I'm I think I know where

00:12:35.120 --> 00:12:36.399
you're going with this. So you're not

00:12:36.399 --> 00:12:38.320
talking just about primitive typing.

00:12:38.320 --> 00:12:40.480
You're talking about like fun function

00:12:40.480 --> 00:12:42.720
typing and such and so forth. I'm not

00:12:42.720 --> 00:12:45.279
sure if that's the right terminology.

00:12:45.279 --> 00:12:47.120
>> I'm also not sure about the terminology.

00:12:47.120 --> 00:12:49.360
But what I'm trying to say is that if

00:12:49.360 --> 00:12:51.120
you have the telephone provider you're

00:12:51.120 --> 00:12:52.320
going to have a string. You say it's

00:12:52.320 --> 00:12:54.240
very strongly typed, but yeah,

00:12:54.240 --> 00:12:55.839
>> string has only like three possible

00:12:55.839 --> 00:12:57.600
values. And when I'm building my

00:12:57.600 --> 00:12:59.440
library, I'm actually have to go to the

00:12:59.440 --> 00:13:03.600
EC2 or the Alumba um you know API docs

00:13:03.600 --> 00:13:05.200
to figure out what are the valid values

00:13:05.200 --> 00:13:07.440
because that's nowhere in Terraform,

00:13:07.440 --> 00:13:10.079
>> right? And and they they they can't

00:13:10.079 --> 00:13:12.320
really because they they need to cover

00:13:12.320 --> 00:13:14.000
so many AWS services. It's manually

00:13:14.000 --> 00:13:15.920
written as well. And I'm still relying

00:13:15.920 --> 00:13:18.959
on the Terapform provider AWS except I'm

00:13:18.959 --> 00:13:21.279
building the CDK library on top of it.

00:13:21.279 --> 00:13:23.920
So, so this is the example from AWS CDK,

00:13:23.920 --> 00:13:25.200
but now it's running on top of

00:13:25.200 --> 00:13:27.760
terraform, right? So, I have the same

00:13:27.760 --> 00:13:29.040
things. I have the code, the lambda

00:13:29.040 --> 00:13:31.760
function, the lambda rest API. Um, for

00:13:31.760 --> 00:13:33.200
some reason, I didn't call it function.

00:13:33.200 --> 00:13:35.200
I called it lambda function. And that's

00:13:35.200 --> 00:13:37.440
because I put everything under under one

00:13:37.440 --> 00:13:39.120
name space. I put it all under AWS

00:13:39.120 --> 00:13:41.279
compute, which maybe was a mistake, but

00:13:41.279 --> 00:13:44.079
okay. Uh, and then I have the AWS asset

00:13:44.079 --> 00:13:46.160
like the stack, the AWS stack, which is

00:13:46.160 --> 00:13:49.120
a um extension of the classic Terraform

00:13:49.120 --> 00:13:50.880
stack. This is a stack that understands

00:13:50.880 --> 00:13:53.200
about AWS asset pipelines. So it knows

00:13:53.200 --> 00:13:55.680
about ECR. It knows about S3. So it

00:13:55.680 --> 00:13:57.360
knows that if you use and that's

00:13:57.360 --> 00:14:00.560
necessary because when you use AWS CDK

00:14:00.560 --> 00:14:02.720
it's built on top of AWS. It's built on

00:14:02.720 --> 00:14:05.120
top of cloud form. So it has the ID of

00:14:05.120 --> 00:14:06.959
asset pipeline and things like that. So

00:14:06.959 --> 00:14:08.639
if I want to do this code from asset

00:14:08.639 --> 00:14:11.839
here, I actually am building if I

00:14:11.839 --> 00:14:13.199
synthesize this

00:14:13.199 --> 00:14:17.120
>> I I actually have the S3 bucket. If I

00:14:17.120 --> 00:14:18.959
don't pass in the bucket to the the

00:14:18.959 --> 00:14:20.959
stack, it will create a bucket for me

00:14:20.959 --> 00:14:24.240
and it will automatically upload my uh

00:14:24.240 --> 00:14:26.720
lambda source code bundled up and put it

00:14:26.720 --> 00:14:28.480
straight into my S3 bucket. Now some

00:14:28.480 --> 00:14:30.000
people when you are doing terraform

00:14:30.000 --> 00:14:31.920
they'd be like no your your code

00:14:31.920 --> 00:14:33.519
delivery must be decoupled right on one

00:14:33.519 --> 00:14:35.519
side terraform stand up the the skeleton

00:14:35.519 --> 00:14:36.959
and on the other side you have your

00:14:36.959 --> 00:14:38.720
actual code that needs to be built and

00:14:38.720 --> 00:14:40.560
and deployed. But when you're in the

00:14:40.560 --> 00:14:43.120
serverless world the resources and your

00:14:43.120 --> 00:14:45.040
actual business logic are very tightly

00:14:45.040 --> 00:14:48.079
coupled. That's so true. That's so true.

00:14:48.079 --> 00:14:50.560
So I think the next question in my brain

00:14:50.560 --> 00:14:52.880
was that okay you create a bucket for

00:14:52.880 --> 00:14:55.760
the for the sourcing your your

00:14:55.760 --> 00:14:57.680
application code but like what happens

00:14:57.680 --> 00:15:01.199
when you destroy that with the bucket go

00:15:01.199 --> 00:15:03.279
>> uh or yes or do

00:15:03.279 --> 00:15:05.519
>> so this is your terraform under the hood

00:15:05.519 --> 00:15:08.720
right um there is yeah the the terraform

00:15:08.720 --> 00:15:11.519
call because the bucket is the object is

00:15:11.519 --> 00:15:13.760
also managed by terraform so terapform

00:15:13.760 --> 00:15:15.920
will first delete the object then if the

00:15:15.920 --> 00:15:18.079
buck then it will delete the bucket AWS

00:15:18.079 --> 00:15:19.360
will prevent that

00:15:19.360 --> 00:15:21.279
>> if there's still some some objects

00:15:21.279 --> 00:15:23.279
inside then it will not allow it.

00:15:23.279 --> 00:15:25.040
>> Okay. So, so you're saying that

00:15:25.040 --> 00:15:27.519
Terraform will completely handle all the

00:15:27.519 --> 00:15:30.320
objects inside there I suppose.

00:15:30.320 --> 00:15:32.720
>> Yeah. So, so this is purely translating

00:15:32.720 --> 00:15:35.839
the AWS CDK on a deep deep level

00:15:35.839 --> 00:15:37.920
directly to Terraform resources and not

00:15:37.920 --> 00:15:39.519
just any resources but the actual

00:15:39.519 --> 00:15:41.839
Terraform provider AWS resources. That

00:15:41.839 --> 00:15:43.199
means that all of your existing like

00:15:43.199 --> 00:15:45.519
terraform linting um you know code code

00:15:45.519 --> 00:15:47.360
scanning everything still works. Cool.

00:15:47.360 --> 00:15:48.560
And then and then another question

00:15:48.560 --> 00:15:52.639
because uh C CDK I believe has this

00:15:52.639 --> 00:15:54.959
bootstrap uh functionality where it does

00:15:54.959 --> 00:15:57.600
create its own bucket for the stack up

00:15:57.600 --> 00:15:58.480
>> right.

00:15:58.480 --> 00:16:01.360
>> Yeah. So I don't I don't do that. Um no

00:16:01.360 --> 00:16:04.079
my AWS stack has like a it's called like

00:16:04.079 --> 00:16:06.079
a singleton pattern. It will create an

00:16:06.079 --> 00:16:08.720
S3 bucket if it's necessary. You can

00:16:08.720 --> 00:16:10.959
pass it in directly to the AWS stack as

00:16:10.959 --> 00:16:13.759
u stack as well. So when you invoke this

00:16:13.759 --> 00:16:15.759
like my CDK workshops tag when I call

00:16:15.759 --> 00:16:18.399
the constructor if I in the constructor

00:16:18.399 --> 00:16:20.639
properties pass in my own bucket then it

00:16:20.639 --> 00:16:22.240
will take that one right

00:16:22.240 --> 00:16:23.600
>> this is again

00:16:23.600 --> 00:16:27.120
>> the power of actual you know I mean a

00:16:27.120 --> 00:16:28.560
lot of people hate on object-oriented

00:16:28.560 --> 00:16:30.560
programming but the ability to define

00:16:30.560 --> 00:16:32.320
like to use the basic object of a

00:16:32.320 --> 00:16:33.920
terapform stack and then extend it with

00:16:33.920 --> 00:16:35.680
functionality just reuse the constructor

00:16:35.680 --> 00:16:37.759
and have this capabilities built in

00:16:37.759 --> 00:16:39.680
makes it so much nicer like you can't

00:16:39.680 --> 00:16:41.040
really do that with terapform modules or

00:16:41.040 --> 00:16:42.560
like bundling terapform models on top of

00:16:42.560 --> 00:16:43.279
each other. Right.

00:16:43.279 --> 00:16:45.440
>> Right. Right. But like Okay. So if you

00:16:45.440 --> 00:16:49.279
had the option to use the CDK bootstrap,

00:16:49.279 --> 00:16:51.040
you didn't that's obviously just not a

00:16:51.040 --> 00:16:52.880
default here like by default.

00:16:52.880 --> 00:16:54.560
>> Yeah. No, the CDK bootstrap does a lot.

00:16:54.560 --> 00:16:57.600
And the actual asset pipeline from AWS

00:16:57.600 --> 00:17:00.800
CDK is built into the CDK CLI. So it's

00:17:00.800 --> 00:17:04.240
not a cloud for thing. The AWS CDK CLI

00:17:04.240 --> 00:17:08.799
has the idea of uh bundling code and um

00:17:08.799 --> 00:17:10.559
putting it into a staging directory and

00:17:10.559 --> 00:17:12.640
then preparing a manifest of what is

00:17:12.640 --> 00:17:14.000
inside the staging directory that needs

00:17:14.000 --> 00:17:15.760
to go into S3, what needs to go into

00:17:15.760 --> 00:17:18.400
ECR. So that's what the CLI does.

00:17:18.400 --> 00:17:20.160
Terraform kind of like worked around

00:17:20.160 --> 00:17:22.240
that by providing special provider

00:17:22.240 --> 00:17:24.319
functions. So it doesn't like Terraform

00:17:24.319 --> 00:17:25.839
doesn't understand or doesn't care about

00:17:25.839 --> 00:17:28.000
AWS asset pipeline, right? But you do

00:17:28.000 --> 00:17:29.600
have the ability to create like use a

00:17:29.600 --> 00:17:31.840
terapform provider to create an S3

00:17:31.840 --> 00:17:34.240
bucket and upload an S3 object. So I'm

00:17:34.240 --> 00:17:36.480
kind of offloading that asset pipeline

00:17:36.480 --> 00:17:38.640
to native Terapform provider

00:17:38.640 --> 00:17:40.720
capabilities which I'm not sure if it's

00:17:40.720 --> 00:17:42.320
the best way but it does allow me to

00:17:42.320 --> 00:17:44.080
like hand off the life cycle completely

00:17:44.080 --> 00:17:45.440
to Terraform

00:17:45.440 --> 00:17:46.640
>> the way that it does.

00:17:46.640 --> 00:17:46.960
>> Yeah.

00:17:46.960 --> 00:17:47.840
>> Okay.

00:17:47.840 --> 00:17:49.120
>> Those are all conscious decisions as

00:17:49.120 --> 00:17:49.360
well.

00:17:49.360 --> 00:17:51.200
>> There's a there's a lot of details in

00:17:51.200 --> 00:17:54.240
here too. So so say a company's using

00:17:54.240 --> 00:17:56.240
CDK. Um,

00:17:56.240 --> 00:17:58.240
>> but let's be honest, I think we talked

00:17:58.240 --> 00:18:01.440
about this before. CDK got there um is

00:18:01.440 --> 00:18:03.760
great, but it it's only 80% of the way

00:18:03.760 --> 00:18:06.720
there. Like it and and correct me if I'm

00:18:06.720 --> 00:18:09.840
wrong, like this the support from CDK on

00:18:09.840 --> 00:18:12.799
the AWS side seems a bit weak right at

00:18:12.799 --> 00:18:14.559
the moment or do you think they'll come

00:18:14.559 --> 00:18:16.559
back into it or like what?

00:18:16.559 --> 00:18:18.160
>> So that's interesting to hear. Um

00:18:18.160 --> 00:18:20.799
>> I'm trying to I'm trying to like map the

00:18:20.799 --> 00:18:23.360
future of CDK

00:18:23.360 --> 00:18:27.120
>> for me is a pivotal tool for or

00:18:27.120 --> 00:18:29.039
developer tooling for AWS to hear that

00:18:29.039 --> 00:18:31.039
they I know that they've withdrawn some

00:18:31.039 --> 00:18:33.360
of the stuff um but they are still

00:18:33.360 --> 00:18:35.120
actively developing it like they they

00:18:35.120 --> 00:18:38.400
added the C the CDK refactoring for

00:18:38.400 --> 00:18:41.039
refactoring stacks across was integrated

00:18:41.039 --> 00:18:42.720
directly I mean the cloud formation

00:18:42.720 --> 00:18:44.480
refactoring feature was was integrated

00:18:44.480 --> 00:18:46.160
completely into the CDK. You can

00:18:46.160 --> 00:18:48.880
refactor stacks now through the CDK CLI.

00:18:48.880 --> 00:18:51.679
They added an API or like a programmatic

00:18:51.679 --> 00:18:53.919
way to call the AWS CDK as well. So they

00:18:53.919 --> 00:18:55.440
are developing and adding more features.

00:18:55.440 --> 00:18:56.720
>> Okay. So what does what is sorry what

00:18:56.720 --> 00:18:59.200
does refactoring actually mean in in the

00:18:59.200 --> 00:19:00.559
in CDK?

00:19:00.559 --> 00:19:01.760
>> Yeah. So in the in the world of

00:19:01.760 --> 00:19:03.200
Terraform or in the world of

00:19:03.200 --> 00:19:04.640
infrastructure as code, the moment you

00:19:04.640 --> 00:19:06.799
that you start treating your AWS

00:19:06.799 --> 00:19:10.320
resources as code, um you must be able

00:19:10.320 --> 00:19:12.240
to do things that are you know very

00:19:12.240 --> 00:19:13.919
common with code. And I can give you an

00:19:13.919 --> 00:19:16.240
example for you may start with one

00:19:16.240 --> 00:19:17.919
project and you create a network and you

00:19:17.919 --> 00:19:19.600
create a database and you create a

00:19:19.600 --> 00:19:21.039
cluster or you create something like

00:19:21.039 --> 00:19:22.720
that and then you deploy your web

00:19:22.720 --> 00:19:24.080
application. You're running a whole

00:19:24.080 --> 00:19:26.480
Kubernetes cluster for your blog, right?

00:19:26.480 --> 00:19:29.280
I'm just kidding. H but then you decide

00:19:29.280 --> 00:19:31.039
that you know you need to start a second

00:19:31.039 --> 00:19:33.200
project and you don't want project two

00:19:33.200 --> 00:19:35.120
to completely depend on all the all of

00:19:35.120 --> 00:19:36.559
the resources that belong to project

00:19:36.559 --> 00:19:37.919
one, right? because one day maybe you

00:19:37.919 --> 00:19:39.760
want to deprecate project one and you

00:19:39.760 --> 00:19:42.000
want to um you know get rid of it and

00:19:42.000 --> 00:19:43.919
then project two depends on half of the

00:19:43.919 --> 00:19:46.640
resources. So at that point you must

00:19:46.640 --> 00:19:48.720
move those shared resources maybe to a

00:19:48.720 --> 00:19:51.360
shared layer or a shared ownership. So

00:19:51.360 --> 00:19:53.039
maybe there becomes a platform team to

00:19:53.039 --> 00:19:54.400
maintain the the network and the

00:19:54.400 --> 00:19:56.320
kubernetes cluster and then you have the

00:19:56.320 --> 00:19:58.240
different product teams that deploy on

00:19:58.240 --> 00:20:00.400
top of it and integrate within it. So

00:20:00.400 --> 00:20:02.400
you asked me what re what refactoring

00:20:02.400 --> 00:20:04.320
was, right? And I just said that I think

00:20:04.320 --> 00:20:06.320
refactoring is a very central part of

00:20:06.320 --> 00:20:06.799
infrastructure.

00:20:06.799 --> 00:20:10.000
>> Okay, I I got that. So okay, I for some

00:20:10.000 --> 00:20:12.160
reason I had I think you we were talking

00:20:12.160 --> 00:20:13.760
about it a couple of weeks ago that like

00:20:13.760 --> 00:20:16.880
you know the CDK the original AWS CDK

00:20:16.880 --> 00:20:19.600
team um I can't remember the the name of

00:20:19.600 --> 00:20:21.840
the guy who who Israel. Yeah.

00:20:21.840 --> 00:20:25.280
>> Yeah. He went on to to do wing lang but

00:20:25.280 --> 00:20:27.520
that didn't that didn't fly

00:20:27.520 --> 00:20:29.120
>> reasons about it. A lot of the comments

00:20:29.120 --> 00:20:31.600
I saw was it's too early. Um people are

00:20:31.600 --> 00:20:32.799
not ready for this.

00:20:32.799 --> 00:20:37.360
>> I I never really got into it. Um um

00:20:37.360 --> 00:20:39.280
though, yeah. So in my mind, I thought

00:20:39.280 --> 00:20:42.080
to myself, okay, so CDK doesn't have its

00:20:42.080 --> 00:20:44.960
uh you know, BNFL.

00:20:44.960 --> 00:20:46.720
Is that the right word? I don't know. It

00:20:46.720 --> 00:20:49.200
doesn't have its uh have a direction

00:20:49.200 --> 00:20:51.919
now. Uh so um and

00:20:51.919 --> 00:20:53.679
>> I know that a lot of the original core

00:20:53.679 --> 00:20:56.720
members have moved on but there's still

00:20:56.720 --> 00:20:58.880
a very large community and I think most

00:20:58.880 --> 00:21:01.679
of the projects I know that AWS uses it

00:21:01.679 --> 00:21:03.520
heavily internally like half the time

00:21:03.520 --> 00:21:05.600
when I look at like progen or

00:21:05.600 --> 00:21:08.880
bootstrapping or for example the PDK um

00:21:08.880 --> 00:21:10.640
kit

00:21:10.640 --> 00:21:13.039
>> okay so they're using it um

00:21:13.039 --> 00:21:14.720
>> when I look at the features and the

00:21:14.720 --> 00:21:17.039
issues the GitHub issues I see people I

00:21:17.039 --> 00:21:18.960
work at this service team at AWS and we

00:21:18.960 --> 00:21:20.240
have this problem and this is how this

00:21:20.240 --> 00:21:20.640
would help.

00:21:20.640 --> 00:21:24.159
>> AWS project to make it. What is that?

00:21:24.159 --> 00:21:27.679
>> Oh, this is an a really cool um

00:21:27.679 --> 00:21:30.480
what I like about this is that it

00:21:30.480 --> 00:21:33.520
includes like highle graph generation

00:21:33.520 --> 00:21:35.280
and which is another thing that I I

00:21:35.280 --> 00:21:37.440
believe is something that Terraform is

00:21:37.440 --> 00:21:39.200
horrible at and also because of the way

00:21:39.200 --> 00:21:40.480
that Terraform modules work.

00:21:40.480 --> 00:21:43.440
>> You can generate diagrams from CDK.

00:21:43.440 --> 00:21:45.679
>> Yeah. So there is a project called CDK

00:21:45.679 --> 00:21:48.400
DIA and and the thing is because you

00:21:48.400 --> 00:21:50.960
know how these objects these constructs

00:21:50.960 --> 00:21:52.960
they they they contain like a lot of

00:21:52.960 --> 00:21:56.240
highle uh like intent and and meaning

00:21:56.240 --> 00:21:59.039
right so they actually capture what they

00:21:59.039 --> 00:22:00.720
represent. So you can pres represent

00:22:00.720 --> 00:22:04.240
those in into logos nicely in here.

00:22:04.240 --> 00:22:06.720
>> Wow I can decorate your constructs.

00:22:06.720 --> 00:22:10.320
>> I need this at work. Wow. uh but but

00:22:10.320 --> 00:22:11.919
>> so there's an I inspectable interface

00:22:11.919 --> 00:22:13.919
that you need you can implement to to

00:22:13.919 --> 00:22:15.440
basically say how you want your

00:22:15.440 --> 00:22:18.240
construct to be shown on the diagram

00:22:18.240 --> 00:22:19.760
which you can't even imagine to do

00:22:19.760 --> 00:22:22.480
something like that with terraform

00:22:22.480 --> 00:22:25.840
>> this is fascinating so so so basically

00:22:25.840 --> 00:22:28.400
this PDK is is some

00:22:28.400 --> 00:22:30.400
>> not just that it it has thread like

00:22:30.400 --> 00:22:32.559
plug-in thread composer it's integrated

00:22:32.559 --> 00:22:35.200
with cloudscape react ts website so you

00:22:35.200 --> 00:22:38.559
can you know build a their design system

00:22:38.559 --> 00:22:41.200
setup up cloud cloudfront um you know do

00:22:41.200 --> 00:22:42.799
your CDN um

00:22:42.799 --> 00:22:44.159
>> what the hell does cloudscape react

00:22:44.159 --> 00:22:45.200
supposed to mean

00:22:45.200 --> 00:22:48.159
>> it's a system design um sorry not system

00:22:48.159 --> 00:22:50.640
design it's a design system from AWS

00:22:50.640 --> 00:22:52.080
that's how they build their dashboards

00:22:52.080 --> 00:22:53.120
and their components

00:22:53.120 --> 00:22:53.760
>> oh interesting

00:22:53.760 --> 00:22:55.600
>> as far as I understood cloudscape

00:22:55.600 --> 00:22:57.760
>> okay so okay so CDK still has a lot of

00:22:57.760 --> 00:22:59.760
buying because I mean sorry like

00:22:59.760 --> 00:23:01.679
>> I'm telling you it's a whole world and

00:23:01.679 --> 00:23:02.400
and

00:23:02.400 --> 00:23:07.280
>> because I I I mean yeah to be honest at

00:23:07.280 --> 00:23:11.520
work clients are for example this client

00:23:11.520 --> 00:23:12.880
I'm working with

00:23:12.880 --> 00:23:16.080
>> has been using CDK and to be honest

00:23:16.080 --> 00:23:18.720
>> it's been fine I mean I I can get behind

00:23:18.720 --> 00:23:21.200
it there's some quality of things that I

00:23:21.200 --> 00:23:23.039
hate about CDK like it doesn't seem to

00:23:23.039 --> 00:23:26.240
be able to plan

00:23:26.240 --> 00:23:27.919
>> so that's why Terra constructs would be

00:23:27.919 --> 00:23:29.280
great

00:23:29.280 --> 00:23:34.559
>> yeah uh so um but besides that um one of

00:23:34.559 --> 00:23:36.880
the one of the technologies that they

00:23:36.880 --> 00:23:39.919
bought bought into is a is a database

00:23:39.919 --> 00:23:43.360
and the the only official uh

00:23:43.360 --> 00:23:44.240
>> provider is

00:23:44.240 --> 00:23:46.000
>> provider is terraform. So they're

00:23:46.000 --> 00:23:46.799
basically

00:23:46.799 --> 00:23:48.559
>> those are all cloud form limitations.

00:23:48.559 --> 00:23:50.880
>> So basically they're stuck because they

00:23:50.880 --> 00:23:52.240
have to they have to start using

00:23:52.240 --> 00:23:54.320
terraform. So at the moment their

00:23:54.320 --> 00:23:57.120
pipeline like looks like you know CDK

00:23:57.120 --> 00:23:59.679
deploy and then do your Terraform um

00:23:59.679 --> 00:24:03.200
applying cool beans but but of course

00:24:03.200 --> 00:24:05.840
the question in my mind is like okay we

00:24:05.840 --> 00:24:08.559
can't just keep on using CDK and keep uh

00:24:08.559 --> 00:24:11.200
and then and then use Terraform as a

00:24:11.200 --> 00:24:14.000
baseline. We have to think about like

00:24:14.000 --> 00:24:15.039
>> aligning things.

00:24:15.039 --> 00:24:19.039
>> Yeah, aligning things. So, so I and

00:24:19.039 --> 00:24:20.880
yeah, we talked about it before, I'm

00:24:20.880 --> 00:24:23.279
sure, but like I think Terraform is the

00:24:23.279 --> 00:24:25.919
the de facto winner of the day when it

00:24:25.919 --> 00:24:28.960
comes to IA probably for the next god

00:24:28.960 --> 00:24:30.400
knows how many years

00:24:30.400 --> 00:24:32.720
>> mainly due to adoption.

00:24:32.720 --> 00:24:33.760
>> Yeah. Um

00:24:33.760 --> 00:24:35.600
>> yeah so

00:24:35.600 --> 00:24:38.400
>> I say that and yeah so so where does CDK

00:24:38.400 --> 00:24:41.279
fit in with this the fact that Terraform

00:24:41.279 --> 00:24:43.440
is is definitely not going away

00:24:43.440 --> 00:24:45.760
>> and it's got that sort of mind share uh

00:24:45.760 --> 00:24:46.320
you know

00:24:46.320 --> 00:24:48.799
>> so at some organizations I worked

00:24:48.799 --> 00:24:50.720
>> the expectation was that the team

00:24:50.720 --> 00:24:52.799
decides what they want to use if they

00:24:52.799 --> 00:24:54.799
want to use CDK they can the platform

00:24:54.799 --> 00:24:57.120
team had three years of platform team

00:24:57.120 --> 00:25:00.240
stuff so we were bootstrapping VPCs EKS

00:25:00.240 --> 00:25:02.880
clusters everything with with Terraform

00:25:02.880 --> 00:25:04.480
And so we just had to provide

00:25:04.480 --> 00:25:06.960
integration points that is kind of

00:25:06.960 --> 00:25:10.240
painful for um because you now have to

00:25:10.240 --> 00:25:11.600
deal with like different execution

00:25:11.600 --> 00:25:13.360
engines you know cloud formation and so

00:25:13.360 --> 00:25:15.600
on. It can work if the team takes full

00:25:15.600 --> 00:25:19.600
ownership of their CDK stack. Um but the

00:25:19.600 --> 00:25:21.760
moment yeah I've also had experiences

00:25:21.760 --> 00:25:23.279
where a team has full ownership on their

00:25:23.279 --> 00:25:25.120
stack and then half the team leaves and

00:25:25.120 --> 00:25:27.120
one guy is left to maintain it and he

00:25:27.120 --> 00:25:29.120
was supposed to like work on really cool

00:25:29.120 --> 00:25:30.960
data engineering stuff and now he has to

00:25:30.960 --> 00:25:32.960
maintain an airflow cluster and he hates

00:25:32.960 --> 00:25:36.000
it. This sounds very accurate like too

00:25:36.000 --> 00:25:37.440
many details like where does that come

00:25:37.440 --> 00:25:38.159
from?

00:25:38.159 --> 00:25:39.600
>> Yeah. Uh I know what you mean with

00:25:39.600 --> 00:25:42.720
airflow. I mean the whole MWA airflow

00:25:42.720 --> 00:25:44.480
3.0 I don't know if you know about that.

00:25:44.480 --> 00:25:45.440
That's amaz

00:25:45.440 --> 00:25:46.880
>> I haven't used it for the last five

00:25:46.880 --> 00:25:47.520
years.

00:25:47.520 --> 00:25:49.600
>> Okay. Well, there's there's basically no

00:25:49.600 --> 00:25:51.279
upgrade path between two and three,

00:25:51.279 --> 00:25:53.679
which makes life fun and interesting.

00:25:53.679 --> 00:25:55.039
Uh,

00:25:55.039 --> 00:25:57.279
>> LLM upgrade path.

00:25:57.279 --> 00:26:01.279
>> Yeah. So, LLM upgrade. Um,

00:26:01.279 --> 00:26:03.520
yeah. Okay. So, I guess I guess what

00:26:03.520 --> 00:26:05.360
you're saying is that CDK and Terraform

00:26:05.360 --> 00:26:07.440
can live side by side. Then sorry where

00:26:07.440 --> 00:26:09.120
does Ter I thought when when you

00:26:09.120 --> 00:26:11.279
introduced to me terror constructs to me

00:26:11.279 --> 00:26:12.960
I actually thought in the back of my

00:26:12.960 --> 00:26:15.520
mind since because of that problem that

00:26:15.520 --> 00:26:17.600
we have at work we have CDK we have

00:26:17.600 --> 00:26:20.000
Terraform I thought you were like almost

00:26:20.000 --> 00:26:22.640
gifting me the the perfect solution to

00:26:22.640 --> 00:26:25.520
my problem uh to align everything to

00:26:25.520 --> 00:26:27.039
Terraform

00:26:27.039 --> 00:26:30.640
>> right so what terror constructs does at

00:26:30.640 --> 00:26:34.559
this point um it's my effort to

00:26:34.559 --> 00:26:37.360
translate the AWS CDK developer

00:26:37.360 --> 00:26:40.799
experience on top of the core terraform

00:26:40.799 --> 00:26:43.440
resources and provider model. Right? So

00:26:43.440 --> 00:26:46.080
there are some projects um Hashi Cororp

00:26:46.080 --> 00:26:49.919
created Terraform CDK to build the

00:26:49.919 --> 00:26:52.400
foundation to automatically create

00:26:52.400 --> 00:26:54.240
TypeScript classes that wrap the

00:26:54.240 --> 00:26:55.840
original Terraform provider. So you can

00:26:55.840 --> 00:26:57.520
configure your Terapform resources using

00:26:57.520 --> 00:26:59.840
TypeScript or Golang or Python, right?

00:26:59.840 --> 00:27:02.720
But Hashior never built the actual

00:27:02.720 --> 00:27:04.159
system like service integration

00:27:04.159 --> 00:27:08.799
patterns. it never built the IM um the

00:27:08.799 --> 00:27:11.600
idea of of you know connecting IM. For

00:27:11.600 --> 00:27:14.159
example, in this case when I when I bind

00:27:14.159 --> 00:27:16.559
the lambda the handler on top of the

00:27:16.559 --> 00:27:19.279
REST API, it automatically creates the

00:27:19.279 --> 00:27:22.320
service role and gives the Lambda

00:27:22.320 --> 00:27:24.880
service principle the ability to assume

00:27:24.880 --> 00:27:27.760
that role like under the hood and it

00:27:27.760 --> 00:27:28.559
also

00:27:28.559 --> 00:27:30.000
>> creates

00:27:30.000 --> 00:27:32.159
>> uh hold on. It also creates the Lambda

00:27:32.159 --> 00:27:34.640
permission for the gateway. Yeah,

00:27:34.640 --> 00:27:36.880
>> for the actual execute API gateway to

00:27:36.880 --> 00:27:38.720
call that lambda and so on. So all of

00:27:38.720 --> 00:27:40.720
that is is is built on top of the

00:27:40.720 --> 00:27:42.480
service integration pattern between

00:27:42.480 --> 00:27:45.840
lambda lambda API gateway and IM. So so

00:27:45.840 --> 00:27:48.559
that those are patterns that exist in

00:27:48.559 --> 00:27:49.600
AWS CDK.

00:27:49.600 --> 00:27:52.559
>> So Terraform CDK never did

00:27:52.559 --> 00:27:56.559
>> did that. But how but that that that to

00:27:56.559 --> 00:27:58.799
me you're saying that you can't imple

00:27:58.799 --> 00:28:00.799
you can't deploy a lambda with terraform

00:28:00.799 --> 00:28:03.600
CDK then it's going to work

00:28:03.600 --> 00:28:05.520
>> you you just have to write your your

00:28:05.520 --> 00:28:08.880
very very nice and and small um Hashi

00:28:08.880 --> 00:28:10.720
Cororp language config file now you have

00:28:10.720 --> 00:28:12.799
to write a complex TypeScript program to

00:28:12.799 --> 00:28:14.799
generate that config file which of

00:28:14.799 --> 00:28:16.399
course a lot of people will say that why

00:28:16.399 --> 00:28:19.360
would I use Terapform CDK. The idea is

00:28:19.360 --> 00:28:20.960
that now that you have that TypeScript

00:28:20.960 --> 00:28:22.559
object, you can build your own

00:28:22.559 --> 00:28:24.399
abstractions and you can build your own

00:28:24.399 --> 00:28:26.399
higher level constructs around it. But

00:28:26.399 --> 00:28:27.919
there's no interest for Hashi Corp to

00:28:27.919 --> 00:28:29.600
build that, right? They're not af Okay.

00:28:29.600 --> 00:28:33.760
So, so they just got you bootstrapped

00:28:33.760 --> 00:28:34.240
bootstrapped.

00:28:34.240 --> 00:28:35.600
>> Yes, they got you bootstrapped.

00:28:35.600 --> 00:28:39.120
>> So, surely the whole community must have

00:28:39.120 --> 00:28:39.760
cropped up.

00:28:39.760 --> 00:28:43.200
>> This there's a few like

00:28:43.200 --> 00:28:46.320
attempts. So one of them is uh CDKTF

00:28:46.320 --> 00:28:49.279
plus which was from the original people

00:28:49.279 --> 00:28:52.000
behind CDKTF. So they tried to build

00:28:52.000 --> 00:28:56.960
like a level two um library of of or

00:28:56.960 --> 00:28:58.640
layer 2 construct library which is like

00:28:58.640 --> 00:29:00.480
3 years ago but this is pretty much

00:29:00.480 --> 00:29:03.520
archived now. Um and they also built

00:29:03.520 --> 00:29:04.960
something else which is called the AWS

00:29:04.960 --> 00:29:08.399
CDK adapter where they automatically

00:29:08.399 --> 00:29:10.720
they basically let AWS CDK do its job to

00:29:10.720 --> 00:29:12.880
generate cloud for resources and then

00:29:12.880 --> 00:29:14.559
map those cloudformation resources on

00:29:14.559 --> 00:29:16.559
top of terraform provider resources.

00:29:16.559 --> 00:29:18.720
Unfortunately that doesn't capture half

00:29:18.720 --> 00:29:21.120
of the of the functionality that is

00:29:21.120 --> 00:29:23.679
hidden between these objects interacting

00:29:23.679 --> 00:29:26.159
with each other. like the way that you

00:29:26.159 --> 00:29:29.120
generate resources on for cloud form is

00:29:29.120 --> 00:29:30.480
different from the way that you generate

00:29:30.480 --> 00:29:34.640
them for um for terform providers and

00:29:34.640 --> 00:29:37.120
they try to use a common generated

00:29:37.120 --> 00:29:39.600
autogenerated provider through the AWS

00:29:39.600 --> 00:29:41.679
cloud control API. So the cloud control

00:29:41.679 --> 00:29:44.480
API is an attempt to make available the

00:29:44.480 --> 00:29:46.960
the engine behind cloud form. So you can

00:29:46.960 --> 00:29:48.720
actually autogenerate the terform

00:29:48.720 --> 00:29:50.880
provider from the cloud controller API

00:29:50.880 --> 00:29:54.559
but it's like it's gong ga I think this

00:29:54.559 --> 00:29:56.960
year uh or maybe was it last year I'm

00:29:56.960 --> 00:29:58.480
losing track of the years been working

00:29:58.480 --> 00:29:59.679
on this for a year.

00:29:59.679 --> 00:30:02.000
>> Oh what do you mean gongji? What did

00:30:02.000 --> 00:30:02.720
that word made?

00:30:02.720 --> 00:30:04.159
>> So it was under beta for like two or

00:30:04.159 --> 00:30:05.600
three years and then it went generally

00:30:05.600 --> 00:30:08.080
available. So the project to the AWSCC

00:30:08.080 --> 00:30:08.799
provider

00:30:08.799 --> 00:30:10.320
>> because yeah because yeah like now that

00:30:10.320 --> 00:30:12.240
you mention it cloud form to terraform

00:30:12.240 --> 00:30:16.080
makes sense here because ultimately CDK

00:30:16.080 --> 00:30:19.279
is producing cloudformation.

00:30:19.279 --> 00:30:21.600
>> Yes. So they have an adapter but again

00:30:21.600 --> 00:30:23.200
it doesn't capture some of these

00:30:23.200 --> 00:30:25.919
patterns. So if you align the providers

00:30:25.919 --> 00:30:27.520
then you should get the same

00:30:27.520 --> 00:30:31.200
functionality but there's still a whole

00:30:31.200 --> 00:30:33.039
bunch of like resources and patterns

00:30:33.039 --> 00:30:35.360
that are not supported by this Terraform

00:30:35.360 --> 00:30:37.520
provider. this autogenerated provider

00:30:37.520 --> 00:30:40.080
and to use it like nobody's really using

00:30:40.080 --> 00:30:41.600
it because when you look at these

00:30:41.600 --> 00:30:45.440
resources you basically get like no the

00:30:45.440 --> 00:30:46.880
good thing about Terraform is that when

00:30:46.880 --> 00:30:49.279
you talk to an API object you can expand

00:30:49.279 --> 00:30:51.840
a JSON schema into like very strongly

00:30:51.840 --> 00:30:54.559
type like an expanded um schema in

00:30:54.559 --> 00:30:56.799
terapform language right but in this

00:30:56.799 --> 00:30:59.200
case the schema is not expanded like

00:30:59.200 --> 00:31:00.880
let's go to the documentation and look

00:31:00.880 --> 00:31:04.640
at some of these resources maybe take um

00:31:04.640 --> 00:31:07.039
let's look at the AP API gateway

00:31:07.039 --> 00:31:09.840
>> uh or maybe something simpler SNS or

00:31:09.840 --> 00:31:10.320
something I don't

00:31:10.320 --> 00:31:12.080
>> no no let's look at the API gateway

00:31:12.080 --> 00:31:18.320
because that is a real resour

00:31:18.320 --> 00:31:18.799
>> we talking

00:31:18.799 --> 00:31:22.559
>> so here we we we have the um you have

00:31:22.559 --> 00:31:25.120
the open API spec that you pass in

00:31:25.120 --> 00:31:26.799
>> and then you have the deployment the

00:31:26.799 --> 00:31:28.640
stage but what's missing is the

00:31:28.640 --> 00:31:30.720
integration right like if you hit here

00:31:30.720 --> 00:31:33.279
it's just doing a response

00:31:33.279 --> 00:31:38.000
um but it's like it's an X X Amazon.

00:31:38.000 --> 00:31:39.600
Anyway, this is this is not strongly

00:31:39.600 --> 00:31:41.840
typed. This is just JSON. You end up

00:31:41.840 --> 00:31:44.159
just shoving JSON all over the place.

00:31:44.159 --> 00:31:45.840
>> Yeah. So, so this is the Wait a minute.

00:31:45.840 --> 00:31:46.399
I

00:31:46.399 --> 00:31:47.760
>> understand it though.

00:31:47.760 --> 00:31:50.159
>> This project takes cloudformation and

00:31:50.159 --> 00:31:52.320
generates it those resources. Is that's

00:31:52.320 --> 00:31:53.360
what you're saying, right?

00:31:53.360 --> 00:31:55.679
>> No, this is the cloud control generated

00:31:55.679 --> 00:31:57.360
Terraform provider. So, there's two

00:31:57.360 --> 00:31:59.200
providers for AWS. One is manually

00:31:59.200 --> 00:32:00.799
written and maintained by people. Every

00:32:00.799 --> 00:32:02.960
time AWS releases a new feature, adds a

00:32:02.960 --> 00:32:05.200
new field, adds a new whatever to any

00:32:05.200 --> 00:32:07.039
service, somebody gets, you know, a pull

00:32:07.039 --> 00:32:09.600
request or somebody issue is created and

00:32:09.600 --> 00:32:11.919
then it's added in

00:32:11.919 --> 00:32:15.039
>> um manually and manually mapped. So a

00:32:15.039 --> 00:32:17.200
lot of like decisions have been made to

00:32:17.200 --> 00:32:18.960
do things a certain way which is like

00:32:18.960 --> 00:32:20.240
completely different from the way cloud

00:32:20.240 --> 00:32:21.519
form does it right.

00:32:21.519 --> 00:32:22.399
>> Interesting. Okay.

00:32:22.399 --> 00:32:24.960
>> Yeah. So the terraform provide AWS is

00:32:24.960 --> 00:32:27.039
written by humans. That also means it's

00:32:27.039 --> 00:32:28.960
kind of like a created experience

00:32:28.960 --> 00:32:31.440
because it kind of tries to make sense

00:32:31.440 --> 00:32:33.840
of where it expands things uh or how

00:32:33.840 --> 00:32:36.640
does it expose certain configuration

00:32:36.640 --> 00:32:38.720
fields. For example, the way that you

00:32:38.720 --> 00:32:43.519
define um I think it's like on the again

00:32:43.519 --> 00:32:45.360
because I did the API gateway conversion

00:32:45.360 --> 00:32:47.120
recently there was uh the way that you

00:32:47.120 --> 00:32:51.279
define the method responses on on an API

00:32:51.279 --> 00:32:54.159
gateway. The way that the the actual API

00:32:54.159 --> 00:32:56.480
endpoint works is with like a JSON patch

00:32:56.480 --> 00:32:58.240
like you have one endpoint and you have

00:32:58.240 --> 00:33:00.720
to like JSON patch in the differences

00:33:00.720 --> 00:33:02.880
and in the provider they made a

00:33:02.880 --> 00:33:04.399
different resource for each one of them

00:33:04.399 --> 00:33:06.320
and when under the hood the provider

00:33:06.320 --> 00:33:08.720
will build the JSON patch and send it to

00:33:08.720 --> 00:33:10.720
that one endpoint to achieve what you're

00:33:10.720 --> 00:33:12.240
trying to do. So this is the type of

00:33:12.240 --> 00:33:13.919
stuff that they can do because of the

00:33:13.919 --> 00:33:16.799
API endpoints that API gateway exposes

00:33:16.799 --> 00:33:19.440
is very complex for a human to you know

00:33:19.440 --> 00:33:21.679
build a JSON patch. uh and then cloud

00:33:21.679 --> 00:33:23.120
for does a similar thing. It kind of

00:33:23.120 --> 00:33:25.039
like like abstracts away this complexity

00:33:25.039 --> 00:33:27.360
of that the way that API is built and

00:33:27.360 --> 00:33:29.600
allows you to define it um in in one

00:33:29.600 --> 00:33:31.519
resource. But in terapform provider AWS,

00:33:31.519 --> 00:33:33.200
they made like many different resources

00:33:33.200 --> 00:33:35.440
and the Golang code takes care of it

00:33:35.440 --> 00:33:37.440
like building a nice little patch under

00:33:37.440 --> 00:33:39.120
the hood. So the way that you write your

00:33:39.120 --> 00:33:40.960
config is really nice. Um so that's the

00:33:40.960 --> 00:33:42.640
advantage of a manual written uh

00:33:42.640 --> 00:33:45.200
provider right compared to like an AWSCC

00:33:45.200 --> 00:33:48.799
autogenerated provider. Um, but that

00:33:48.799 --> 00:33:50.640
also means that most of the tooling like

00:33:50.640 --> 00:33:52.320
uh code scanning and everything is

00:33:52.320 --> 00:33:53.919
around this provider because everyone is

00:33:53.919 --> 00:33:55.200
the one using it. Like all of the

00:33:55.200 --> 00:33:57.039
Terraform linting, all of the Terraform

00:33:57.039 --> 00:33:58.559
security scanning, all of the Terapform

00:33:58.559 --> 00:34:01.279
cost calculation tooling is around this

00:34:01.279 --> 00:34:02.720
provider because everyone's using this

00:34:02.720 --> 00:34:03.279
provider.

00:34:03.279 --> 00:34:05.919
>> Yeah, I mean that's top provider by like

00:34:05.919 --> 00:34:08.320
a way a long way I'm sure.

00:34:08.320 --> 00:34:10.399
>> Yes. I'm not sure about like I know some

00:34:10.399 --> 00:34:12.000
people sometimes say like I we're using

00:34:12.000 --> 00:34:13.919
AWS CCC because the feature has never

00:34:13.919 --> 00:34:15.359
has not been built on top of the

00:34:15.359 --> 00:34:17.280
manually maintained one and the CC one

00:34:17.280 --> 00:34:18.960
has a chance to adopt features faster

00:34:18.960 --> 00:34:20.320
because it's autogenerated.

00:34:20.320 --> 00:34:22.720
>> And do you know how AWSCC works? I mean

00:34:22.720 --> 00:34:24.240
they they must have a pipeline that

00:34:24.240 --> 00:34:26.079
kicks off with uh

00:34:26.079 --> 00:34:27.520
>> yeah they have a they have a lightweight

00:34:27.520 --> 00:34:29.280
prox API to discover, provision and

00:34:29.280 --> 00:34:31.119
manage cloud resources. So they they

00:34:31.119 --> 00:34:33.440
autogenerate it. Um I guess it

00:34:33.440 --> 00:34:36.079
>> the source of truth for um AWS if I

00:34:36.079 --> 00:34:38.480
remember is like like a Mason schema or

00:34:38.480 --> 00:34:40.320
something like that that describes the

00:34:40.320 --> 00:34:42.000
APIs.

00:34:42.000 --> 00:34:43.520
>> Yeah, there's that's part of the of the

00:34:43.520 --> 00:34:45.520
PDK here as well. They they have the

00:34:45.520 --> 00:34:47.760
type save API. Smitty smithy

00:34:47.760 --> 00:34:48.720
>> Smitty.

00:34:48.720 --> 00:34:50.720
>> Why did I say Mason?

00:34:50.720 --> 00:34:53.839
>> Smith because Mason Smith's same thing.

00:34:53.839 --> 00:34:55.440
>> Ah,

00:34:55.440 --> 00:34:58.079
it must be Yes, it must be. Yes, you're

00:34:58.079 --> 00:35:00.079
an LLM after all.

00:35:00.079 --> 00:35:02.400
>> Cuz like 10 years ago, I was working on

00:35:02.400 --> 00:35:06.240
uh in a video startup in Singapore. I'm

00:35:06.240 --> 00:35:07.599
sure I don't know if you remember.

00:35:07.599 --> 00:35:09.520
That's probably when we met. And

00:35:09.520 --> 00:35:11.119
interestingly,

00:35:11.119 --> 00:35:14.079
um the the service hadn't launched and

00:35:14.079 --> 00:35:16.880
and AWS gave us like this JSON file that

00:35:16.880 --> 00:35:19.119
was generated with Mason if I remember

00:35:19.119 --> 00:35:20.720
correctly. I don't know why Mason, it's

00:35:20.720 --> 00:35:22.160
probably the wrong word, but they gave

00:35:22.160 --> 00:35:24.640
us a JSON file and then we just copied

00:35:24.640 --> 00:35:27.760
it under the AWS CLI directory and then

00:35:27.760 --> 00:35:29.359
all of a sudden we had all these

00:35:29.359 --> 00:35:30.880
commands available to us, which I

00:35:30.880 --> 00:35:32.960
thought was really cool.

00:35:32.960 --> 00:35:34.720
>> Oh, I haven't heard about that. That's

00:35:34.720 --> 00:35:37.760
sounds really cool. Um, but yeah, as far

00:35:37.760 --> 00:35:39.359
as I know, Smithy is the the language

00:35:39.359 --> 00:35:41.920
they use for API specifications or

00:35:41.920 --> 00:35:43.359
definition.

00:35:43.359 --> 00:35:45.760
>> Yeah. So, so that's a cool thing about

00:35:45.760 --> 00:35:47.760
the like the AWS de project development

00:35:47.760 --> 00:35:49.440
kit again because they have this like

00:35:49.440 --> 00:35:52.320
REST API generation from Smithy. Um, and

00:35:52.320 --> 00:35:54.400
this is how you build your your product.

00:35:54.400 --> 00:35:56.640
Um, so it's kind of like uh build on top

00:35:56.640 --> 00:35:59.200
of the AWS CDK to do that. But yeah, the

00:35:59.200 --> 00:36:00.880
whole thing I was saying is that you

00:36:00.880 --> 00:36:02.800
have different providers. Uh, one of

00:36:02.800 --> 00:36:04.160
them is very popular but manually

00:36:04.160 --> 00:36:05.359
maintained. The other one is

00:36:05.359 --> 00:36:07.200
autogenerated but doesn't have the full

00:36:07.200 --> 00:36:08.960
coverage. And I hear from people that

00:36:08.960 --> 00:36:10.320
there's still quite a few errors or

00:36:10.320 --> 00:36:12.400
problems that they're facing. But but

00:36:12.400 --> 00:36:14.160
that almost doesn't that almost doesn't

00:36:14.160 --> 00:36:15.839
make sense. Surely something that's

00:36:15.839 --> 00:36:18.640
autogenerated has full coverage.

00:36:18.640 --> 00:36:20.160
>> No, it didn't have full No, because the

00:36:20.160 --> 00:36:21.839
cloud control API doesn't have full

00:36:21.839 --> 00:36:22.640
coverage.

00:36:22.640 --> 00:36:25.200
>> The thing that backs this Yes, it's the

00:36:25.200 --> 00:36:27.760
control. If you go to the website for

00:36:27.760 --> 00:36:30.720
the AWS control uh cloud control API, it

00:36:30.720 --> 00:36:32.400
will tell you how much of their actual

00:36:32.400 --> 00:36:34.160
services they do cover on this.

00:36:34.160 --> 00:36:36.400
>> But that but that's I mean didn't Jeff

00:36:36.400 --> 00:36:36.880
Bezel

00:36:36.880 --> 00:36:38.560
>> because every team developed it's like a

00:36:38.560 --> 00:36:40.160
two-piece pizza team in AWS, right? They

00:36:40.160 --> 00:36:41.760
build their own services. Nobody did a

00:36:41.760 --> 00:36:44.160
centralized cloud control API, so they

00:36:44.160 --> 00:36:45.440
started building a centralized cloud

00:36:45.440 --> 00:36:46.800
control API.

00:36:46.800 --> 00:36:48.800
>> To me, it kind of makes sense.

00:36:48.800 --> 00:36:50.880
>> Well, wait a minute. Like the the folk

00:36:50.880 --> 00:36:53.280
law goes that Jeff Bezos mandated that

00:36:53.280 --> 00:36:56.560
every service team uh publishes their

00:36:56.560 --> 00:37:00.079
API. It sounds like they don't if if if

00:37:00.079 --> 00:37:02.000
they can't if it can't be syndicated by

00:37:02.000 --> 00:37:05.200
the cloud control API.

00:37:05.200 --> 00:37:10.400
>> Let's look at a year old LLM summary.

00:37:10.400 --> 00:37:13.599
Uh

00:37:13.599 --> 00:37:17.040
ah see see for example the the

00:37:17.040 --> 00:37:19.760
certificate uh doesn't support update.

00:37:19.760 --> 00:37:21.359
Maybe that's simply because you can't do

00:37:21.359 --> 00:37:22.960
that. But here's a little table for you

00:37:22.960 --> 00:37:26.000
of the coverage. Maybe this is also

00:37:26.000 --> 00:37:27.440
maybe this relates directly to the

00:37:27.440 --> 00:37:29.839
coverage. Looks like it has quite a lot.

00:37:29.839 --> 00:37:31.599
But where are the services not covered

00:37:31.599 --> 00:37:32.960
though? This is anything that is

00:37:32.960 --> 00:37:36.880
covered. Um I'm wondering if cl if local

00:37:36.880 --> 00:37:38.320
stack is using this because they have a

00:37:38.320 --> 00:37:40.160
very similar table. So local stack might

00:37:40.160 --> 00:37:43.280
be using this to to generate their um

00:37:43.280 --> 00:37:44.400
their local stack.

00:37:44.400 --> 00:37:47.760
>> So just to reiterate what I think you're

00:37:47.760 --> 00:37:48.960
saying to me, you're saying that the

00:37:48.960 --> 00:37:52.400
Terraform uh AWS provider has more

00:37:52.400 --> 00:37:54.160
coverage than something that was

00:37:54.160 --> 00:37:56.320
autogenerated.

00:37:56.320 --> 00:37:59.760
>> When they G8, the AWSCC, they put out a

00:37:59.760 --> 00:38:01.599
number on the number of resources

00:38:01.599 --> 00:38:05.119
covered. and it looked like it was the

00:38:05.119 --> 00:38:06.640
same number, but when you looked into

00:38:06.640 --> 00:38:10.800
it, it was actually a bunch of like a

00:38:10.800 --> 00:38:13.040
split between some of the resources. Or

00:38:13.040 --> 00:38:14.240
maybe I'm getting this wrong because the

00:38:14.240 --> 00:38:16.400
Terraform provider AWS has special

00:38:16.400 --> 00:38:17.680
resources that don't really have a

00:38:17.680 --> 00:38:20.079
backing API. Um, but I I need to look

00:38:20.079 --> 00:38:22.320
into it. They do have like that's

00:38:22.320 --> 00:38:23.680
definitely something maybe we can add in

00:38:23.680 --> 00:38:26.400
later as a clarification on how much is

00:38:26.400 --> 00:38:28.480
the coverage actually of the FCC

00:38:28.480 --> 00:38:30.720
provider. But there is a difference.

00:38:30.720 --> 00:38:32.400
>> How did we even get here? Oh my god. We

00:38:32.400 --> 00:38:34.320
talked about ter we talked about ter

00:38:34.320 --> 00:38:36.400
constructs. We talked about why

00:38:36.400 --> 00:38:38.079
>> we started with spec kit. We started we

00:38:38.079 --> 00:38:39.839
started with spec kit and how it like

00:38:39.839 --> 00:38:41.599
formalizes or gives you workflow to do

00:38:41.599 --> 00:38:44.160
your LLM work like um development. We

00:38:44.160 --> 00:38:46.000
talked about some evolution in the cloud

00:38:46.000 --> 00:38:49.040
code budget thing. We talked about you

00:38:49.040 --> 00:38:52.400
then asked me more about um like more

00:38:52.400 --> 00:38:54.560
about to towards Terraform and why I

00:38:54.560 --> 00:38:56.320
built something like Terra constructs. I

00:38:56.320 --> 00:38:58.160
think so. I gave some examples about the

00:38:58.160 --> 00:39:00.320
evolution of the cloud, the fact that it

00:39:00.320 --> 00:39:02.079
changed and became so complex and that

00:39:02.079 --> 00:39:03.680
the integration patterns between the

00:39:03.680 --> 00:39:05.599
services are complex and therefore a

00:39:05.599 --> 00:39:07.200
simple config file or terform module

00:39:07.200 --> 00:39:09.359
doesn't do it anymore. So that's where

00:39:09.359 --> 00:39:11.280
um I also give you examples of why the

00:39:11.280 --> 00:39:13.520
AWS CDK is so great. We talked a little

00:39:13.520 --> 00:39:15.920
bit about like it not really being

00:39:15.920 --> 00:39:17.520
maintained but there's still being a lot

00:39:17.520 --> 00:39:19.440
of new features being added. But but

00:39:19.440 --> 00:39:21.760
with Terra Constructs, I thought I I saw

00:39:21.760 --> 00:39:25.119
it as a way as as as migrating it. Now

00:39:25.119 --> 00:39:27.440
that I'm speaking with you at length, it

00:39:27.440 --> 00:39:30.480
sounds like you are not thinking like

00:39:30.480 --> 00:39:32.079
that. You're thinking that you're going

00:39:32.079 --> 00:39:34.960
to still leverage CDK, but your output

00:39:34.960 --> 00:39:36.880
is going to be Terraform.

00:39:36.880 --> 00:39:39.839
>> No. So, so there isn't an a project from

00:39:39.839 --> 00:39:43.839
Hashi Cororp that puts uh a host service

00:39:43.839 --> 00:39:49.200
a host um pro object around AWS CDK and

00:39:49.200 --> 00:39:51.520
then encapsulates the process like when

00:39:51.520 --> 00:39:53.839
AWS CDK generates something it then

00:39:53.839 --> 00:39:56.320
generates the Terraform. I'm not doing

00:39:56.320 --> 00:39:58.640
that. That's the adapter project and I

00:39:58.640 --> 00:40:01.359
don't believe it can achieve the actual

00:40:01.359 --> 00:40:03.680
functionality required. Okay. And we

00:40:03.680 --> 00:40:04.960
talked and that's why we ended up

00:40:04.960 --> 00:40:06.640
talking about AWS CC because it uses

00:40:06.640 --> 00:40:09.119
that AWS CC provider that not so many

00:40:09.119 --> 00:40:11.119
people use that you know doesn't have

00:40:11.119 --> 00:40:13.119
all of this ecosystem tooling around it

00:40:13.119 --> 00:40:16.320
and and that doesn't like allow you I I

00:40:16.320 --> 00:40:18.000
believe like I talked to some people

00:40:18.000 --> 00:40:20.720
behind the project and they told me that

00:40:20.720 --> 00:40:22.960
it's really just for early stage

00:40:22.960 --> 00:40:24.800
companies like quickly want to you know

00:40:24.800 --> 00:40:27.119
prototype how moving towards Terapform

00:40:27.119 --> 00:40:28.880
would help them maybe get them halfway

00:40:28.880 --> 00:40:31.440
there like you know have existing AWS

00:40:31.440 --> 00:40:33.839
CDK programs and put like a crud cr

00:40:33.839 --> 00:40:35.520
grudge around it. So, so you understand

00:40:35.520 --> 00:40:36.720
what I'm saying? It's called the AWS

00:40:36.720 --> 00:40:41.760
adapter and um but it's not like a

00:40:41.760 --> 00:40:45.599
long-term solution for um

00:40:45.599 --> 00:40:48.640
for your

00:40:48.640 --> 00:40:50.320
Yeah, it's called the AWS adapter for

00:40:50.320 --> 00:40:52.560
CDK. And as far as I understand, it's

00:40:52.560 --> 00:40:53.440
not something like if you start

00:40:53.440 --> 00:40:55.040
Greenfield, you should start, oh, I'm

00:40:55.040 --> 00:40:56.400
going to write a CDK and I'm going to

00:40:56.400 --> 00:40:57.520
use the adapter. I'm going to be using

00:40:57.520 --> 00:40:59.280
Terraform. That's not what it's for.

00:40:59.280 --> 00:41:01.119
It's meant to be like we have a lot of

00:41:01.119 --> 00:41:03.200
CDK stacks, we want to like quickly

00:41:03.200 --> 00:41:05.119
convert them over to Terapform and this

00:41:05.119 --> 00:41:06.960
can give you like a quick uh bridge

00:41:06.960 --> 00:41:08.880
towards Terraform. That's how I

00:41:08.880 --> 00:41:11.839
understand it. Okay. So I threw that

00:41:11.839 --> 00:41:14.640
away and I started on originally not so

00:41:14.640 --> 00:41:16.400
detailed. I started just I want to be

00:41:16.400 --> 00:41:18.560
able to programmatically build terapform

00:41:18.560 --> 00:41:21.599
configurations and the Terraform CDK

00:41:21.599 --> 00:41:23.200
seemed like a good solution to me but

00:41:23.200 --> 00:41:24.800
then I realized it's missing a lot of

00:41:24.800 --> 00:41:27.119
stuff. So I started building high level

00:41:27.119 --> 00:41:29.200
but then I keep going lower and

00:41:29.200 --> 00:41:30.880
ultimately ended up reimplementing all

00:41:30.880 --> 00:41:32.960
of the core features like asset pipeline

00:41:32.960 --> 00:41:35.839
bundling pipeline IM pipeline like the

00:41:35.839 --> 00:41:38.240
actual IM modules the the concept of the

00:41:38.240 --> 00:41:39.680
you know the interfaces and the patterns

00:41:39.680 --> 00:41:41.280
the way it works under the hood and

00:41:41.280 --> 00:41:42.800
these these are called level two

00:41:42.800 --> 00:41:44.079
constructs right

00:41:44.079 --> 00:41:46.000
>> yes okay

00:41:46.000 --> 00:41:48.240
>> correct uh asset pipeline is more like

00:41:48.240 --> 00:41:50.560
like CLI tooling around it but it's part

00:41:50.560 --> 00:41:52.319
of it's part of you could say it's part

00:41:52.319 --> 00:41:55.280
of the L2 stack construct because it's

00:41:55.280 --> 00:41:57.119
like a higher level. It's using the

00:41:57.119 --> 00:41:59.440
low-level stack cloud for stack under

00:41:59.440 --> 00:42:01.200
the hood, but it's adding a whole bunch

00:42:01.200 --> 00:42:02.400
of functionality around it.

00:42:02.400 --> 00:42:04.400
>> And just for my vocabulary, L1 is the

00:42:04.400 --> 00:42:06.319
low level. L2 is like the asset

00:42:06.319 --> 00:42:10.000
pipeline. Is it is there an L3? No.

00:42:10.000 --> 00:42:12.160
So there are some L3 tries which are

00:42:12.160 --> 00:42:14.480
created by professional services at AWS

00:42:14.480 --> 00:42:16.800
where they have like some um more

00:42:16.800 --> 00:42:18.800
advanced cloud patterns maybe for banks

00:42:18.800 --> 00:42:21.680
that are building like a subscriber um

00:42:21.680 --> 00:42:24.000
like producer type of pattern in the

00:42:24.000 --> 00:42:26.160
cloud. So they will use several L2s and

00:42:26.160 --> 00:42:28.480
combine them into a cloud pattern so

00:42:28.480 --> 00:42:30.160
that it can be used by businesses that

00:42:30.160 --> 00:42:33.760
would be an L3 or an L3 might be um

00:42:33.760 --> 00:42:35.359
maybe

00:42:35.359 --> 00:42:37.040
the real product that that I'm building

00:42:37.040 --> 00:42:39.040
at my company um that is actually

00:42:39.040 --> 00:42:41.359
deploying the front end deploy deploying

00:42:41.359 --> 00:42:42.000
the back end.

00:42:42.000 --> 00:42:43.760
>> The whole product that makes sense so

00:42:43.760 --> 00:42:45.359
and then and then the other terminology

00:42:45.359 --> 00:42:47.920
I'm just mapping into into these L1 L2

00:42:47.920 --> 00:42:50.960
L3 is like construct and and pattern. So

00:42:50.960 --> 00:42:52.880
a construct would maybe would be level

00:42:52.880 --> 00:42:54.720
one and then a pattern would be level

00:42:54.720 --> 00:42:57.200
two like how do you or it's not a very

00:42:57.200 --> 00:42:57.760
good mapping

00:42:57.760 --> 00:42:58.720
>> they they they this they this they this

00:42:58.720 --> 00:43:00.560
they this they they apply the L label to

00:43:00.560 --> 00:43:02.720
all constructs. So constructs are either

00:43:02.720 --> 00:43:06.960
of L1 or L2 or L3. So the L1 constructs

00:43:06.960 --> 00:43:10.079
are autogenerated from the b basic

00:43:10.079 --> 00:43:11.680
resources that are available in cloud

00:43:11.680 --> 00:43:13.040
form or if you're talking about

00:43:13.040 --> 00:43:15.359
Terraform the L1 resources are the ones

00:43:15.359 --> 00:43:16.560
that are the Terapform provider

00:43:16.560 --> 00:43:18.560
resources directly. Okay, that makes

00:43:18.560 --> 00:43:20.480
sense cuz I think I've seen I got

00:43:20.480 --> 00:43:22.880
confused by that. So, and then where

00:43:22.880 --> 00:43:24.880
does the the word pattern fit in here?

00:43:24.880 --> 00:43:26.720
It doesn't really fit in.

00:43:26.720 --> 00:43:29.040
>> Yeah, I think it's more like when they

00:43:29.040 --> 00:43:32.400
talk about L3, there is like the service

00:43:32.400 --> 00:43:34.880
team. I know that there is like a

00:43:34.880 --> 00:43:36.960
website from AWS service team that says

00:43:36.960 --> 00:43:40.079
that these are L3 patterns. These are a

00:43:40.079 --> 00:43:42.400
bucket with a in with a with a lambda

00:43:42.400 --> 00:43:44.880
invocation triggers for example. That's

00:43:44.880 --> 00:43:46.480
a pattern that you may want which is a

00:43:46.480 --> 00:43:47.680
very common pattern that you build in

00:43:47.680 --> 00:43:50.079
terraform as well right um you have a

00:43:50.079 --> 00:43:51.599
module that creates I have a bucket and

00:43:51.599 --> 00:43:52.880
then I have a handler for a function

00:43:52.880 --> 00:43:54.480
that whenever an object get pushed in

00:43:54.480 --> 00:43:56.720
maybe have some type of filtering logic

00:43:56.720 --> 00:43:58.560
to invoke the lambda that's like a

00:43:58.560 --> 00:44:00.960
module that you would build right um and

00:44:00.960 --> 00:44:02.560
in in Terraform you would build that

00:44:02.560 --> 00:44:06.160
module from the low-level L1 um you know

00:44:06.160 --> 00:44:08.400
lambda resource and and the bucket and

00:44:08.400 --> 00:44:10.319
the service permission the IM rule

00:44:10.319 --> 00:44:13.760
resource and all that in in AWS CDK you

00:44:13.760 --> 00:44:16.000
will build that L3 using the L2

00:44:16.000 --> 00:44:17.680
construct which is encapsulating the

00:44:17.680 --> 00:44:20.560
lambda and knows how to bind itself uh

00:44:20.560 --> 00:44:23.280
like it it it's backed by an I principle

00:44:23.280 --> 00:44:25.920
that means that the lambda has a IM role

00:44:25.920 --> 00:44:29.440
behind it right so so it it it exposes

00:44:29.440 --> 00:44:32.880
itself as a as a interface so it's I am

00:44:32.880 --> 00:44:34.800
a principle and a principle you can

00:44:34.800 --> 00:44:36.640
grant things right so when you have a

00:44:36.640 --> 00:44:38.800
lum when you have a bucket and then you

00:44:38.800 --> 00:44:40.640
need to give a permission to the lambda

00:44:40.640 --> 00:44:43.280
you are basically you you're using the

00:44:43.280 --> 00:44:45.599
grant method method that accept an I

00:44:45.599 --> 00:44:47.280
principle. It can the I principle can be

00:44:47.280 --> 00:44:49.119
a lambda in this case but it can also be

00:44:49.119 --> 00:44:51.359
an EC2 instance. Isn't Isn't the better

00:44:51.359 --> 00:44:53.920
terminology would be to call it like a

00:44:53.920 --> 00:44:56.000
service principle because it's a it's

00:44:56.000 --> 00:44:58.640
it's the service is

00:44:58.640 --> 00:45:00.960
>> it's I think it's closely tied to the IM

00:45:00.960 --> 00:45:02.560
uh terminology which like in an IM

00:45:02.560 --> 00:45:04.000
policy you have the principle the

00:45:04.000 --> 00:45:06.000
resource the action

00:45:06.000 --> 00:45:08.079
>> I forgot the rest so they they use the

00:45:08.079 --> 00:45:10.400
the same idea the I principle the only

00:45:10.400 --> 00:45:11.760
new yeah

00:45:11.760 --> 00:45:13.520
>> the only new one is the grant

00:45:13.520 --> 00:45:15.280
>> but but there can be different types of

00:45:15.280 --> 00:45:16.960
principles right you can have a user

00:45:16.960 --> 00:45:18.880
principle but you can als you can have a

00:45:18.880 --> 00:45:22.160
human all of behind I principle in the I

00:45:22.160 --> 00:45:24.079
module. Yeah.

00:45:24.079 --> 00:45:26.079
>> Okay. Okay. Let's we're probably just

00:45:26.079 --> 00:45:29.280
splitting hands at this point. Okay. So,

00:45:29.280 --> 00:45:31.760
so terra constructs

00:45:31.760 --> 00:45:33.520
um

00:45:33.520 --> 00:45:35.520
so I still actually don't quite

00:45:35.520 --> 00:45:37.680
understand. So where is it going to fit

00:45:37.680 --> 00:45:40.000
in in a in a company just just where

00:45:40.000 --> 00:45:41.839
where people

00:45:41.839 --> 00:45:43.200
>> So the way that we use it at my

00:45:43.200 --> 00:45:45.520
organization is we have two three years

00:45:45.520 --> 00:45:48.000
of Terraform landing zone and so on and

00:45:48.000 --> 00:45:49.760
then we had the product teams that

00:45:49.760 --> 00:45:52.640
wanted to build with CDKTF uh because

00:45:52.640 --> 00:45:54.400
they prefer Typescript they write uh

00:45:54.400 --> 00:45:56.000
their lambdas in Typescript. they write

00:45:56.000 --> 00:45:59.040
their nextgs front end, back end, BFF,

00:45:59.040 --> 00:46:03.119
whatever, and they like TypeScript and

00:46:03.119 --> 00:46:05.359
they want a CDKFF and I I had experience

00:46:05.359 --> 00:46:06.960
with AWS CDK and I was like, yeah,

00:46:06.960 --> 00:46:10.560
that's I I encourage it. I mean, um I I

00:46:10.560 --> 00:46:12.880
would rather you not use AWS CDK because

00:46:12.880 --> 00:46:14.560
of cloud formation than I have, like you

00:46:14.560 --> 00:46:17.119
said, I have to build uh CI/CD pipeline

00:46:17.119 --> 00:46:19.040
to do the plan to post the the preview

00:46:19.040 --> 00:46:20.880
in my PR. I've got all of that already.

00:46:20.880 --> 00:46:22.880
I've got Terraform, I've got Atlantis,

00:46:22.880 --> 00:46:24.960
I've got, you know, coordination,

00:46:24.960 --> 00:46:28.960
collaboration. So, we need

00:46:28.960 --> 00:46:30.800
>> So, basically, how does the pipeline

00:46:30.800 --> 00:46:33.200
work? The product has its repo. it

00:46:33.200 --> 00:46:37.040
writes its uh their CDK and then you

00:46:37.040 --> 00:46:38.960
have a you have like a GitHub action or

00:46:38.960 --> 00:46:42.000
something that basically turns their CDK

00:46:42.000 --> 00:46:44.800
into Terraform and runs it or do you or

00:46:44.800 --> 00:46:47.440
do you like get a snapshot and then you

00:46:47.440 --> 00:46:49.839
commit it to your own Terraform uh repo

00:46:49.839 --> 00:46:51.440
or something?

00:46:51.440 --> 00:46:53.920
>> Yeah. So I just did this presentation at

00:46:53.920 --> 00:46:56.800
the um AWS community day in Koala Lumpur

00:46:56.800 --> 00:46:57.200
Malaysia.

00:46:57.200 --> 00:46:58.640
>> Oh yeah. How was that by the way? Was

00:46:58.640 --> 00:47:02.160
that was that at the AWS offices right

00:47:02.160 --> 00:47:03.280
or

00:47:03.280 --> 00:47:06.400
>> Yeah, it was no it was at the university

00:47:06.400 --> 00:47:08.480
uh in in Koala Lumpur. Oh

00:47:08.480 --> 00:47:11.359
>> um but I do cover exactly how does the

00:47:11.359 --> 00:47:13.599
workflow work between the team. So how

00:47:13.599 --> 00:47:14.240
do I

00:47:14.240 --> 00:47:16.319
>> Okay, we need to link this link link in

00:47:16.319 --> 00:47:20.079
the description.

00:47:20.079 --> 00:47:23.119
>> Yeah. So this is an example of an L2. Um

00:47:23.119 --> 00:47:25.440
it's actually more like an L3 because

00:47:25.440 --> 00:47:27.359
this is like a load balanced Fargate

00:47:27.359 --> 00:47:30.079
service. So this uses under the hood it

00:47:30.079 --> 00:47:31.440
use you see it uses something called

00:47:31.440 --> 00:47:33.599
patterns. So under the hood it actually

00:47:33.599 --> 00:47:35.599
set up a load balancer. It set up an ECS

00:47:35.599 --> 00:47:37.040
far task definition.

00:47:37.040 --> 00:47:39.520
>> So that's that's something that comes

00:47:39.520 --> 00:47:42.000
out of AWS CDK right?

00:47:42.000 --> 00:47:44.319
>> Yes. There's a separate library of

00:47:44.319 --> 00:47:46.560
patterns and an application load

00:47:46.560 --> 00:47:48.480
balanced fargate service is a

00:47:48.480 --> 00:47:50.079
composition of several of the L2

00:47:50.079 --> 00:47:53.040
constructs to to expose this.

00:47:53.040 --> 00:47:55.440
>> Okay. Okay. So pattern does exist. Okay.

00:47:55.440 --> 00:47:58.079
I wasn't going crazy. Okay.

00:47:58.079 --> 00:48:00.960
I think patterns is like the service

00:48:00.960 --> 00:48:05.839
team um built L trees. I think

00:48:05.839 --> 00:48:07.839
>> I I think when when you talk about L

00:48:07.839 --> 00:48:09.680
trees, it's like you can build L trees

00:48:09.680 --> 00:48:11.599
and we build a couple of L tries and we

00:48:11.599 --> 00:48:13.280
we have we expose them as a pattern

00:48:13.280 --> 00:48:15.520
library. Yeah, I also forgot about that

00:48:15.520 --> 00:48:17.040
it exist that that's the name of the

00:48:17.040 --> 00:48:20.800
library. Yeah. So our workflow at at my

00:48:20.800 --> 00:48:24.640
organization with CDKTF is that the

00:48:24.640 --> 00:48:26.160
product team lives in their own

00:48:26.160 --> 00:48:28.319
repository, right? And we're trying to

00:48:28.319 --> 00:48:30.079
reduce the number of repositories. So if

00:48:30.079 --> 00:48:31.920
a product team has front end and back

00:48:31.920 --> 00:48:34.720
end uh and and an infrastructure, we're

00:48:34.720 --> 00:48:37.680
trying to use more of a monor repos now

00:48:37.680 --> 00:48:39.839
because we became good good at them. We

00:48:39.839 --> 00:48:42.559
use like a many monor repos. So it's

00:48:42.559 --> 00:48:43.280
kind of like

00:48:43.280 --> 00:48:46.000
>> so the so one product one one repo,

00:48:46.000 --> 00:48:47.760
right? That's what you're aiming for.

00:48:47.760 --> 00:48:49.280
Okay, that make sense.

00:48:49.280 --> 00:48:51.359
>> Yes. Kind of like you know the idea of

00:48:51.359 --> 00:48:54.800
of is it Conway's law where you organize

00:48:54.800 --> 00:48:56.800
your services based on your team or your

00:48:56.800 --> 00:48:58.800
organization layout. So if you have one

00:48:58.800 --> 00:49:00.400
team working on one product

00:49:00.400 --> 00:49:03.040
>> so so we have the product mono

00:49:03.040 --> 00:49:05.440
>> and they are defining their product in

00:49:05.440 --> 00:49:07.440
Typescript lambdas whatever tightly

00:49:07.440 --> 00:49:08.800
integrated with their infra resources

00:49:08.800 --> 00:49:10.160
that they require for their product.

00:49:10.160 --> 00:49:12.079
some of the resources like in this case

00:49:12.079 --> 00:49:14.240
the the the cluster the VPC they will be

00:49:14.240 --> 00:49:16.000
injected when they integrate into the

00:49:16.000 --> 00:49:18.319
lending zone right but then but they

00:49:18.319 --> 00:49:19.839
must be able to define those and they do

00:49:19.839 --> 00:49:21.200
that in a very strongly typed language

00:49:21.200 --> 00:49:23.280
TypeScript and they use SEO constructs

00:49:23.280 --> 00:49:25.280
originally they use CDKTF but that means

00:49:25.280 --> 00:49:27.440
they have to build their own L2s instead

00:49:27.440 --> 00:49:29.599
we are building the L2s publicly make

00:49:29.599 --> 00:49:32.079
them available on Apache 2 and then we

00:49:32.079 --> 00:49:33.839
are using them internally within our

00:49:33.839 --> 00:49:35.119
organization okay

00:49:35.119 --> 00:49:36.880
>> nice nice so

00:49:36.880 --> 00:49:38.800
>> so then yeah

00:49:38.800 --> 00:49:40.960
>> okay So

00:49:40.960 --> 00:49:43.520
I mean like I'm just thinking of um my

00:49:43.520 --> 00:49:45.440
current client

00:49:45.440 --> 00:49:48.480
they use CDK

00:49:48.480 --> 00:49:52.240
and then they also use Terraform. So So

00:49:52.240 --> 00:49:55.040
why what I mean surely didn't didn't you

00:49:55.040 --> 00:49:57.680
think about uh allowing the product team

00:49:57.680 --> 00:50:00.640
to run their CDK?

00:50:00.640 --> 00:50:02.640
I was lucky they didn't ask they didn't

00:50:02.640 --> 00:50:06.160
push for it. I did I think about it. I

00:50:06.160 --> 00:50:08.079
was I was thinking actually about

00:50:08.079 --> 00:50:11.920
talking pointing them towards Palumi SST

00:50:11.920 --> 00:50:13.359
because that's kind of a bit of a

00:50:13.359 --> 00:50:15.680
similar idea but then we would need to

00:50:15.680 --> 00:50:17.200
adopt Palumi because Pulumi is

00:50:17.200 --> 00:50:19.200
crosscloud but then I wasn't sure about

00:50:19.200 --> 00:50:21.200
like the self-hosted Palumi story and at

00:50:21.200 --> 00:50:23.040
the time I didn't know that you could

00:50:23.040 --> 00:50:25.119
like self-host Palumi. I only heard that

00:50:25.119 --> 00:50:26.559
it was expensive and that you had to pay

00:50:26.559 --> 00:50:27.839
for the cloud and so on.

00:50:27.839 --> 00:50:29.440
>> But I'm not too sure why you're talking

00:50:29.440 --> 00:50:31.200
about Palumian because you can't just

00:50:31.200 --> 00:50:32.240
you could have a

00:50:32.240 --> 00:50:33.680
>> Yeah, I could have let them use cloud

00:50:33.680 --> 00:50:35.280
formation, right? And then it could

00:50:35.280 --> 00:50:36.720
publish the cloud.

00:50:36.720 --> 00:50:39.040
>> You didn't even you didn't want to go

00:50:39.040 --> 00:50:40.559
there or something. What were you

00:50:40.559 --> 00:50:42.000
>> No, I have experience with that in the

00:50:42.000 --> 00:50:44.880
past. Um we had one team heavily in

00:50:44.880 --> 00:50:46.240
cloud formation and then we had the

00:50:46.240 --> 00:50:47.760
whole rest of the company data team

00:50:47.760 --> 00:50:50.800
everyone else using terraform and I was

00:50:50.800 --> 00:50:52.720
put as part of the team that was using

00:50:52.720 --> 00:50:55.839
AWS CDK and I was completely convinced

00:50:55.839 --> 00:50:57.920
that AWCK was way better. I was I was

00:50:57.920 --> 00:50:59.680
put in there to convert them to

00:50:59.680 --> 00:51:01.920
Terraform and they converted me to you

00:51:01.920 --> 00:51:04.720
know the this the the CDK story and then

00:51:04.720 --> 00:51:07.520
I spent a year trying to build um

00:51:07.520 --> 00:51:09.520
integration patterns between Terraform

00:51:09.520 --> 00:51:14.240
and cloud formation. So you must consume

00:51:14.240 --> 00:51:16.319
like integration between two different

00:51:16.319 --> 00:51:18.160
products and then you must expose them.

00:51:18.160 --> 00:51:20.240
So I was using SSM parameter store as an

00:51:20.240 --> 00:51:22.000
integration registry which is Keith

00:51:22.000 --> 00:51:24.480
Morris um you know infrastructure as

00:51:24.480 --> 00:51:25.040
code.

00:51:25.040 --> 00:51:26.800
>> Keith Morris is my line manager. I don't

00:51:26.800 --> 00:51:27.200
know if

00:51:27.200 --> 00:51:30.000
>> exactly right you told me that. So, so I

00:51:30.000 --> 00:51:32.400
followed his advice uh about his

00:51:32.400 --> 00:51:34.400
infrastructure as code third edition

00:51:34.400 --> 00:51:36.160
whatever uh book and follow the

00:51:36.160 --> 00:51:38.240
integration pattern of um integration

00:51:38.240 --> 00:51:40.319
registry using SSM parameter store. Now

00:51:40.319 --> 00:51:41.200
the

00:51:41.200 --> 00:51:42.559
>> tell him I sent him a message on

00:51:42.559 --> 00:51:44.319
LinkedIn and he never replied.

00:51:44.319 --> 00:51:46.960
>> Okay, I'll I'll uh I'll let Ke know. Ke,

00:51:46.960 --> 00:51:51.040
if you're watching respond. Uh okay, so

00:51:51.040 --> 00:51:53.280
chapter what 17? You you're oddly

00:51:53.280 --> 00:51:54.800
specific here, Vincent, but carry on.

00:51:54.800 --> 00:51:56.559
Yeah, because I did a presentation about

00:51:56.559 --> 00:51:58.880
it. Um,

00:51:58.880 --> 00:52:01.599
I called it integrate this. I did it

00:52:01.599 --> 00:52:03.040
like at the time when I had just

00:52:03.040 --> 00:52:04.400
finished building the integration

00:52:04.400 --> 00:52:07.839
patterns and I thought uh this is great.

00:52:07.839 --> 00:52:08.559
Um,

00:52:08.559 --> 00:52:10.559
>> and that's the latest book, right?

00:52:10.559 --> 00:52:11.680
Because he he had a

00:52:11.680 --> 00:52:14.640
>> yes I I I have already uh subscription

00:52:14.640 --> 00:52:16.720
so I get access early early access and I

00:52:16.720 --> 00:52:19.680
read it. Um so these are the actual

00:52:19.680 --> 00:52:21.920
diagrams from his book and he's talking

00:52:21.920 --> 00:52:24.160
about organizing your infrastructure and

00:52:24.160 --> 00:52:25.680
then the different in integration

00:52:25.680 --> 00:52:27.119
patterns. You have one provider, you

00:52:27.119 --> 00:52:29.280
have one consumer and then you can do

00:52:29.280 --> 00:52:30.960
resource matching which is you look up

00:52:30.960 --> 00:52:33.359
the resources based on some tags or you

00:52:33.359 --> 00:52:36.480
can do um stack data lookup. So if you

00:52:36.480 --> 00:52:38.800
have one stack in cloud form and then it

00:52:38.800 --> 00:52:40.160
has some outputs. So you need to read

00:52:40.160 --> 00:52:42.400
those cloud form outputs and then um

00:52:42.400 --> 00:52:44.160
integrate them within another cloud for

00:52:44.160 --> 00:52:45.599
stack for example. But you know need to

00:52:45.599 --> 00:52:47.280
know what the team is using. And then

00:52:47.280 --> 00:52:49.359
the other one is the integration p uh

00:52:49.359 --> 00:52:52.079
registry lookup pattern where everyone

00:52:52.079 --> 00:52:55.119
writes to a different key convention and

00:52:55.119 --> 00:52:56.240
then you can look up through the

00:52:56.240 --> 00:52:57.760
integration registry. Right.

00:52:57.760 --> 00:52:59.280
>> Okay. Okay. I mean this is quite common

00:52:59.280 --> 00:53:01.040
actually. So Keith basically wrote it

00:53:01.040 --> 00:53:03.040
up. I mean I've seen this everywhere.

00:53:03.040 --> 00:53:06.079
>> SSM SSM is the registry.

00:53:06.079 --> 00:53:07.680
>> Yeah. So when we adopted it we didn't

00:53:07.680 --> 00:53:09.520
have strong conventions about the the

00:53:09.520 --> 00:53:11.200
format of the keys. What are the like

00:53:11.200 --> 00:53:13.200
the different paths that you need to

00:53:13.200 --> 00:53:14.880
capture. We didn't have a clear

00:53:14.880 --> 00:53:16.880
guideline of how to write your

00:53:16.880 --> 00:53:18.640
dependencies out and how to read them

00:53:18.640 --> 00:53:20.400
back because if you put some rules

00:53:20.400 --> 00:53:23.440
around that then you can you know

00:53:23.440 --> 00:53:25.200
determine that this will be like a

00:53:25.200 --> 00:53:26.960
network will have a a list of certain

00:53:26.960 --> 00:53:28.480
ideas and so you read it out the right

00:53:28.480 --> 00:53:30.319
way the right way because now you're in

00:53:30.319 --> 00:53:33.200
type languages like CDK and Terraform

00:53:33.200 --> 00:53:34.400
maybe you can read it properly.

00:53:34.400 --> 00:53:38.960
>> So the key go specify the actual typing.

00:53:38.960 --> 00:53:41.359
>> No I don't think that's part of it. uh

00:53:41.359 --> 00:53:42.800
it just mentioned that this is a pattern

00:53:42.800 --> 00:53:44.640
you can follow. It's just my personal

00:53:44.640 --> 00:53:46.880
experience when I I started to use it.

00:53:46.880 --> 00:53:49.760
We had problems like that like teams

00:53:49.760 --> 00:53:51.680
didn't have a clear way or convention on

00:53:51.680 --> 00:53:54.480
how to write to it. Uh another problem

00:53:54.480 --> 00:53:56.720
is that this becomes an a layer of

00:53:56.720 --> 00:53:59.359
indirection and becomes stale like how

00:53:59.359 --> 00:54:01.520
do you you know keep it up to date? How

00:54:01.520 --> 00:54:03.119
do you know that the value has changed?

00:54:03.119 --> 00:54:05.280
How do you notify also because it's a

00:54:05.280 --> 00:54:06.480
layer of interaction how do you have

00:54:06.480 --> 00:54:08.559
direct connectivity between provider and

00:54:08.559 --> 00:54:10.720
consumer? How do you know everyone that

00:54:10.720 --> 00:54:13.040
consumes that key if you don't have like

00:54:13.040 --> 00:54:15.119
a an actual like point po point po point

00:54:15.119 --> 00:54:15.119
po point po point po point po point po

00:54:15.119 --> 00:54:15.440
point po point po point po point pointer

00:54:15.440 --> 00:54:16.800
counting like if you do this in memory

00:54:16.800 --> 00:54:19.839
you will you keep track of how many um

00:54:19.839 --> 00:54:22.319
actual variables point to the stack

00:54:22.319 --> 00:54:24.559
right so you have some counter and then

00:54:24.559 --> 00:54:26.079
you can know if anyone is still reading

00:54:26.079 --> 00:54:28.640
it and so none of that right and so when

00:54:28.640 --> 00:54:30.640
you start it sounds very simple and I

00:54:30.640 --> 00:54:32.079
was very confident I did this

00:54:32.079 --> 00:54:33.520
presentation I say this solves all of

00:54:33.520 --> 00:54:35.599
our problems but at that time I already

00:54:35.599 --> 00:54:37.119
realized that like having some type of

00:54:37.119 --> 00:54:39.200
generics around it so that we and type

00:54:39.200 --> 00:54:41.119
when we read it back out is actually

00:54:41.119 --> 00:54:43.280
really nice. Um, but that never really

00:54:43.280 --> 00:54:45.040
happened, right? Our teams had written a

00:54:45.040 --> 00:54:46.800
whole bunch of stuff into SSM parameter

00:54:46.800 --> 00:54:48.480
store and then we couldn't really keep

00:54:48.480 --> 00:54:51.040
track of like who was consuming it. I

00:54:51.040 --> 00:54:52.480
also thought that this was great that

00:54:52.480 --> 00:54:54.480
this was a a read indirection layer

00:54:54.480 --> 00:54:56.000
because now it meant that I could move

00:54:56.000 --> 00:54:57.760
things around and then just update the

00:54:57.760 --> 00:54:59.680
registry from different places. Big

00:54:59.680 --> 00:55:01.280
mistake because you have no idea where

00:55:01.280 --> 00:55:05.200
it comes from. So, so this pattern um is

00:55:05.200 --> 00:55:08.079
why I did not like my teams to use cloud

00:55:08.079 --> 00:55:10.720
formation and then adopt some type of

00:55:10.720 --> 00:55:12.640
indirection layer to communicate with

00:55:12.640 --> 00:55:14.480
them, right? So, I actually tried to

00:55:14.480 --> 00:55:17.119
roll this out and I had my landing zone

00:55:17.119 --> 00:55:18.559
publish all of its like integration

00:55:18.559 --> 00:55:20.880
points into the SSM parameter store. Uh

00:55:20.880 --> 00:55:22.480
and then you get other problems like how

00:55:22.480 --> 00:55:24.480
do you control the consumer permissions

00:55:24.480 --> 00:55:26.640
or who can write to these keys? How do

00:55:26.640 --> 00:55:29.359
you, you know, do you cross-ost like do

00:55:29.359 --> 00:55:31.200
you do you have a central one or do you

00:55:31.200 --> 00:55:33.119
have this one provider right to

00:55:33.119 --> 00:55:34.720
different accounts where they have to

00:55:34.720 --> 00:55:36.720
find it? So, there's a lot of of of

00:55:36.720 --> 00:55:39.520
problems there and I decided I'm just

00:55:39.520 --> 00:55:41.040
going to get rid of this whole problem

00:55:41.040 --> 00:55:43.119
by just using the native built-in

00:55:43.119 --> 00:55:44.960
Terapform stack feature which is, you

00:55:44.960 --> 00:55:46.800
know, Terraform outputs. Right.

00:55:46.800 --> 00:55:49.280
>> Right. I mean, I'm just thinking I'm

00:55:49.280 --> 00:55:51.280
just mapping this to my own experience

00:55:51.280 --> 00:55:54.720
about a registry. I think the one at my

00:55:54.720 --> 00:55:57.599
workplace that we ended up just doing is

00:55:57.599 --> 00:56:02.319
is essentially we keep a huge a like a a

00:56:02.319 --> 00:56:06.960
source of truth a JSON file in GitHub

00:56:06.960 --> 00:56:09.119
and we use that to sort of coordinate a

00:56:09.119 --> 00:56:11.119
lot of stuff because like hey you want

00:56:11.119 --> 00:56:12.799
to know where this is which account this

00:56:12.799 --> 00:56:16.079
goes into what what secret you need.

00:56:16.079 --> 00:56:17.599
>> It's horrible isn't it?

00:56:17.599 --> 00:56:19.599
>> I I like it. I like

00:56:19.599 --> 00:56:22.559
>> it's horrible. I like a single uh large

00:56:22.559 --> 00:56:25.200
JSON file. I mean because you know

00:56:25.200 --> 00:56:29.040
>> JSON even even worse if it was YAML

00:56:29.040 --> 00:56:30.319
you wouldn't have all these like

00:56:30.319 --> 00:56:32.079
trailing commas or next line changes

00:56:32.079 --> 00:56:33.520
when you know these git tips would look

00:56:33.520 --> 00:56:34.319
a little bit better.

00:56:34.319 --> 00:56:36.559
>> In my opinion the JSON can is is just an

00:56:36.559 --> 00:56:39.920
output uh here but but it's good. It's

00:56:39.920 --> 00:56:42.960
it's it's a better paradigm than

00:56:42.960 --> 00:56:46.240
sprinkling stuff across an SSM paths for

00:56:46.240 --> 00:56:47.280
Christ's sake.

00:56:47.280 --> 00:56:51.280
>> Yeah. Yeah. Agree. Um so so very common

00:56:51.280 --> 00:56:53.119
like you said is the TFRs in terapform

00:56:53.119 --> 00:56:55.200
world where people you know copy paste

00:56:55.200 --> 00:56:57.599
TFRS files around for this environment

00:56:57.599 --> 00:56:59.200
we need those TFRs from that environment

00:56:59.200 --> 00:57:02.799
we need this TFRS it's a bit similar

00:57:02.799 --> 00:57:04.799
>> but like but this but this is like even

00:57:04.799 --> 00:57:07.680
bigger this is across environments

00:57:07.680 --> 00:57:08.720
uh

00:57:08.720 --> 00:57:10.480
>> with Terrant you also have the ability

00:57:10.480 --> 00:57:12.000
to like define dependencies and it

00:57:12.000 --> 00:57:14.240
automatically create the JSON files and

00:57:14.240 --> 00:57:16.319
caches them under the hood and then it

00:57:16.319 --> 00:57:19.760
keeps track of them to like more quickly

00:57:19.760 --> 00:57:22.000
run like consumer provider interactions

00:57:22.000 --> 00:57:24.240
and so on. But Teragrant again also very

00:57:24.240 --> 00:57:26.720
quickly becomes like sprawls out of

00:57:26.720 --> 00:57:29.359
control, right? So, so you're asking me

00:57:29.359 --> 00:57:31.680
like why did I not just allow them to

00:57:31.680 --> 00:57:34.240
write their infrastructure in AWS CDK

00:57:34.240 --> 00:57:36.799
and I I'm telling you that my biggest

00:57:36.799 --> 00:57:38.400
problem was the integration patterns.

00:57:38.400 --> 00:57:40.559
You're saying one solution could have

00:57:40.559 --> 00:57:42.880
been to create more like a central file

00:57:42.880 --> 00:57:44.720
so that they would need to read from

00:57:44.720 --> 00:57:47.440
there um and things like that. But when

00:57:47.440 --> 00:57:49.359
you say central file, it sounds very

00:57:49.359 --> 00:57:51.680
similar to SSM parameter store.

00:57:51.680 --> 00:57:53.680
>> Yeah, but but SSM parameter store gets

00:57:53.680 --> 00:57:55.440
out of hand because you could you could

00:57:55.440 --> 00:57:58.319
use arbitrary paths. You can use

00:57:58.319 --> 00:57:59.839
>> what about the JSON file? What are the

00:57:59.839 --> 00:58:02.640
arbitrary like fields paths that you use

00:58:02.640 --> 00:58:03.839
in JSON files?

00:58:03.839 --> 00:58:06.160
>> They're just they're just keys and you

00:58:06.160 --> 00:58:06.799
know,

00:58:06.799 --> 00:58:08.400
>> but what's the structure of the keys and

00:58:08.400 --> 00:58:09.680
are they nested keys?

00:58:09.680 --> 00:58:12.079
>> Well, you have the same problem.

00:58:12.079 --> 00:58:15.680
>> Well, they are they are nested. Yeah. Uh

00:58:15.680 --> 00:58:17.599
>> yeah. how

00:58:17.599 --> 00:58:19.280
that's where you then get similar

00:58:19.280 --> 00:58:19.599
problems.

00:58:19.599 --> 00:58:21.119
>> I think I think majority of them are

00:58:21.119 --> 00:58:22.960
just are are just keys. They're not like

00:58:22.960 --> 00:58:26.240
lists if that makes sense.

00:58:26.240 --> 00:58:28.160
>> That's I think one thing I learned about

00:58:28.160 --> 00:58:29.599
Terraform because a lot of people when

00:58:29.599 --> 00:58:31.200
they write a module they go like well

00:58:31.200 --> 00:58:33.119
this resource that I just created should

00:58:33.119 --> 00:58:35.839
really be accessible and they just you

00:58:35.839 --> 00:58:38.079
know output the all of the attributes of

00:58:38.079 --> 00:58:40.720
the resource to the module and then you

00:58:40.720 --> 00:58:42.240
know you're basically have zero

00:58:42.240 --> 00:58:43.920
encapsulation. The idea of modules is a

00:58:43.920 --> 00:58:45.839
bit encapsulation so that you don't

00:58:45.839 --> 00:58:48.240
create these deeply nested attributes

00:58:48.240 --> 00:58:51.520
dictionary key values um but you rather

00:58:51.520 --> 00:58:53.119
create individual outputs like if you

00:58:53.119 --> 00:58:55.599
want the gateway uh endpoint there's a

00:58:55.599 --> 00:58:57.200
variable there's one key for the gateway

00:58:57.200 --> 00:59:00.240
endpoint if you want the subnet ID uh

00:59:00.240 --> 00:59:02.720
maybe um you know maybe that's a list

00:59:02.720 --> 00:59:04.400
because subnet ID is usually like three

00:59:04.400 --> 00:59:06.880
whatever but but not deeply nested

00:59:06.880 --> 00:59:10.000
objects basically detailed attributes as

00:59:10.000 --> 00:59:11.440
individual outputs

00:59:11.440 --> 00:59:13.599
>> yeah I think That's I think we're

00:59:13.599 --> 00:59:15.839
aligned there. Yeah. But like

00:59:15.839 --> 00:59:19.839
>> it it works well. Um um and the the best

00:59:19.839 --> 00:59:22.559
thing of all cuz I don't think SSM can

00:59:22.559 --> 00:59:24.720
really do this very well except you can

00:59:24.720 --> 00:59:26.960
look back in the versions. But like the

00:59:26.960 --> 00:59:28.880
brilliant thing about central registry

00:59:28.880 --> 00:59:30.480
is that you have the really nice change

00:59:30.480 --> 00:59:33.920
log.

00:59:33.920 --> 00:59:36.720
You have logs on on SSM parameter store.

00:59:36.720 --> 00:59:39.119
But I think I think the idea is this.

00:59:39.119 --> 00:59:42.240
either you put it in git or you have

00:59:42.240 --> 00:59:44.160
something wrapping more as a service

00:59:44.160 --> 00:59:46.799
around SSM parameter store but just like

00:59:46.799 --> 00:59:49.200
no control over parameter store

00:59:49.200 --> 00:59:51.440
>> is definitely a recipe for disaster.

00:59:51.440 --> 00:59:56.319
>> Yeah. A config file in git is the sweet

00:59:56.319 --> 00:59:59.440
spot for me. I know it works well.

00:59:59.440 --> 01:00:03.119
>> Okay.

01:00:03.119 --> 01:00:04.559
>> We're getting a little bit distracted. I

01:00:04.559 --> 01:00:08.160
mean, so you you were saying you you

01:00:08.160 --> 01:00:10.720
were pushing people you you didn't want

01:00:10.720 --> 01:00:13.599
people to to deploy to run CDK deploy

01:00:13.599 --> 01:00:15.920
just because of coordination issues, I

01:00:15.920 --> 01:00:18.240
guess, is what I'm hearing.

01:00:18.240 --> 01:00:22.160
>> Yes. Um, one of the main issues was to

01:00:22.160 --> 01:00:24.559
avoid stale values and copy value across

01:00:24.559 --> 01:00:27.119
the source of truth of the integration

01:00:27.119 --> 01:00:28.720
because this again is not in a single

01:00:28.720 --> 01:00:30.640
repo, right? It's across many

01:00:30.640 --> 01:00:34.000
repositories and

01:00:34.000 --> 01:00:38.960
because of that we originally had tried

01:00:38.960 --> 01:00:42.160
to have the product monor repo run the

01:00:42.160 --> 01:00:45.839
terraform apply and consume across um

01:00:45.839 --> 01:00:47.520
you know SSM parameter store but that

01:00:47.520 --> 01:00:50.400
didn't really work so instead we still

01:00:50.400 --> 01:00:53.359
keep the dev infra directly applied from

01:00:53.359 --> 01:00:55.359
the product manual repo. So for the dev

01:00:55.359 --> 01:00:57.520
environment they can run terraform apply

01:00:57.520 --> 01:00:58.960
every time they make a change without

01:00:58.960 --> 01:01:00.079
going through any integration

01:01:00.079 --> 01:01:02.079
repository. But when they want to go

01:01:02.079 --> 01:01:03.599
towards

01:01:03.599 --> 01:01:05.920
um so when they run apply here on the

01:01:05.920 --> 01:01:09.200
dev infra folder basically the package

01:01:09.200 --> 01:01:11.680
gets consumed in the dev infra

01:01:11.680 --> 01:01:14.480
application uh or environment and when

01:01:14.480 --> 01:01:17.040
the developer runs apply it creates the

01:01:17.040 --> 01:01:19.040
environment the the the resources in

01:01:19.040 --> 01:01:20.960
pink here purple here and then the

01:01:20.960 --> 01:01:22.400
integration with like the dev ingress

01:01:22.400 --> 01:01:25.440
ALB and the dev VPC and so on right so

01:01:25.440 --> 01:01:27.920
so we are copying over the VPC ID the

01:01:27.920 --> 01:01:31.040
ALB reference as values into the dev F

01:01:31.040 --> 01:01:32.720
monor repo but it we're not copying

01:01:32.720 --> 01:01:34.240
staging and prod and all the other

01:01:34.240 --> 01:01:36.480
environments just one only dev okay

01:01:36.480 --> 01:01:39.839
>> okay okay environment they're completely

01:01:39.839 --> 01:01:41.839
they have full full control over the dev

01:01:41.839 --> 01:01:43.119
environments which they should they

01:01:43.119 --> 01:01:44.319
should be able to do what they need

01:01:44.319 --> 01:01:48.000
right and then when it comes to actually

01:01:48.000 --> 01:01:50.720
promoting this out of dev um they've

01:01:50.720 --> 01:01:53.440
done their QA themselves and they want

01:01:53.440 --> 01:01:56.559
to put this into like staging or prepro

01:01:56.559 --> 01:01:59.599
that's where they are um versioning and

01:01:59.599 --> 01:02:00.559
releasing

01:02:00.559 --> 01:02:04.319
a an actual artifact. So they're

01:02:04.319 --> 01:02:07.520
publishing their infra package which no

01:02:07.520 --> 01:02:09.040
longer is a module. We don't need

01:02:09.040 --> 01:02:10.480
special terapform registry or anything

01:02:10.480 --> 01:02:12.640
like that. We can just use their

01:02:12.640 --> 01:02:15.440
existing u pnpm workflow or npm

01:02:15.440 --> 01:02:17.440
packaging workflow or python if they

01:02:17.440 --> 01:02:19.200
want because cdk can be python but we

01:02:19.200 --> 01:02:21.119
don't do that. So so so you don't need

01:02:21.119 --> 01:02:22.960
like special artifact management for

01:02:22.960 --> 01:02:24.480
infrastructure anymore. Infrastructure

01:02:24.480 --> 01:02:26.160
is managed the same way as your code.

01:02:26.160 --> 01:02:28.079
You're deploying, you're publishing and

01:02:28.079 --> 01:02:29.599
minting, versioning, change lock,

01:02:29.599 --> 01:02:31.200
everything. All of your tools can just

01:02:31.200 --> 01:02:33.280
be reused and we p push it into code at

01:02:33.280 --> 01:02:33.920
effect.

01:02:33.920 --> 01:02:34.559
>> So, okay,

01:02:34.559 --> 01:02:36.240
>> I'm still a little bit puzzled here. You

01:02:36.240 --> 01:02:38.319
call it a package, but is surely it's

01:02:38.319 --> 01:02:40.160
it's it's not a whole bunch of code.

01:02:40.160 --> 01:02:42.000
Surely it's just some

01:02:42.000 --> 01:02:43.839
>> Oh, it is a bunch of code. It is a bunch

01:02:43.839 --> 01:02:45.599
of code. It is like

01:02:45.599 --> 01:02:48.480
>> So basic so basically the code and dev

01:02:48.480 --> 01:02:50.000
and the code and

01:02:50.000 --> 01:02:51.440
>> it's if you are familiar with

01:02:51.440 --> 01:02:53.359
Kubernetes, we don't use Kubernetes. So

01:02:53.359 --> 01:02:55.680
it's like a Kubernetes Helm chart. Oh,

01:02:55.680 --> 01:02:58.240
okay. Okay. Sorry. I I read product as

01:02:58.240 --> 01:03:00.319
uh as production. Sorry. Sorry. I think

01:03:00.319 --> 01:03:02.160
that's where I was confused.

01:03:02.160 --> 01:03:04.160
>> It's good you asked this because this is

01:03:04.160 --> 01:03:05.760
the most common question I get about

01:03:05.760 --> 01:03:07.760
Terra constructs. Like sounds great, but

01:03:07.760 --> 01:03:10.319
how do you actually use it? And that's

01:03:10.319 --> 01:03:12.079
what I try to focus on on this

01:03:12.079 --> 01:03:13.680
presentation.

01:03:13.680 --> 01:03:15.760
>> So yeah, you're saying that this is the

01:03:15.760 --> 01:03:18.480
most common questions uh why of the

01:03:18.480 --> 01:03:19.200
thing.

01:03:19.200 --> 01:03:21.200
>> Yeah. So after I talk about all of the

01:03:21.200 --> 01:03:22.640
great things that you can, you know,

01:03:22.640 --> 01:03:24.640
that you get because now you get these

01:03:24.640 --> 01:03:26.720
really nice developer patterns or

01:03:26.720 --> 01:03:28.319
service integration patterns.

01:03:28.319 --> 01:03:29.920
>> Now, now that you mentioned Atlantis,

01:03:29.920 --> 01:03:32.640
yeah, Atlantis is uh is great. I

01:03:32.640 --> 01:03:33.680
actually need to work out how to

01:03:33.680 --> 01:03:35.920
introduce that into my into my uh

01:03:35.920 --> 01:03:39.440
company. M so I'm I'm I have a

01:03:39.440 --> 01:03:43.280
customuilt EMI and I have custom CDKTF

01:03:43.280 --> 01:03:45.680
workflows and I want to for Terra

01:03:45.680 --> 01:03:49.680
constructs and I want to publish my AMI

01:03:49.680 --> 01:03:52.319
as like the bootstrap for Terra

01:03:52.319 --> 01:03:53.920
Construct. So if you want to start with

01:03:53.920 --> 01:03:56.480
Terra Constructs in your organization

01:03:56.480 --> 01:03:59.280
here is your construct to bootstrapped

01:03:59.280 --> 01:04:02.160
Atlantis. So it deploys Atlantis with

01:04:02.160 --> 01:04:04.799
all of the settings for running CDKTF

01:04:04.799 --> 01:04:06.559
synthesis to Terapform running Terapform

01:04:06.559 --> 01:04:08.160
apply integration with your pull request

01:04:08.160 --> 01:04:08.960
and all that.

01:04:08.960 --> 01:04:13.359
>> That's my I mean if you yeah like if if

01:04:13.359 --> 01:04:13.760
you

01:04:13.760 --> 01:04:16.079
>> but I don't have if your elevator pitch

01:04:16.079 --> 01:04:18.880
is basically how to use Atlantis with

01:04:18.880 --> 01:04:23.520
CDK I think I get it actually. My my

01:04:23.520 --> 01:04:26.079
pitch is you want better devx for your

01:04:26.079 --> 01:04:31.119
developers and most people are like

01:04:31.119 --> 01:04:32.880
uh it's complicated why do I need an

01:04:32.880 --> 01:04:34.480
additional synthesis step how do I

01:04:34.480 --> 01:04:37.839
integrate it into my Atlantis um I can't

01:04:37.839 --> 01:04:39.599
control my developers and my engineers

01:04:39.599 --> 01:04:40.880
they are very creative they create

01:04:40.880 --> 01:04:42.720
really convoluted

01:04:42.720 --> 01:04:44.400
infrastructure if I let them write them

01:04:44.400 --> 01:04:46.559
in typescript uh how do you control that

01:04:46.559 --> 01:04:49.280
well that's where I think part of

01:04:49.280 --> 01:04:51.920
product like platform team is that you

01:04:51.920 --> 01:04:53.920
surface is the pattern so that you can

01:04:53.920 --> 01:04:56.559
you know with bootstraps so that you can

01:04:56.559 --> 01:04:59.200
>> so that you extract the convoluted

01:04:59.200 --> 01:05:01.119
patterns into reusable patterns I don't

01:05:01.119 --> 01:05:01.599
know

01:05:01.599 --> 01:05:03.440
>> to keep the things align I mean the same

01:05:03.440 --> 01:05:04.720
thing with modules right people are

01:05:04.720 --> 01:05:06.480
going to write crazy modules

01:05:06.480 --> 01:05:09.440
>> it sounds like you are doing a a great

01:05:09.440 --> 01:05:10.799
thing in a sense like allowing the

01:05:10.799 --> 01:05:13.359
product team to use a code that's

01:05:13.359 --> 01:05:16.960
familiar to them but ultimately uh

01:05:16.960 --> 01:05:19.200
keeping Terraformers

01:05:19.200 --> 01:05:22.559
>> the first class infrastructure uh uh

01:05:22.559 --> 01:05:24.880
DevX I think that makes a lot of sense

01:05:24.880 --> 01:05:25.599
actually

01:05:25.599 --> 01:05:27.440
>> I'm trying to bridge the platform team

01:05:27.440 --> 01:05:29.280
and the product team because the

01:05:29.280 --> 01:05:31.440
platform team lives in breeds terapform

01:05:31.440 --> 01:05:33.760
they have three years of you know code

01:05:33.760 --> 01:05:36.000
scanning they have their whatever maybe

01:05:36.000 --> 01:05:37.440
they're not using Atlantis but they have

01:05:37.440 --> 01:05:39.280
their own GitHub workflows to run and

01:05:39.280 --> 01:05:42.559
apply um their Terraform with pull

01:05:42.559 --> 01:05:45.039
request like PR reviews uh previews

01:05:45.039 --> 01:05:46.079
sorry yeah

01:05:46.079 --> 01:05:48.799
>> I I love what you just said there uh

01:05:48.799 --> 01:05:51.200
building a bridge between platform and

01:05:51.200 --> 01:05:53.839
and product team though like I'm just

01:05:53.839 --> 01:05:56.079
also mapping this to my current uh gig

01:05:56.079 --> 01:05:58.400
right now. I mean I think if I showed

01:05:58.400 --> 01:06:00.400
them this at at my workplace they would

01:06:00.400 --> 01:06:02.640
be terrified because we don't want

01:06:02.640 --> 01:06:04.880
products to develop to write

01:06:04.880 --> 01:06:07.599
infrastructure as code. We want them to

01:06:07.599 --> 01:06:09.920
config like we want a very very tight

01:06:09.920 --> 01:06:13.119
configuration for them like all all

01:06:13.119 --> 01:06:15.359
>> find this funny because there's a saying

01:06:15.359 --> 01:06:19.599
is it from

01:06:19.599 --> 01:06:22.720
we want products to be able to do what

01:06:22.720 --> 01:06:24.240
they need to do without being blocked by

01:06:24.240 --> 01:06:26.319
platform right platform must provide

01:06:26.319 --> 01:06:28.880
golden paths must provide easy adoption

01:06:28.880 --> 01:06:32.960
for the um for the cloud but they cannot

01:06:32.960 --> 01:06:34.240
be the bottleneck they cannot be the

01:06:34.240 --> 01:06:35.920
ones that are preventing

01:06:35.920 --> 01:06:38.559
the team. Um,

01:06:38.559 --> 01:06:41.440
>> well, that's I I agree. I totally agree

01:06:41.440 --> 01:06:45.039
with that. But like but in a in a

01:06:45.039 --> 01:06:47.039
>> uh Yeah, but in a in a but in a big

01:06:47.039 --> 01:06:50.559
company it it's not scalable.

01:06:50.559 --> 01:06:52.559
I I can see it making a thousand.

01:06:52.559 --> 01:06:54.079
>> No, that's why platform teams exist,

01:06:54.079 --> 01:06:56.079
right? Platform teams are supposed to

01:06:56.079 --> 01:06:58.400
provide the tools so that you can keep

01:06:58.400 --> 01:07:00.000
it under control so that the product

01:07:00.000 --> 01:07:02.480
teams can still evolve. So you in like

01:07:02.480 --> 01:07:03.760
big banks you will have like a

01:07:03.760 --> 01:07:05.920
declarative YAML config file that under

01:07:05.920 --> 01:07:08.240
the hood sets up 10 different terraform

01:07:08.240 --> 01:07:10.160
modules in just the right way so that

01:07:10.160 --> 01:07:12.240
they get deploy uh what they need or

01:07:12.240 --> 01:07:13.839
maybe use custom resources because

01:07:13.839 --> 01:07:18.079
you're on Kubernetes or whatever right

01:07:18.079 --> 01:07:20.960
so this is from platform con 20 uh 2024

01:07:20.960 --> 01:07:23.599
talk from Gregor Hop and he talks like

01:07:23.599 --> 01:07:26.400
nobody wants 80% of Dynamob like your

01:07:26.400 --> 01:07:28.640
module is not just like exposing sane

01:07:28.640 --> 01:07:30.880
defaults as a better Dynamob under under

01:07:30.880 --> 01:07:33.200
the hood, they still need the features

01:07:33.200 --> 01:07:35.440
of Dynamob and if your module doesn't

01:07:35.440 --> 01:07:37.599
expose it, your module is not better,

01:07:37.599 --> 01:07:39.760
right? It's just it's just restricting

01:07:39.760 --> 01:07:41.359
access to it. But it's

01:07:41.359 --> 01:07:44.000
>> that's a very that's very interesting.

01:07:44.000 --> 01:07:46.079
Uh

01:07:46.079 --> 01:07:47.760
did you ever meet Gregor? Because he

01:07:47.760 --> 01:07:49.839
used he lived in Singapore a few fair

01:07:49.839 --> 01:07:50.960
few years.

01:07:50.960 --> 01:07:53.839
>> I was at a few conferences where he was

01:07:53.839 --> 01:07:56.799
as well, but I never really interacted

01:07:56.799 --> 01:07:59.200
much with him. Yeah, he he spoke at the

01:07:59.200 --> 01:08:01.440
AWS meetup, too. That this is very

01:08:01.440 --> 01:08:04.160
interesting because like I think I mean

01:08:04.160 --> 01:08:06.079
I feel like I've been drinking through a

01:08:06.079 --> 01:08:08.799
straw somehow because every every gig

01:08:08.799 --> 01:08:13.280
I'm on, we make a module to give give,

01:08:13.280 --> 01:08:18.000
you know, 80% to the developer. And now

01:08:18.000 --> 01:08:19.520
you're sort of you're sort of flipping

01:08:19.520 --> 01:08:22.000
the table over here by saying that no

01:08:22.000 --> 01:08:24.960
you're uh

01:08:24.960 --> 01:08:27.279
your platform team should be allowing

01:08:27.279 --> 01:08:29.279
them to do

01:08:29.279 --> 01:08:32.719
>> one of my previous CTOs at uh previous

01:08:32.719 --> 01:08:34.799
company he was ex AWS as well I don't

01:08:34.799 --> 01:08:36.239
think he was in a technical role there

01:08:36.239 --> 01:08:38.880
but he um basically had a lot of

01:08:38.880 --> 01:08:40.880
experience on how they did things at AWS

01:08:40.880 --> 01:08:42.400
and he says the platform team's

01:08:42.400 --> 01:08:44.480
responsibility is to put in guard rails

01:08:44.480 --> 01:08:46.159
they're not the bottleneck they just

01:08:46.159 --> 01:08:47.679
need to make sure that teams can do what

01:08:47.679 --> 01:08:49.279
they need to do without shooting

01:08:49.279 --> 01:08:51.359
themselves in the foot. So your job

01:08:51.359 --> 01:08:54.239
really is put in place, you know, the

01:08:54.239 --> 01:08:56.319
the scanners, the llinters and the

01:08:56.319 --> 01:08:58.640
dashboards around it. So if we do have a

01:08:58.640 --> 01:09:01.199
misconfiguration, we can catch it as

01:09:01.199 --> 01:09:02.880
most of the lift as possible.

01:09:02.880 --> 01:09:04.880
>> I mean, I'm I I'm fully behind that.

01:09:04.880 --> 01:09:08.319
Like so basically the platform team

01:09:08.319 --> 01:09:11.359
isn't uh producing modules, they're more

01:09:11.359 --> 01:09:13.600
like producing confest type stuff,

01:09:13.600 --> 01:09:16.080
right? Or linting type stuff. But like

01:09:16.080 --> 01:09:16.880
I've just never seen

01:09:16.880 --> 01:09:19.359
>> but at the same time like the goal of

01:09:19.359 --> 01:09:22.960
the platform team is to observe teams

01:09:22.960 --> 01:09:26.319
usage of the cloud and extract golden PS

01:09:26.319 --> 01:09:28.319
so that we can keep teams aligned so

01:09:28.319 --> 01:09:30.239
that you know teams don't do completely

01:09:30.239 --> 01:09:32.080
different things so that if a new team

01:09:32.080 --> 01:09:34.000
wants to start a new project they have a

01:09:34.000 --> 01:09:36.239
tech radar and they can figure out today

01:09:36.239 --> 01:09:38.880
the recommended way of doing that is

01:09:38.880 --> 01:09:41.440
using this golden path and if I follow

01:09:41.440 --> 01:09:42.719
this golden path

01:09:42.719 --> 01:09:44.080
>> that definitely doesn't happen in my

01:09:44.080 --> 01:09:46.880
current workplace like The idea is that

01:09:46.880 --> 01:09:49.759
is that uh we're laying the tracks

01:09:49.759 --> 01:09:52.319
before the product teams get there and

01:09:52.319 --> 01:09:54.159
uh hopefully it's the tracks that they

01:09:54.159 --> 01:09:57.280
want to take which is something that

01:09:57.280 --> 01:09:59.920
I've always heard as a complaint around

01:09:59.920 --> 01:10:01.600
platform teams and actually one company

01:10:01.600 --> 01:10:04.159
I worked at was very resistant and very

01:10:04.159 --> 01:10:06.239
against towards moving towards a

01:10:06.239 --> 01:10:08.480
platform team they had embedded SRE

01:10:08.480 --> 01:10:10.560
there was a huge um compliance

01:10:10.560 --> 01:10:13.199
initiative and they completely refused

01:10:13.199 --> 01:10:14.239
because they were like you guys are

01:10:14.239 --> 01:10:15.280
going to be a bottleneck. You're going

01:10:15.280 --> 01:10:17.520
to prevent us to do what we want to do.

01:10:17.520 --> 01:10:21.840
>> And and to just to be clear, uh I as an

01:10:21.840 --> 01:10:23.760
infrastructure engineer, I I hate

01:10:23.760 --> 01:10:26.080
platform teams. The whole idea for me is

01:10:26.080 --> 01:10:28.320
just terrible. I'm more in favor of a

01:10:28.320 --> 01:10:30.880
cross functional embedded uh so uh

01:10:30.880 --> 01:10:32.239
embedded infrastructure engineer

01:10:32.239 --> 01:10:33.199
pattern,

01:10:33.199 --> 01:10:35.280
>> but I always end up as the

01:10:35.280 --> 01:10:36.800
infrastructure engineer in a platform

01:10:36.800 --> 01:10:40.080
team essentially. Uh and the funny thing

01:10:40.080 --> 01:10:41.600
is I've been at a lot of organization

01:10:41.600 --> 01:10:43.679
that try to push me towards in embedded

01:10:43.679 --> 01:10:47.360
SR role and I always end up completely

01:10:47.360 --> 01:10:49.440
withdrawing myself from product and

01:10:49.440 --> 01:10:51.840
focusing 100% on the cloud and the CI/CD

01:10:51.840 --> 01:10:53.760
and how to make a solution that

01:10:53.760 --> 01:10:56.080
stretches across all the teams and then

01:10:56.080 --> 01:10:57.760
complaining if people are not using it.

01:10:57.760 --> 01:11:00.400
So I I have like the the opposite like

01:11:00.400 --> 01:11:01.840
habits of view

01:11:01.840 --> 01:11:04.640
>> but I I try to really focus now like I

01:11:04.640 --> 01:11:06.080
want to be part of the of the product

01:11:06.080 --> 01:11:07.600
team. I want to be part of the road map

01:11:07.600 --> 01:11:08.640
but it's very hard for me.

01:11:08.640 --> 01:11:11.040
>> There's some very interesting approaches

01:11:11.040 --> 01:11:14.400
here. I mean can you I mean I can't

01:11:14.400 --> 01:11:16.719
claim to I can't claim the current

01:11:16.719 --> 01:11:21.040
working uh approach in my client is is

01:11:21.040 --> 01:11:23.679
successful. I can't claim that at all

01:11:23.679 --> 01:11:27.280
but it's very uh conservative and very u

01:11:27.280 --> 01:11:29.520
established way of doing things. Can you

01:11:29.520 --> 01:11:32.320
honestly say to me, Vincent, that you've

01:11:32.320 --> 01:11:34.400
you've worked with product teams and

01:11:34.400 --> 01:11:36.880
you've given them a golden what did you

01:11:36.880 --> 01:11:37.840
say? A golden

01:11:37.840 --> 01:11:38.719
>> golden path.

01:11:38.719 --> 01:11:40.560
>> A golden path and they loved it. I mean,

01:11:40.560 --> 01:11:42.400
that sounds also kind of Let's be

01:11:42.400 --> 01:11:43.840
honest.

01:11:43.840 --> 01:11:45.600
>> I did I say that I give them a golden

01:11:45.600 --> 01:11:47.679
path and they loved it.

01:11:47.679 --> 01:11:48.320
>> Well, I mean,

01:11:48.320 --> 01:11:50.159
>> I I did work at one organization.

01:11:50.159 --> 01:11:52.080
>> That's what you're alluding to, right?

01:11:52.080 --> 01:11:54.320
So we did I did in in that same

01:11:54.320 --> 01:11:57.280
organization where they went full in on

01:11:57.280 --> 01:12:00.560
AWS CDK um where the platform team had a

01:12:00.560 --> 01:12:03.120
lot of Terraform. We had a very heavy

01:12:03.120 --> 01:12:05.199
Kubernetes footprint and we built a

01:12:05.199 --> 01:12:07.920
Golang CLI that bootstrapped deployments

01:12:07.920 --> 01:12:11.600
on top of Kubernetes and

01:12:11.600 --> 01:12:14.239
we had the funny thing is we had like 40

01:12:14.239 --> 01:12:16.320
brands and but it was behind it was

01:12:16.320 --> 01:12:19.520
always this two teams and so it was very

01:12:19.520 --> 01:12:22.159
easy to roll it out across the teams and

01:12:22.159 --> 01:12:24.560
we were able to like align all of the

01:12:24.560 --> 01:12:26.560
teams but we did get the feedback from

01:12:26.560 --> 01:12:28.960
the CTO like I I didn't mean to create

01:12:28.960 --> 01:12:31.679
like an isolated team that built the

01:12:31.679 --> 01:12:33.600
platform and then another isolated and

01:12:33.600 --> 01:12:36.000
then the product team. We want I wanted

01:12:36.000 --> 01:12:37.760
DevOps. I wanted you know embedded

01:12:37.760 --> 01:12:41.199
SRRES. I wanted you guys to to build on

01:12:41.199 --> 01:12:47.520
you know for the product and I mean

01:12:47.520 --> 01:12:50.960
I don't know um we rolled it out we used

01:12:50.960 --> 01:12:53.840
it. It was we used Argo CD so it was

01:12:53.840 --> 01:12:56.400
generating all of the uh manifests for

01:12:56.400 --> 01:13:00.080
our GitOps and it was able to centralize

01:13:00.080 --> 01:13:02.480
the Helm charts. So we had like the

01:13:02.480 --> 01:13:05.679
ability to roll out and ch make changes.

01:13:05.679 --> 01:13:07.679
I think the biggest problem right when

01:13:07.679 --> 01:13:09.520
people when teams move away from like

01:13:09.520 --> 01:13:11.920
embedded SRS towards platform teams is

01:13:11.920 --> 01:13:13.920
compliance. When you start doing audits

01:13:13.920 --> 01:13:16.000
and sock 2 and all that then suddenly

01:13:16.000 --> 01:13:17.760
now you have to integrate the zero trust

01:13:17.760 --> 01:13:19.520
all over the company. Now you certainly

01:13:19.520 --> 01:13:21.280
have to have the you know bill of uh

01:13:21.280 --> 01:13:23.360
software bill of material asbomb and you

01:13:23.360 --> 01:13:25.440
have to track and you know provide audit

01:13:25.440 --> 01:13:27.280
reports that you are addressing uh

01:13:27.280 --> 01:13:30.239
vulnerabilities um on on time. You have

01:13:30.239 --> 01:13:32.080
to provide your full uh network

01:13:32.080 --> 01:13:34.800
infrastructure and your firewall rules

01:13:34.800 --> 01:13:37.679
as a compliance audit report quarterly.

01:13:37.679 --> 01:13:39.199
You have to have great glassass

01:13:39.199 --> 01:13:41.920
functionality. When all of that becomes

01:13:41.920 --> 01:13:44.159
imperative to the product teams,

01:13:44.159 --> 01:13:46.880
suddenly you need to have a more

01:13:46.880 --> 01:13:48.880
centralized approach towards managing

01:13:48.880 --> 01:13:50.800
your infrastructure. And that's where

01:13:50.800 --> 01:13:52.400
organizations tend to then switch more

01:13:52.400 --> 01:13:54.320
towards platform teams. That's also I

01:13:54.320 --> 01:13:56.560
think one of Hashikcom's um

01:13:56.560 --> 01:13:59.440
presentations from like evolution of

01:13:59.440 --> 01:14:01.440
like maturity. So all of the

01:14:01.440 --> 01:14:05.600
organizations start with this um

01:14:05.600 --> 01:14:06.960
no that's not what I wanted. I just

01:14:06.960 --> 01:14:07.280
wanted

01:14:07.280 --> 01:14:10.480
>> center view. Who who does that?

01:14:10.480 --> 01:14:14.320
>> Uh I'm clearly not a a dude that's used

01:14:14.320 --> 01:14:16.400
to make presentations. Anyway, so so

01:14:16.400 --> 01:14:18.320
stage one like singular teams, ad hoc

01:14:18.320 --> 01:14:19.679
approach, everyone does whatever they

01:14:19.679 --> 01:14:21.679
want. Sing to standardizing, centralized

01:14:21.679 --> 01:14:23.040
deploys, policy enforcement, team

01:14:23.040 --> 01:14:24.880
collaborations, and then platform team

01:14:24.880 --> 01:14:26.000
self-service.

01:14:26.000 --> 01:14:28.239
>> Yeah. I'm I'm usually in that stage

01:14:28.239 --> 01:14:32.560
three uh uh what do you call it journey?

01:14:32.560 --> 01:14:33.440
Yeah.

01:14:33.440 --> 01:14:36.320
>> Yeah. So so and and that's also funny

01:14:36.320 --> 01:14:39.040
because like most Most startups or

01:14:39.040 --> 01:14:41.360
organizations don't hire DevOps until

01:14:41.360 --> 01:14:43.280
they start hitting these centralization

01:14:43.280 --> 01:14:45.120
problems, right? And then they're hiring

01:14:45.120 --> 01:14:46.800
DevOps because they have reliability

01:14:46.800 --> 01:14:49.280
issues. They have a disparity in

01:14:49.280 --> 01:14:50.640
technology stacks across different

01:14:50.640 --> 01:14:52.880
teams. They have no way of like rolling

01:14:52.880 --> 01:14:54.880
out compliance. Uh but the good thing is

01:14:54.880 --> 01:14:56.640
they have money, they have revenue and

01:14:56.640 --> 01:14:59.440
so they can hire DevOps team which is

01:14:59.440 --> 01:15:01.520
DevOps. the whole idea of like being

01:15:01.520 --> 01:15:04.000
embedded in like breaking down the walls

01:15:04.000 --> 01:15:06.400
uh being doing agile now becomes no we

01:15:06.400 --> 01:15:07.600
actually are hiring a system

01:15:07.600 --> 01:15:09.360
administration team to help us adopt the

01:15:09.360 --> 01:15:11.840
cloud and tame it and

01:15:11.840 --> 01:15:14.960
>> are you suggesting standardizing is uh

01:15:14.960 --> 01:15:18.000
is dev is is the embedded approach

01:15:18.000 --> 01:15:18.640
because

01:15:18.640 --> 01:15:21.760
>> no no no no standardizing is the

01:15:21.760 --> 01:15:24.000
platform approach.

01:15:24.000 --> 01:15:26.480
Yeah, because I thought

01:15:26.480 --> 01:15:28.960
>> a lot of organizations they will have um

01:15:28.960 --> 01:15:32.560
>> so so so so stage one so stage one is

01:15:32.560 --> 01:15:35.199
the is the uh cross functional team

01:15:35.199 --> 01:15:38.400
approach right? Yeah. And then and then

01:15:38.400 --> 01:15:40.560
already in stage two we have to have

01:15:40.560 --> 01:15:41.440
>> So what do you mean with cross

01:15:41.440 --> 01:15:43.360
functional? I think stage one is when

01:15:43.360 --> 01:15:45.280
every team has like ah cross functional

01:15:45.280 --> 01:15:46.480
meaning every team has a guy doing

01:15:46.480 --> 01:15:47.840
DevOps or the CI/CD.

01:15:47.840 --> 01:15:48.719
>> Yeah. Exactly.

01:15:48.719 --> 01:15:50.080
>> More like embedded. Right. Yeah.

01:15:50.080 --> 01:15:53.120
>> Yeah. It's interchangeable here to me.

01:15:53.120 --> 01:15:56.320
So stage one is embedded because that's

01:15:56.320 --> 01:15:59.520
because we because at my my employ my my

01:15:59.520 --> 01:16:02.080
consultancy employer we we always

01:16:02.080 --> 01:16:04.880
advocate uh a cross functional embedded

01:16:04.880 --> 01:16:07.360
uh infrastructure engineer but it never

01:16:07.360 --> 01:16:09.440
really happens for one reason or another

01:16:09.440 --> 01:16:11.440
as I mentioned. So and that's already

01:16:11.440 --> 01:16:14.000
stage one. I feel that's that's kind of

01:16:14.000 --> 01:16:15.440
frightening because there's a very

01:16:15.440 --> 01:16:17.199
interesting book that one of a candidate

01:16:17.199 --> 01:16:18.640
I interviewed pointed me out. I think he

01:16:18.640 --> 01:16:20.480
worked at works as well. He told me that

01:16:20.480 --> 01:16:23.120
to read team topologies which is there's

01:16:23.120 --> 01:16:26.080
an evolution of the teams and and how

01:16:26.080 --> 01:16:28.159
you like there's there's an in between

01:16:28.159 --> 01:16:29.760
there's like fully embedded everyone

01:16:29.760 --> 01:16:32.400
does its own there's like platform at

01:16:32.400 --> 01:16:33.920
complete opposite and then there's like

01:16:33.920 --> 01:16:36.159
a cross like a lot of like bandwidth

01:16:36.159 --> 01:16:38.239
between um how you may have

01:16:38.239 --> 01:16:40.000
>> because because this diagram doesn't

01:16:40.000 --> 01:16:42.960
seem to even it's it's either like

01:16:42.960 --> 01:16:44.960
>> yeah no this is a sales pitch from Hashi

01:16:44.960 --> 01:16:46.480
Corp which sells a platform solution

01:16:46.480 --> 01:16:47.520
right

01:16:47.520 --> 01:16:50.560
>> yeah I get it I get Uh yeah, so this was

01:16:50.560 --> 01:16:52.640
a original slideshow that I made for

01:16:52.640 --> 01:16:54.400
before I started Terra Constructs which

01:16:54.400 --> 01:16:55.760
was the idea was to make something

01:16:55.760 --> 01:16:57.440
called the environment toolkit and I

01:16:57.440 --> 01:16:59.760
don't know why I cannot zoom in uh zoom

01:16:59.760 --> 01:17:03.600
out anymore. Um but basically

01:17:03.600 --> 01:17:07.120
the problem is that we have two personas

01:17:07.120 --> 01:17:09.199
in a lot of organizations. We have

01:17:09.199 --> 01:17:11.199
product teams, we have platform teams.

01:17:11.199 --> 01:17:13.199
Well, there's a few others, but like uh

01:17:13.199 --> 01:17:15.840
and the idea was like the app team, they

01:17:15.840 --> 01:17:19.600
are the ones that need the like a very

01:17:19.600 --> 01:17:20.960
nice interface. They should

01:17:20.960 --> 01:17:22.640
>> if you just give them YAML without any

01:17:22.640 --> 01:17:24.560
schema, then they may shoot them, they

01:17:24.560 --> 01:17:27.280
may not really know how it works. Um and

01:17:27.280 --> 01:17:29.840
and it's not a very nice experience for

01:17:29.840 --> 01:17:31.520
them, but that's commonly what's done

01:17:31.520 --> 01:17:32.719
today, which is like you give them a

01:17:32.719 --> 01:17:34.640
YAML spec file that they have to fill in

01:17:34.640 --> 01:17:36.719
and then under the hood, the platform

01:17:36.719 --> 01:17:39.120
team builds the actual modules. like you

01:17:39.120 --> 01:17:41.760
say they set the path they they

01:17:41.760 --> 01:17:44.000
>> the things right um

01:17:44.000 --> 01:17:46.000
>> why do you say why do you say it's not

01:17:46.000 --> 01:17:49.280
very nice

01:17:49.280 --> 01:17:51.840
>> cuz well

01:17:51.840 --> 01:17:53.440
>> I think YL is not very nice

01:17:53.440 --> 01:17:55.520
>> well I mean it's I mean it's a lot

01:17:55.520 --> 01:17:58.320
easier than them bloody writing code CDK

01:17:58.320 --> 01:18:01.280
let's be honest

01:18:01.280 --> 01:18:03.360
>> why is the file read only this is my

01:18:03.360 --> 01:18:04.960
file

01:18:04.960 --> 01:18:06.880
>> and maybe maybe a separate comp

01:18:06.880 --> 01:18:09.360
>> sorry did you say again about what's not

01:18:09.360 --> 01:18:10.320
very nice.

01:18:10.320 --> 01:18:13.280
>> The the YAML driven

01:18:13.280 --> 01:18:17.679
uh product team. What's wrong with that?

01:18:17.679 --> 01:18:22.400
>> Um the problem with YAML is that

01:18:22.400 --> 01:18:25.360
if you miss a space, you get an error.

01:18:25.360 --> 01:18:28.000
If you you don't know exactly where

01:18:28.000 --> 01:18:29.760
>> use pickle, guys.

01:18:29.760 --> 01:18:31.440
>> No, you should use a proper programming

01:18:31.440 --> 01:18:33.520
language. Stop inventing all these

01:18:33.520 --> 01:18:36.640
additional like Q and um what's the

01:18:36.640 --> 01:18:38.960
other ones? JSON net and like there's a

01:18:38.960 --> 01:18:40.800
thousands of them there's a hundreds of

01:18:40.800 --> 01:18:42.560
them and all of them have the same

01:18:42.560 --> 01:18:43.440
problem

01:18:43.440 --> 01:18:45.040
>> but they become a programming language

01:18:45.040 --> 01:18:46.880
ultimately in the end all of them become

01:18:46.880 --> 01:18:47.760
programming languages

01:18:47.760 --> 01:18:50.719
>> during that conf

01:18:50.719 --> 01:18:53.120
I I I met some Apple engineers and they

01:18:53.120 --> 01:18:54.960
were they pitched pickle and I was

01:18:54.960 --> 01:18:57.040
convinced that pickle is the is is a

01:18:57.040 --> 01:18:59.120
really good way of uh

01:18:59.120 --> 01:19:00.800
>> yeah so so that that's what I'm trying

01:19:00.800 --> 01:19:03.600
to say with this thing here um there's a

01:19:03.600 --> 01:19:06.320
whole bunch of like you just told me the

01:19:06.320 --> 01:19:09.520
IDE experience. Does Spickle have a nice

01:19:09.520 --> 01:19:10.719
IDE in terms?

01:19:10.719 --> 01:19:14.400
>> It does. Unfortunately, it seems to

01:19:14.400 --> 01:19:15.760
>> Wrong example.

01:19:15.760 --> 01:19:18.080
>> They they seem to favor Jet Brains, but

01:19:18.080 --> 01:19:18.960
uh you know

01:19:18.960 --> 01:19:21.760
>> Oh, so anyway, does Pickle have a proper

01:19:21.760 --> 01:19:23.760
package manager and registry?

01:19:23.760 --> 01:19:26.159
>> Yes. Yes.

01:19:26.159 --> 01:19:29.440
>> It's so good. It's so good.

01:19:29.440 --> 01:19:32.960
>> This is is pickle touring complete?

01:19:32.960 --> 01:19:35.199
>> I think so. Yes.

01:19:35.199 --> 01:19:36.880
>> Wrong. Copic language shouldn't be too

01:19:36.880 --> 01:19:38.960
incomplete.

01:19:38.960 --> 01:19:40.000
>> Then why are you not writing it in

01:19:40.000 --> 01:19:42.159
Golang?

01:19:42.159 --> 01:19:44.159
>> Uh you can't expect people to pick up

01:19:44.159 --> 01:19:45.840
Golang.

01:19:45.840 --> 01:19:47.280
>> Yeah. So So

01:19:47.280 --> 01:19:49.280
>> Pickle's designed to

01:19:49.280 --> 01:19:52.080
>> for one task in mind. Uh is explained to

01:19:52.080 --> 01:19:55.600
me by by the um the Apple engineer. He

01:19:55.600 --> 01:20:00.400
says like uh you know you need it's the

01:20:00.400 --> 01:20:02.400
alarm has gone up gone off. It's 2:00

01:20:02.400 --> 01:20:04.320
a.m. and you need to make that change

01:20:04.320 --> 01:20:05.600
safely.

01:20:05.600 --> 01:20:09.199
So, so essentially you're logging into

01:20:09.199 --> 01:20:12.400
that m to that machine at 2 a.m. and

01:20:12.400 --> 01:20:14.480
making a config change that you could

01:20:14.480 --> 01:20:16.960
literally cannot mess up.

01:20:16.960 --> 01:20:19.520
>> Okay. Well, I don't know why I'm getting

01:20:19.520 --> 01:20:20.880
these results here, but it says the

01:20:20.880 --> 01:20:22.480
learning curve is really difficult. It

01:20:22.480 --> 01:20:25.280
has a GVM depend because I entered why

01:20:25.280 --> 01:20:27.760
you should not use pickle.

01:20:27.760 --> 01:20:30.000
>> That's actually a very good answer. U

01:20:30.000 --> 01:20:31.840
yeah that that's that's very good

01:20:31.840 --> 01:20:35.280
answer. like but yeah you're right it

01:20:35.280 --> 01:20:37.440
does require JVM but uh you know I can

01:20:37.440 --> 01:20:40.480
look past that

01:20:40.480 --> 01:20:42.880
and it it does have a learning curve but

01:20:42.880 --> 01:20:44.960
like oh my god I mean

01:20:44.960 --> 01:20:46.960
>> it's enhance safety and maintainability

01:20:46.960 --> 01:20:48.480
it's reduced duplication it's

01:20:48.480 --> 01:20:50.400
abstraction of modality to me pickle

01:20:50.400 --> 01:20:52.640
sounds like JSON net like why why should

01:20:52.640 --> 01:20:55.920
I use pickle and not JSON net

01:20:55.920 --> 01:20:57.760
>> JSON is horrible when I last looked at

01:20:57.760 --> 01:20:59.679
it

01:20:59.679 --> 01:21:02.880
>> yeah so agree like I never really got

01:21:02.880 --> 01:21:05.280
JSON at properly. Um, so

01:21:05.280 --> 01:21:07.360
>> also very very both like pickle's very

01:21:07.360 --> 01:21:09.520
tight actually. It looks looks and reads

01:21:09.520 --> 01:21:11.840
very nicely.

01:21:11.840 --> 01:21:12.159
>> Uh,

01:21:12.159 --> 01:21:14.239
>> I may have to play with it. But I have

01:21:14.239 --> 01:21:16.080
my my reason to get into Terra

01:21:16.080 --> 01:21:17.840
constructs and Typescript was

01:21:17.840 --> 01:21:19.520
specifically because TypeScript is

01:21:19.520 --> 01:21:22.400
everywhere. Uh, it's that's one of my my

01:21:22.400 --> 01:21:23.920
my

01:21:23.920 --> 01:21:24.800
tenets in life

01:21:24.800 --> 01:21:25.679
>> but still but still

01:21:25.679 --> 01:21:26.719
>> the last five years

01:21:26.719 --> 01:21:30.159
>> I I I don't think I can get behind. I

01:21:30.159 --> 01:21:31.679
mean, I can maybe you're working with

01:21:31.679 --> 01:21:33.760
startups, but I still think

01:21:33.760 --> 01:21:35.920
>> product teams maybe I've been working

01:21:35.920 --> 01:21:38.960
for too many big companies and stuff.

01:21:38.960 --> 01:21:42.800
>> Product teams shouldn't be writing uh

01:21:42.800 --> 01:21:46.239
CDK. It's going to get crazy real quick.

01:21:46.239 --> 01:21:48.080
>> That's always like when I talk about

01:21:48.080 --> 01:21:50.560
this is a standard reply. Startups

01:21:50.560 --> 01:21:52.400
shouldn't be writing CD like product

01:21:52.400 --> 01:21:53.920
engineers shouldn't be touching infra

01:21:53.920 --> 01:21:55.520
code and

01:21:55.520 --> 01:21:58.400
>> I mean I mean startups and midsize

01:21:58.400 --> 01:22:00.800
companies I think it's actually pretty

01:22:00.800 --> 01:22:03.280
quite good but if you're like a large

01:22:03.280 --> 01:22:06.639
heavily regulated industry that's never

01:22:06.639 --> 01:22:08.800
going to fly

01:22:08.800 --> 01:22:11.679
>> and I I think at that point you don't

01:22:11.679 --> 01:22:13.920
ask the product engineer to write it but

01:22:13.920 --> 01:22:15.679
you give the platform engineer the right

01:22:15.679 --> 01:22:18.080
tools to build better extractions for

01:22:18.080 --> 01:22:20.560
the pro for the product engineer. there

01:22:20.560 --> 01:22:22.080
because again like this is what we

01:22:22.080 --> 01:22:23.840
talked about last time as well. There's

01:22:23.840 --> 01:22:26.239
this deck CDK

01:22:26.239 --> 01:22:29.679
which gives you the ability to build a a

01:22:29.679 --> 01:22:33.760
strict types like strongly typed schema

01:22:33.760 --> 01:22:37.760
YAML um interface or front end which

01:22:37.760 --> 01:22:39.600
Pulumi also has which is like

01:22:39.600 --> 01:22:41.600
>> it reminds me of the the serverless

01:22:41.600 --> 01:22:42.880
application.

01:22:42.880 --> 01:22:46.560
>> Oh yes like SLA SAML

01:22:46.560 --> 01:22:49.679
>> uh not SAML sorry SAM. Oh yeah.

01:22:49.679 --> 01:22:51.199
Serverless applica. What is the end

01:22:51.199 --> 01:22:51.520
server?

01:22:51.520 --> 01:22:52.880
>> I've been doing too much authorization

01:22:52.880 --> 01:22:55.440
and authentication.

01:22:55.440 --> 01:22:58.000
>> Yeah. So, so but but this is a bit

01:22:58.000 --> 01:22:59.600
funny, right? Because it kind of like

01:22:59.600 --> 01:23:03.120
gives you the L2 con L2 or L3 construct

01:23:03.120 --> 01:23:05.840
as a YAML uh composition thing.

01:23:05.840 --> 01:23:07.520
>> Actually, I I love it. I love it. It

01:23:07.520 --> 01:23:10.000
works for me like uh nine out of 10

01:23:10.000 --> 01:23:11.679
times.

01:23:11.679 --> 01:23:13.600
>> And and I think that's kind of the

01:23:13.600 --> 01:23:15.520
experience that we can build on top of

01:23:15.520 --> 01:23:17.760
Terra constructs or CDKF. basically a

01:23:17.760 --> 01:23:20.719
front end question right under the hood

01:23:20.719 --> 01:23:22.560
like docker file is a front end they

01:23:22.560 --> 01:23:25.199
completely reworked uh docker as well

01:23:25.199 --> 01:23:27.199
like docker file does is not the

01:23:27.199 --> 01:23:28.560
standard like you can have different

01:23:28.560 --> 01:23:30.239
front ends you can have a yaml front end

01:23:30.239 --> 01:23:32.320
you can have an other front end because

01:23:32.320 --> 01:23:34.639
now you're building actual proper

01:23:34.639 --> 01:23:37.040
programming objects that can you know

01:23:37.040 --> 01:23:39.280
bind themselves and evolve and can be

01:23:39.280 --> 01:23:41.040
configured differently you're not stuck

01:23:41.040 --> 01:23:43.040
with static terraform modules that you

01:23:43.040 --> 01:23:44.639
then have to bunch put a whole bunch of

01:23:44.639 --> 01:23:47.040
go templating around because you're

01:23:47.040 --> 01:23:49.520
asking you're giving your engineers um a

01:23:49.520 --> 01:23:51.760
YAML interface to basically configure

01:23:51.760 --> 01:23:53.199
modules under the hood. That's what I

01:23:53.199 --> 01:23:55.040
hear banks do, right? And and it's the

01:23:55.040 --> 01:23:56.480
same with with Kubernetes. That's

01:23:56.480 --> 01:23:58.159
exactly what Helm is. You're just

01:23:58.159 --> 01:24:00.000
putting Go templating around bunch of

01:24:00.000 --> 01:24:02.719
YAML, which is Kubernetes um resource

01:24:02.719 --> 01:24:04.960
definitions or manifests, right? And and

01:24:04.960 --> 01:24:06.560
and

01:24:06.560 --> 01:24:09.760
we see where that goes. We see a Helm

01:24:09.760 --> 01:24:12.159
chart with like a values.yamel where you

01:24:12.159 --> 01:24:13.840
have no idea how that gets, you know,

01:24:13.840 --> 01:24:15.679
interpolated by the gold templates under

01:24:15.679 --> 01:24:17.120
the hood. The gold templates are

01:24:17.120 --> 01:24:19.040
extremely complicated with like

01:24:19.040 --> 01:24:19.520
>> well

01:24:19.520 --> 01:24:21.199
>> too much logic within the template

01:24:21.199 --> 01:24:21.760
engine.

01:24:21.760 --> 01:24:23.679
>> That's why I showed you that Terraform

01:24:23.679 --> 01:24:25.440
project that I was cooking up the other

01:24:25.440 --> 01:24:29.520
day because because I use pickle and and

01:24:29.520 --> 01:24:31.520
when you run it through pickle you can

01:24:31.520 --> 01:24:33.520
see the pickle schema. You can see your

01:24:33.520 --> 01:24:36.639
pickle. You can see how it it it becomes

01:24:36.639 --> 01:24:38.639
Terraform JSON. But why do I have to

01:24:38.639 --> 01:24:40.960
learn a new language when Typescript is

01:24:40.960 --> 01:24:42.400
already a TypeScript compiler that gives

01:24:42.400 --> 01:24:44.719
me strong typing and capabilities like

01:24:44.719 --> 01:24:46.400
Pickle except I don't have to learn

01:24:46.400 --> 01:24:48.800
Pickle and I can just run TypeScript.

01:24:48.800 --> 01:24:51.199
>> Well, the thing that I like about it is

01:24:51.199 --> 01:24:53.600
that it's clear to me

01:24:53.600 --> 01:24:55.760
what

01:24:55.760 --> 01:24:58.000
what is the entry point into Terraform

01:24:58.000 --> 01:24:59.679
when I'm writing in Pickle. It's it's

01:24:59.679 --> 01:25:01.840
very it's clear as day. But if you're

01:25:01.840 --> 01:25:04.000
writing CDK

01:25:04.000 --> 01:25:07.360
uh and using Terra constructs, then then

01:25:07.360 --> 01:25:10.000
you you really don't know what the

01:25:10.000 --> 01:25:11.440
Terraform resources are going to look

01:25:11.440 --> 01:25:13.679
like until the

01:25:13.679 --> 01:25:15.120
>> No, that's not the same thing as what

01:25:15.120 --> 01:25:16.320
you just started the sentence with. You

01:25:16.320 --> 01:25:19.199
said you you you know the entry point

01:25:19.199 --> 01:25:20.639
and then you say you don't know what's

01:25:20.639 --> 01:25:22.960
going to look like. That is a very

01:25:22.960 --> 01:25:24.960
different

01:25:24.960 --> 01:25:27.440
I know the entry point when I use CDK. I

01:25:27.440 --> 01:25:29.040
know exactly how this is going to get

01:25:29.040 --> 01:25:31.199
invoked uh because I have a strongly

01:25:31.199 --> 01:25:32.880
typed interface now that is defined

01:25:32.880 --> 01:25:34.719
under TypeScript and TypeScript compiles

01:25:34.719 --> 01:25:36.800
to JSON schema. So I can expose that

01:25:36.800 --> 01:25:39.040
typed interface as a with a JSON schema

01:25:39.040 --> 01:25:41.040
on top of a YAML file and then my

01:25:41.040 --> 01:25:43.440
engineers can write YAML uh except they

01:25:43.440 --> 01:25:44.960
get an error message if they don't put

01:25:44.960 --> 01:25:46.320
the field in the right place or if they

01:25:46.320 --> 01:25:48.560
have a typo or if they put misplace a a

01:25:48.560 --> 01:25:50.000
space. Maybe you get the same with

01:25:50.000 --> 01:25:52.159
pickle because you get a strongly typed

01:25:52.159 --> 01:25:54.159
pickle file or pickle config. But you

01:25:54.159 --> 01:25:55.920
get exactly the same with TypeScript.

01:25:55.920 --> 01:25:57.920
You can expose it as a JSON schema and

01:25:57.920 --> 01:25:59.600
you can allow people to provide config

01:25:59.600 --> 01:26:01.199
files and you can control the entry

01:26:01.199 --> 01:26:02.480
points.

01:26:02.480 --> 01:26:04.880
>> Okay. Okay. I I might have misspoke here

01:26:04.880 --> 01:26:06.080
but what I'm trying to say is that the

01:26:06.080 --> 01:26:10.560
the translation is is more is more uh

01:26:10.560 --> 01:26:13.120
straightforward in my mind because

01:26:13.120 --> 01:26:14.480
>> but then you're not dealing with

01:26:14.480 --> 01:26:16.400
complicated terapform configurations.

01:26:16.400 --> 01:26:18.320
You're probably I I need to know exactly

01:26:18.320 --> 01:26:19.760
what is a terapform configuration.

01:26:19.760 --> 01:26:23.199
>> Yeah. I mean, am I rec

01:26:23.199 --> 01:26:25.120
I'm just I'm just mapping it into a

01:26:25.120 --> 01:26:27.280
module and you're right when you when

01:26:27.280 --> 01:26:29.440
you in your example when you're messing

01:26:29.440 --> 01:26:32.719
around with API gateway or or lambda

01:26:32.719 --> 01:26:34.080
>> which is a realistic cloud because you

01:26:34.080 --> 01:26:36.560
just cloud workloads because what you

01:26:36.560 --> 01:26:38.320
just said this is what we all use and

01:26:38.320 --> 01:26:39.920
terapform modules are horrible at it and

01:26:39.920 --> 01:26:40.960
then you're going to have to write

01:26:40.960 --> 01:26:43.440
pickle to wrap the horrible terapform

01:26:43.440 --> 01:26:45.360
experience which is very limited because

01:26:45.360 --> 01:26:47.600
it only has like 40 different variable

01:26:47.600 --> 01:26:49.440
inputs the outputs are not even typed

01:26:49.440 --> 01:26:51.600
you write pickle again to do that. But

01:26:51.600 --> 01:26:53.679
how about we go back to the source? How

01:26:53.679 --> 01:26:55.920
about we build a proper L2 construct and

01:26:55.920 --> 01:26:57.440
then we they know how to bind each

01:26:57.440 --> 01:27:00.000
other. And this example here, these 230

01:27:00.000 --> 01:27:02.080
lines of Terraform is not to tell you

01:27:02.080 --> 01:27:03.199
like this is what you're going to work

01:27:03.199 --> 01:27:04.880
with. This is to show you the complexity

01:27:04.880 --> 01:27:06.719
and the ugliness of what's under the

01:27:06.719 --> 01:27:07.679
hood.

01:27:07.679 --> 01:27:09.040
>> This is what you write.

01:27:09.040 --> 01:27:09.600
>> Yeah.

01:27:09.600 --> 01:27:11.360
>> And this is a well-known pattern because

01:27:11.360 --> 01:27:12.960
this is actually the AWS CDK pattern.

01:27:12.960 --> 01:27:15.440
This is literally the CDK workshop

01:27:15.440 --> 01:27:17.920
example except it's on my landing page

01:27:17.920 --> 01:27:20.719
and now it spits out terraform.

01:27:20.719 --> 01:27:22.880
I I think it I think it it definitely

01:27:22.880 --> 01:27:26.719
makes sense to empower product teams,

01:27:26.719 --> 01:27:28.880
but I I I keep on going back to the to

01:27:28.880 --> 01:27:31.120
the thought that in a in a heavy

01:27:31.120 --> 01:27:33.520
regulated company, you you would have to

01:27:33.520 --> 01:27:37.199
just give them a very locked down uh

01:27:37.199 --> 01:27:39.199
>> Yeah. And that's where a platform team

01:27:39.199 --> 01:27:41.040
would need to build using these

01:27:41.040 --> 01:27:43.040
constructs instead of these modules

01:27:43.040 --> 01:27:44.320
actually with a proper programming

01:27:44.320 --> 01:27:45.280
language.

01:27:45.280 --> 01:27:46.960
>> Um they would be able to build what they

01:27:46.960 --> 01:27:47.520
need.

01:27:47.520 --> 01:27:49.600
>> Okay. So the platform team uses terror

01:27:49.600 --> 01:27:53.040
constructs to create the golden paths

01:27:53.040 --> 01:27:56.400
>> for example. Yes. Um like the pattern

01:27:56.400 --> 01:28:00.480
here that I showed on the other slide uh

01:28:00.480 --> 01:28:02.480
which was

01:28:02.480 --> 01:28:04.719
I'm allowing my teams to deploy onto

01:28:04.719 --> 01:28:06.480
Fargate and we use an application load

01:28:06.480 --> 01:28:08.320
balancer. In our case the application

01:28:08.320 --> 01:28:09.679
load balancer is part of the landing

01:28:09.679 --> 01:28:12.239
zone. So they must import it using from

01:28:12.239 --> 01:28:13.920
application load balancer attributes.

01:28:13.920 --> 01:28:16.320
Maybe I can wrap all of that up in as my

01:28:16.320 --> 01:28:18.159
sample app. um you know Typescript

01:28:18.159 --> 01:28:20.639
interface. So you must provide the

01:28:20.639 --> 01:28:22.719
necessary attributes to import the load

01:28:22.719 --> 01:28:25.040
balancer, the VPC and the cluster. And

01:28:25.040 --> 01:28:26.960
this is a strongly typed interface of

01:28:26.960 --> 01:28:30.239
what are my my integration points?

01:28:30.239 --> 01:28:32.719
>> Okay. And then how complete is Terra

01:28:32.719 --> 01:28:34.880
Constructs? Do you do you support like

01:28:34.880 --> 01:28:36.880
everything CDK throws at it or is it

01:28:36.880 --> 01:28:37.440
like some

01:28:37.440 --> 01:28:40.960
>> No, no, no. So, so I started with like

01:28:40.960 --> 01:28:43.199
every single AWS module that is in AWS

01:28:43.199 --> 01:28:45.360
CDK and more moving it over into on top

01:28:45.360 --> 01:28:47.199
of Terraform and that's been very

01:28:47.199 --> 01:28:49.760
manual. Then I also used LLMs to

01:28:49.760 --> 01:28:51.760
automate that process. But I still need

01:28:51.760 --> 01:28:53.199
to write all of the unit tests. I need

01:28:53.199 --> 01:28:54.800
to write all of the integration tests. I

01:28:54.800 --> 01:28:55.679
need to validate everything.

01:28:55.679 --> 01:28:57.360
>> So just you're just getting started sort

01:28:57.360 --> 01:28:59.199
of thing. I mean

01:28:59.199 --> 01:29:02.560
>> like a year getting started. Um, so at

01:29:02.560 --> 01:29:06.080
this point I I I'm focused on building

01:29:06.080 --> 01:29:08.159
the the features that I need at my

01:29:08.159 --> 01:29:11.920
organization, right? Um, what what I

01:29:11.920 --> 01:29:13.120
want

01:29:13.120 --> 01:29:15.040
>> that's a great slide deck actually. I

01:29:15.040 --> 01:29:16.800
really like that.

01:29:16.800 --> 01:29:20.080
>> Yeah. What what I want

01:29:20.080 --> 01:29:21.920
at this point if people are interested

01:29:21.920 --> 01:29:23.360
they should reach out and they say like

01:29:23.360 --> 01:29:25.520
great we use Fargate a lot. I don't see

01:29:25.520 --> 01:29:27.679
Fargate right now. Like this pattern

01:29:27.679 --> 01:29:30.400
that I show here it's a little asterisk

01:29:30.400 --> 01:29:32.080
at the bottom there. pending the ECS

01:29:32.080 --> 01:29:34.480
pattern module public release. So this

01:29:34.480 --> 01:29:36.080
is not in Terra construct integrated

01:29:36.080 --> 01:29:37.520
yet. I need to make that public.

01:29:37.520 --> 01:29:39.760
>> Just just very quickly why why Fargate

01:29:39.760 --> 01:29:42.400
instead of uh serverless? It just there

01:29:42.400 --> 01:29:43.520
needed to be persistent.

01:29:43.520 --> 01:29:45.920
>> We use a lot of serverless at at my

01:29:45.920 --> 01:29:49.040
organization and um at some point

01:29:49.040 --> 01:29:50.800
there's longunning job like services

01:29:50.800 --> 01:29:53.440
that you need to run and better to run

01:29:53.440 --> 01:29:54.800
them in containers

01:29:54.800 --> 01:29:57.679
>> without the whole Kubernetes

01:29:57.679 --> 01:30:00.800
>> um complexity. So we use Terraform a

01:30:00.800 --> 01:30:01.199
lot.

01:30:01.199 --> 01:30:03.440
>> I'm with you. I'm with you. Kubernetes

01:30:03.440 --> 01:30:05.440
is such a nightmare.

01:30:05.440 --> 01:30:07.360
>> So it's very funny because when we met,

01:30:07.360 --> 01:30:09.040
I was running the Docker and Kubernetes

01:30:09.040 --> 01:30:10.639
meetups and you would tell me like why

01:30:10.639 --> 01:30:12.239
don't you just use Compose? It's so much

01:30:12.239 --> 01:30:14.000
simpler. And I would be like Compose

01:30:14.000 --> 01:30:15.280
doesn't have all the dials and knobs

01:30:15.280 --> 01:30:16.880
that you need and Kubernetes is like

01:30:16.880 --> 01:30:19.199
properly designed and easy.

01:30:19.199 --> 01:30:21.520
>> This this must have been years ago.

01:30:21.520 --> 01:30:26.560
>> Yeah. 2017 maybe. Yeah. Well, oh, well,

01:30:26.560 --> 01:30:30.239
that's back when uh what was that? Core

01:30:30.239 --> 01:30:32.239
OS. I love core OS. Don't know what

01:30:32.239 --> 01:30:33.920
happened to it.

01:30:33.920 --> 01:30:38.960
>> They were acquired by IBM. Now there's a

01:30:38.960 --> 01:30:41.199
flat car Linux. It was fully integrated.

01:30:41.199 --> 01:30:42.719
No, they were acquired by Redhead and

01:30:42.719 --> 01:30:45.440
Redhead was acquired by IBM, right?

01:30:45.440 --> 01:30:46.159
>> Yeah.

01:30:46.159 --> 01:30:47.920
>> Yeah. So, so Coras was acquired by

01:30:47.920 --> 01:30:49.600
Redhead. All of the core OS projects

01:30:49.600 --> 01:30:52.000
such as tectonic were integrated within

01:30:52.000 --> 01:30:55.040
open shift and then they replaced like

01:30:55.040 --> 01:30:58.000
the CentOS or whatever the Redhead

01:30:58.000 --> 01:31:00.639
container Linux became was rebranded

01:31:00.639 --> 01:31:02.480
Coros really really so all of the

01:31:02.480 --> 01:31:06.000
Cororez like um systemd integrations

01:31:06.000 --> 01:31:07.760
which ultimately systemd is a redhead

01:31:07.760 --> 01:31:10.719
project as well right um core was 100%

01:31:10.719 --> 01:31:12.239
built on top of systemd

01:31:12.239 --> 01:31:14.080
>> so the so so then some of the original

01:31:14.080 --> 01:31:15.760
cororos people that were not part of the

01:31:15.760 --> 01:31:17.440
acquisition or some people involved with

01:31:17.440 --> 01:31:19.280
the project created flat car Linux. I

01:31:19.280 --> 01:31:21.920
don't know where that went, but um today

01:31:21.920 --> 01:31:24.320
um Talos is super interesting because

01:31:24.320 --> 01:31:27.120
they're they're taking this whole like

01:31:27.120 --> 01:31:28.880
exposing the the the Linux

01:31:28.880 --> 01:31:30.719
administration

01:31:30.719 --> 01:31:32.560
surface completely through the API,

01:31:32.560 --> 01:31:34.880
which was another OS also had this idea.

01:31:34.880 --> 01:31:36.800
I don't know if it was Talos, but there

01:31:36.800 --> 01:31:38.159
was another one doing the same thing.

01:31:38.159 --> 01:31:40.159
>> Not sure what what Talos is. Sounds like

01:31:40.159 --> 01:31:42.239
a security product.

01:31:42.239 --> 01:31:45.920
>> Uh Talos. Talos. Talos.

01:31:45.920 --> 01:31:48.159
But anyway, just to to defend my Oh, you

01:31:48.159 --> 01:31:49.679
know what it is. Yeah, and I think I

01:31:49.679 --> 01:31:50.719
know what it is. Yeah.

01:31:50.719 --> 01:31:52.560
>> Yeah, they just have a new landing zone

01:31:52.560 --> 01:31:55.199
uh landing page. Sorry.

01:31:55.199 --> 01:31:56.480
>> They expose

01:31:56.480 --> 01:31:58.639
>> But going going back to my going back I

01:31:58.639 --> 01:32:00.560
I don't remember talking to you about

01:32:00.560 --> 01:32:02.400
Docker Compose, but I think actually

01:32:02.400 --> 01:32:03.920
Docker Compose is one of those

01:32:03.920 --> 01:32:06.400
technologies that I I still regularly

01:32:06.400 --> 01:32:07.360
use and love.

01:32:07.360 --> 01:32:09.840
>> Oh yes, absolutely. It's just when when

01:32:09.840 --> 01:32:11.760
Docker tried to take it and replace it

01:32:11.760 --> 01:32:13.920
with Swarm, right? They they like,

01:32:13.920 --> 01:32:15.360
>> "Oh that was a show."

01:32:15.360 --> 01:32:20.080
>> No, nobody liked Swarm. Um, so so yeah,

01:32:20.080 --> 01:32:22.320
doctor time with it.

01:32:22.320 --> 01:32:23.280
>> Okay.

01:32:23.280 --> 01:32:25.440
>> Okay. I think we need to somehow end

01:32:25.440 --> 01:32:28.560
this uh because I'm uh but I

01:32:28.560 --> 01:32:30.480
>> getting tired running out of time.

01:32:30.480 --> 01:32:32.080
>> I did really really enjoy this. I think

01:32:32.080 --> 01:32:34.239
we covered a lot of things. I think

01:32:34.239 --> 01:32:36.400
maybe I'm in the right. Okay, one more

01:32:36.400 --> 01:32:39.400
thing.

