WEBVTT

00:00:00.160 --> 00:00:02.080
Well, good morning, Vincent.

00:00:02.080 --> 00:00:03.120
>> Good morning.

00:00:03.120 --> 00:00:07.120
>> It's been uh couple of weeks, hasn't it?

00:00:07.120 --> 00:00:07.680
Or [snorts] something.

00:00:07.680 --> 00:00:08.880
>> Yeah.

00:00:08.880 --> 00:00:11.040
>> Yeah. Could be at least 10 days, I

00:00:11.040 --> 00:00:11.920
think.

00:00:11.920 --> 00:00:17.680
>> Yeah. I wanted to start by asking you a

00:00:17.680 --> 00:00:20.240
couple of questions. Maybe

00:00:20.240 --> 00:00:23.279
an info um let I mean, we're both

00:00:23.279 --> 00:00:24.720
infrastructure engineers, so I have an

00:00:24.720 --> 00:00:26.800
infrastructure question for you.

00:00:26.800 --> 00:00:29.599
>> Okay. So this is a wonderful GitHub

00:00:29.599 --> 00:00:32.800
account of this person here.

00:00:32.800 --> 00:00:42.640
>> I was just trying to

00:00:42.640 --> 00:00:46.399
>> so imagine there's like an AWS landscape

00:00:46.399 --> 00:00:49.600
like this where where where the fruits

00:00:49.600 --> 00:00:51.680
here are basically different teams,

00:00:51.680 --> 00:00:52.000
right?

00:00:52.000 --> 00:00:54.640
>> Yeah. So the so some teams have a dev

00:00:54.640 --> 00:00:58.480
account, some some have a some have the

00:00:58.480 --> 00:01:01.520
whole you know the whole shebang.

00:01:01.520 --> 00:01:03.120
Um and actually this is not even

00:01:03.120 --> 00:01:04.879
accurate like sometimes they can have

00:01:04.879 --> 00:01:06.960
deployments in different regions right

00:01:06.960 --> 00:01:10.640
could be U1

00:01:10.640 --> 00:01:12.640
>> I should have sorry this is not the best

00:01:12.640 --> 00:01:15.439
example but you know I was I had to be

00:01:15.439 --> 00:01:19.280
quick about it. [snorts] Um so so each

00:01:19.280 --> 00:01:22.400
team like potentially has

00:01:22.400 --> 00:01:26.080
has a a number of deployments so we say

00:01:26.080 --> 00:01:27.920
right I think that's the the correct

00:01:27.920 --> 00:01:29.680
terminology because they could have a

00:01:29.680 --> 00:01:34.079
deployment in USC East1 Singapore

00:01:34.079 --> 00:01:36.720
same account

00:01:36.720 --> 00:01:38.640
different environments and each

00:01:38.640 --> 00:01:39.840
environment is mapped to an account.

00:01:39.840 --> 00:01:42.240
Yeah. So the my question is is that like

00:01:42.240 --> 00:01:44.479
I have a landscape like this in a in a

00:01:44.479 --> 00:01:47.439
big company to manage and often enough

00:01:47.439 --> 00:01:51.200
I'm like you know does team Mango have

00:01:51.200 --> 00:01:54.159
stuff in this region and like I don't

00:01:54.159 --> 00:01:58.399
know. Um but it's even worse. I mean if

00:01:58.399 --> 00:02:01.520
I had this uh up to date Jason JSON I

00:02:01.520 --> 00:02:03.759
probably could easily quickly answer

00:02:03.759 --> 00:02:05.360
yeah okay they should have stuff in new

00:02:05.360 --> 00:02:06.479
east one

00:02:06.479 --> 00:02:08.640
>> but the trouble is that sometimes it's

00:02:08.640 --> 00:02:10.479
it's up to the different teams to deploy

00:02:10.479 --> 00:02:13.040
their own infrastructure so it's like

00:02:13.040 --> 00:02:14.800
then again I don't even know if they've

00:02:14.800 --> 00:02:16.720
actually really done deployments you

00:02:16.720 --> 00:02:18.480
know what I mean it's like so as a

00:02:18.480 --> 00:02:20.239
platform engineer I have to like sort of

00:02:20.239 --> 00:02:22.480
keep an eye on what people are doing but

00:02:22.480 --> 00:02:24.160
it's very difficult for me to keep it so

00:02:24.160 --> 00:02:26.879
I thought to myself this example is one

00:02:26.879 --> 00:02:31.040
I struggle with on a daily basis. Does

00:02:31.040 --> 00:02:34.720
Tacos or your tool or I guess I mean

00:02:34.720 --> 00:02:36.400
Terraform Cloud will probably be the

00:02:36.400 --> 00:02:38.879
greatest tool for this but like how do I

00:02:38.879 --> 00:02:40.400
track?

00:02:40.400 --> 00:02:43.680
>> Yeah. So with with the grid what I I do

00:02:43.680 --> 00:02:46.080
and I think other tools uh like Terra

00:02:46.080 --> 00:02:48.879
Team or Digger or Spaceelift they also

00:02:48.879 --> 00:02:51.200
have the concept of labels. So teams can

00:02:51.200 --> 00:02:55.760
attach labels to states and you can

00:02:55.760 --> 00:03:00.160
track if um if they are having states

00:03:00.160 --> 00:03:02.319
for resources inside a certain region.

00:03:02.319 --> 00:03:04.000
Now the problem could be if you are

00:03:04.000 --> 00:03:05.920
doing multi-reional

00:03:05.920 --> 00:03:08.480
terraform right if you could if you have

00:03:08.480 --> 00:03:12.080
one state that creates um for example

00:03:12.080 --> 00:03:14.080
VPC peering between two regions and then

00:03:14.080 --> 00:03:15.840
creates the end points on one side and

00:03:15.840 --> 00:03:16.400
then does the

00:03:16.400 --> 00:03:18.400
>> that's a very good example that that

00:03:18.400 --> 00:03:20.800
that's a kind of like special case I was

00:03:20.800 --> 00:03:22.480
going to talk about next

00:03:22.480 --> 00:03:25.920
>> but at the moment we've gone um yeah the

00:03:25.920 --> 00:03:28.800
state file is separated per region yeah

00:03:28.800 --> 00:03:30.640
>> which makes sense and another thing

00:03:30.640 --> 00:03:32.159
before you start with

00:03:32.159 --> 00:03:34.239
uh in my previous organizations we also

00:03:34.239 --> 00:03:37.040
had the first question we ask do we

00:03:37.040 --> 00:03:40.799
organize by team then by by by stage. So

00:03:40.799 --> 00:03:42.400
for example in this case you have team

00:03:42.400 --> 00:03:45.920
Apple has stages dev pro and u or do we

00:03:45.920 --> 00:03:49.360
go by stage and then by team because um

00:03:49.360 --> 00:03:51.599
do you first have like dev pro stage and

00:03:51.599 --> 00:03:53.840
then within dev you have team A, team B,

00:03:53.840 --> 00:03:56.000
team C and then within stage you have

00:03:56.000 --> 00:03:58.959
team A. We had we had a I mean the

00:03:58.959 --> 00:04:00.959
previous incarnation of of this cloud

00:04:00.959 --> 00:04:02.560
deployment on the on this particular

00:04:02.560 --> 00:04:05.360
client they had they had it whereby

00:04:05.360 --> 00:04:07.439
there was like one dev account and all

00:04:07.439 --> 00:04:08.799
the teams were on it

00:04:08.799 --> 00:04:10.640
>> but we the people were stepping on each

00:04:10.640 --> 00:04:12.720
other's toes all the time.

00:04:12.720 --> 00:04:15.040
>> It's not necessarily like with well the

00:04:15.040 --> 00:04:16.880
problem we were facing is from a dev sec

00:04:16.880 --> 00:04:19.840
ops perspective the rules that apply to

00:04:19.840 --> 00:04:22.160
non-production uh stages are different

00:04:22.160 --> 00:04:24.160
from production. It's easier if you're

00:04:24.160 --> 00:04:28.240
in AWS or manager to basically define

00:04:28.240 --> 00:04:31.440
your um what's it called like the units

00:04:31.440 --> 00:04:34.560
or the organizational units or use on

00:04:34.560 --> 00:04:37.680
the stages level so that we could apply

00:04:37.680 --> 00:04:39.520
security policies on the stages level.

00:04:39.520 --> 00:04:41.680
Oh, you mean like stages as in these

00:04:41.680 --> 00:04:42.240
environments?

00:04:42.240 --> 00:04:44.240
>> Oh, use. Yeah, we have nested to use in

00:04:44.240 --> 00:04:47.199
in AWS or right. So, we decided that it

00:04:47.199 --> 00:04:48.720
would make more sense because we are

00:04:48.720 --> 00:04:49.919
attaching our organization.

00:04:49.919 --> 00:04:51.680
>> I never thought about that. I never

00:04:51.680 --> 00:04:53.360
thought about that. That's a that's a

00:04:53.360 --> 00:04:56.240
bloody good idea actually. What? I've

00:04:56.240 --> 00:04:58.320
never done that before now. So, yeah.

00:04:58.320 --> 00:05:00.800
So, you have a tree.

00:05:00.800 --> 00:05:03.759
Uh how do I share that with you? where

00:05:03.759 --> 00:05:05.520
we had a discussion between the platform

00:05:05.520 --> 00:05:07.840
team lead and the dev sec ops team and

00:05:07.840 --> 00:05:10.639
then how do we set up our OUS and how do

00:05:10.639 --> 00:05:12.960
we manage our security policies in our

00:05:12.960 --> 00:05:15.600
AWS and we had an existing setup where

00:05:15.600 --> 00:05:18.400
we had like team A, team B, team C and

00:05:18.400 --> 00:05:20.080
then we had dev staging and prod under

00:05:20.080 --> 00:05:22.000
the teams and we switched it over to the

00:05:22.000 --> 00:05:23.440
other way because we wanted to manage

00:05:23.440 --> 00:05:25.600
our policies that way.

00:05:25.600 --> 00:05:28.400
>> Yeah. Yeah. Yeah, that makes sense. Um

00:05:28.400 --> 00:05:31.120
did so did AWS support you? No, not

00:05:31.120 --> 00:05:32.560
really.

00:05:32.560 --> 00:05:35.840
>> With AWS OUS, uh they can be like

00:05:35.840 --> 00:05:37.199
nested, right? And you can attach

00:05:37.199 --> 00:05:39.280
policies to the OU. So you can attach

00:05:39.280 --> 00:05:42.800
the non-prod policies to the nonpro OUS

00:05:42.800 --> 00:05:44.400
and then all of the teams operate within

00:05:44.400 --> 00:05:46.240
those and then when you go to prod,

00:05:46.240 --> 00:05:49.199
there's more guard rails and and

00:05:49.199 --> 00:05:49.919
security.

00:05:49.919 --> 00:05:51.280
>> So yeah, I see what you're saying. So

00:05:51.280 --> 00:05:53.039
the policies

00:05:53.039 --> 00:05:58.320
apply on top level top level I'm not

00:05:58.320 --> 00:06:01.600
sure that's the right term stage.

00:06:01.600 --> 00:06:02.080
>> Yeah.

00:06:02.080 --> 00:06:04.479
>> And then and then that trickles down.

00:06:04.479 --> 00:06:06.720
Yeah, that makes a lot of sense. Why

00:06:06.720 --> 00:06:08.880
haven't I done that? I feel dumb for not

00:06:08.880 --> 00:06:11.039
having even done that.

00:06:11.039 --> 00:06:12.160
>> I mean because you came from an

00:06:12.160 --> 00:06:13.520
environment where they were sharing an

00:06:13.520 --> 00:06:16.639
account and it was causing issues. But

00:06:16.639 --> 00:06:20.240
AWS is actually at some point I read

00:06:20.240 --> 00:06:22.800
this book from uh like microservices

00:06:22.800 --> 00:06:26.080
from Sam Newman I think and he was like

00:06:26.080 --> 00:06:30.080
saying in the book how AWS even goes so

00:06:30.080 --> 00:06:32.800
far as to give every environment an

00:06:32.800 --> 00:06:35.919
account. So that you know like team A

00:06:35.919 --> 00:06:38.800
prod has one AWS account and team B prod

00:06:38.800 --> 00:06:42.240
has a separate AWS account. Uh actually

00:06:42.240 --> 00:06:44.960
even worse like team A has two services

00:06:44.960 --> 00:06:47.759
FU and bar and then team A FU stage goes

00:06:47.759 --> 00:06:50.960
into one account and team uh A bar stage

00:06:50.960 --> 00:06:53.440
goes into another account which is like

00:06:53.440 --> 00:06:55.280
so you need to do all of the peering and

00:06:55.280 --> 00:06:57.680
like you know you can only connect uh or

00:06:57.680 --> 00:07:00.400
communicate across account boundaries

00:07:00.400 --> 00:07:02.960
which is crazy from like from a small

00:07:02.960 --> 00:07:05.840
startup's perspective to to be to have

00:07:05.840 --> 00:07:07.440
to have all of this AWS account

00:07:07.440 --> 00:07:10.319
management overhead right [snorts] um

00:07:10.319 --> 00:07:12.000
Another thing is what we wanted was the

00:07:12.000 --> 00:07:14.319
ability to

00:07:14.319 --> 00:07:16.234
um

00:07:16.234 --> 00:07:17.759
[clears throat] vent an AWS account for

00:07:17.759 --> 00:07:19.919
a team for a limited amount of time

00:07:19.919 --> 00:07:21.599
>> and then once they were done with it

00:07:21.599 --> 00:07:23.919
like return it to a pool. So we wanted

00:07:23.919 --> 00:07:25.120
on demand account creation.

00:07:25.120 --> 00:07:26.479
>> You return it to a pool then you just

00:07:26.479 --> 00:07:27.840
destroy it.

00:07:27.840 --> 00:07:30.560
>> Well that's the thing. Originally AWS

00:07:30.560 --> 00:07:33.840
didn't have a lot of AWS uh a lot of API

00:07:33.840 --> 00:07:36.479
for account management. So destroying an

00:07:36.479 --> 00:07:37.840
account was very difficult.

00:07:37.840 --> 00:07:39.759
>> Yeah. Yeah. I see what you're saying.

00:07:39.759 --> 00:07:41.120
>> So, so the idea is to run

00:07:41.120 --> 00:07:42.960
>> I made a video about that.

00:07:42.960 --> 00:07:44.720
>> Yeah. So, the idea is is to run like

00:07:44.720 --> 00:07:47.039
nukes and and and basically have a pool

00:07:47.039 --> 00:07:49.120
of accounts and and cycle through them.

00:07:49.120 --> 00:07:50.880
Uh which is a lot easier and there's a

00:07:50.880 --> 00:07:52.880
lot of tools to do that.

00:07:52.880 --> 00:07:55.440
>> Do you so you've used AWS Nuke? I think

00:07:55.440 --> 00:07:56.639
it changed.

00:07:56.639 --> 00:07:58.960
>> Uh there's two of them. I think I use

00:07:58.960 --> 00:08:01.039
the other like there's one from Terra

00:08:01.039 --> 00:08:03.440
Grant which is very popular or um not

00:08:03.440 --> 00:08:05.840
Terra Grant but the Grunt Works nuke uh

00:08:05.840 --> 00:08:08.080
that has been forked. I don't I don't

00:08:08.080 --> 00:08:09.599
think I liked

00:08:09.599 --> 00:08:10.000
>> you.

00:08:10.000 --> 00:08:12.400
>> Yeah, I think the fork was better and

00:08:12.400 --> 00:08:14.720
there's the grunt work one wasn't good.

00:08:14.720 --> 00:08:17.440
There's a cl there's a cloud nuke uh

00:08:17.440 --> 00:08:19.919
that supports multiploud. I I remember

00:08:19.919 --> 00:08:21.120
going through all of them and only one

00:08:21.120 --> 00:08:22.560
of them was really wellmaintained and

00:08:22.560 --> 00:08:23.759
and well structured.

00:08:23.759 --> 00:08:27.680
>> This is the one that is used in my

00:08:27.680 --> 00:08:30.639
employer if I remember correctly.

00:08:30.639 --> 00:08:32.959
I have one in my repo as well like it's

00:08:32.959 --> 00:08:35.200
set up in lift and shift because I have

00:08:35.200 --> 00:08:38.399
tags which is like uh nuke don't destroy

00:08:38.399 --> 00:08:40.240
you can put a tag so it's 100% not going

00:08:40.240 --> 00:08:43.200
to destroy some resources so I have

00:08:43.200 --> 00:08:46.640
>> ah I I have cloud nuke and I have AWS

00:08:46.640 --> 00:08:49.040
nuke which one am I using

00:08:49.040 --> 00:08:51.120
>> initial p was done with cloud nuke which

00:08:51.120 --> 00:08:53.360
was a best practice from terror test for

00:08:53.360 --> 00:08:55.839
cleaning up but it was really bad and so

00:08:55.839 --> 00:08:59.200
then I used reby AWS nuke which worked a

00:08:59.200 --> 00:09:00.240
lot

00:09:00.240 --> 00:09:04.720
Um, and then Ericson AWS Nuke. Yes. So

00:09:04.720 --> 00:09:07.040
Christristen AWS Nuke is a fork from the

00:09:07.040 --> 00:09:09.680
original Dby.

00:09:09.680 --> 00:09:09.920
>> Yeah.

00:09:09.920 --> 00:09:13.440
>> Yeah. I'm I'm a big fan of uh nuking uh

00:09:13.440 --> 00:09:15.920
accounts or thermal environments. I made

00:09:15.920 --> 00:09:17.600
a video about that again.

00:09:17.600 --> 00:09:18.800
>> Big fan.

00:09:18.800 --> 00:09:23.839
>> Yeah. So Okay. So what I'm Okay.

00:09:23.839 --> 00:09:25.760
Okay. You you told me about this uh

00:09:25.760 --> 00:09:28.080
stage level. Um

00:09:28.080 --> 00:09:31.120
>> Yeah. U organization. That's cool. I

00:09:31.120 --> 00:09:32.640
didn't uh think about that for some

00:09:32.640 --> 00:09:34.800
reason or wasn't exposed to that. But

00:09:34.800 --> 00:09:36.959
but still the question remains how how

00:09:36.959 --> 00:09:39.839
do you how do I mean if I mean this is

00:09:39.839 --> 00:09:43.760
going to be duplicated on each stage. Um

00:09:43.760 --> 00:09:46.080
and then and then of course I mean let's

00:09:46.080 --> 00:09:47.760
just be a little bit explicit then then

00:09:47.760 --> 00:09:50.640
then again this is going to be you know

00:09:50.640 --> 00:09:54.959
AP southeast one or something crazy

00:09:54.959 --> 00:09:57.360
u east one they're going to have

00:09:57.360 --> 00:10:00.000
different resources in different regions

00:10:00.000 --> 00:10:04.959
US uh EU west two or something and then

00:10:04.959 --> 00:10:07.519
and then just to make things even extra

00:10:07.519 --> 00:10:10.240
spicy I'm not too sure if it's worth is

00:10:10.240 --> 00:10:12.640
it worth putting it here yeah it is

00:10:12.640 --> 00:10:15.040
because things are split by region. Like

00:10:15.040 --> 00:10:16.880
for example, they have a they use a

00:10:16.880 --> 00:10:18.959
database vendor. I'm not going to tell

00:10:18.959 --> 00:10:21.200
the name of the vendor, but the vendor

00:10:21.200 --> 00:10:23.760
itself has has this notion of uh

00:10:23.760 --> 00:10:28.079
different sites. So you can have like a

00:10:28.079 --> 00:10:30.320
London site

00:10:30.320 --> 00:10:34.640
and uh I don't know an island site

00:10:34.640 --> 00:10:37.440
and things on their AP southeast.

00:10:37.440 --> 00:10:40.160
>> Yeah. So So um okay, let's just put over

00:10:40.160 --> 00:10:43.680
there. So, so

00:10:43.680 --> 00:10:45.600
yeah, it doesn't make sense there. It

00:10:45.600 --> 00:10:47.839
should be over there. I can't get over

00:10:47.839 --> 00:10:50.560
there very easy. Well, let me just US

00:10:50.560 --> 00:10:53.600
one or something. So what I'm trying to

00:10:53.600 --> 00:10:56.320
say here is that like I I think

00:10:56.320 --> 00:10:58.000
hopefully you see the pain is like at

00:10:58.000 --> 00:11:01.040
the moment like do we separate the state

00:11:01.040 --> 00:11:05.920
by you know this uh path

00:11:05.920 --> 00:11:09.440
or do we clump the state together even

00:11:09.440 --> 00:11:14.720
though the database is actually designed

00:11:14.720 --> 00:11:17.920
>> uh potentially to be separate actually

00:11:17.920 --> 00:11:19.839
>> because it's like a backup

00:11:19.839 --> 00:11:21.279
>> and like I'm just like my head is

00:11:21.279 --> 00:11:23.519
turning like just tracking this is

00:11:23.519 --> 00:11:27.519
making my head spin. Never mind uh you

00:11:27.519 --> 00:11:30.720
know uh

00:11:30.720 --> 00:11:34.000
the other aspects of operating this plat

00:11:34.000 --> 00:11:36.800
this platform.

00:11:36.800 --> 00:11:39.839
Yeah. I mean I think the easy way

00:11:39.839 --> 00:11:41.680
forward always and this is why I think

00:11:41.680 --> 00:11:43.680
infrastructure as code and really being

00:11:43.680 --> 00:11:47.839
able to to treat infrastructure as code

00:11:47.839 --> 00:11:50.640
um it involves things like refactoring,

00:11:50.640 --> 00:11:52.560
right? So I think we should just go

00:11:52.560 --> 00:11:56.560
forward with merged like dry

00:11:56.560 --> 00:11:58.320
>> yagny you ain't going to need it type of

00:11:58.320 --> 00:12:00.480
approach merging everything.

00:12:00.480 --> 00:12:00.959
>> Yeah.

00:12:00.959 --> 00:12:03.200
>> And then and then at the point that that

00:12:03.200 --> 00:12:04.640
it's like oh actually we're facing

00:12:04.640 --> 00:12:06.320
issues because of contention on the

00:12:06.320 --> 00:12:08.959
locks state locks or whatever or because

00:12:08.959 --> 00:12:12.000
of um the terapform plan takes too long

00:12:12.000 --> 00:12:14.560
or whatever at that point there then

00:12:14.560 --> 00:12:17.680
refactoring needs to be uh done. So of

00:12:17.680 --> 00:12:19.839
course we need to have like a road map

00:12:19.839 --> 00:12:22.720
and a target And it's such a pain. It's

00:12:22.720 --> 00:12:24.880
such a pain to refactor cuz we we have

00:12:24.880 --> 00:12:28.079
like kind of like teams bothering us all

00:12:28.079 --> 00:12:29.680
the time saying no you can't change this

00:12:29.680 --> 00:12:31.120
or like you know this is going to be

00:12:31.120 --> 00:12:32.399
disruptive.

00:12:32.399 --> 00:12:34.959
>> Uh I mean uh I mean it's not that

00:12:34.959 --> 00:12:37.200
disruptive but like just

00:12:37.200 --> 00:12:39.760
>> getting uh you know some of these

00:12:39.760 --> 00:12:41.680
account uh some of these state files are

00:12:41.680 --> 00:12:44.560
so like high security that it's like a

00:12:44.560 --> 00:12:46.240
pain just to move from one place to

00:12:46.240 --> 00:12:47.120
another.

00:12:47.120 --> 00:12:48.800
>> Okay, I can understand that. But one

00:12:48.800 --> 00:12:50.720
thing right from experience running with

00:12:50.720 --> 00:12:53.760
Terraform a lot is that you must be able

00:12:53.760 --> 00:12:56.320
to rename things. So that's why I want

00:12:56.320 --> 00:12:58.959
to decouple my logical identities from

00:12:58.959 --> 00:13:01.279
their actual physical identities. But

00:13:01.279 --> 00:13:03.600
then at the same time uh my original

00:13:03.600 --> 00:13:05.360
plan with with like the library that I

00:13:05.360 --> 00:13:07.440
wrote is that you don't get to determine

00:13:07.440 --> 00:13:09.600
your identities right if you use Google

00:13:09.600 --> 00:13:11.920
cloud or other providers usually you

00:13:11.920 --> 00:13:13.519
create a resource you don't determine

00:13:13.519 --> 00:13:15.600
the ID behind the scene it's determined

00:13:15.600 --> 00:13:17.440
for you. So if you change a name or a

00:13:17.440 --> 00:13:19.279
description, it's not only recreated.

00:13:19.279 --> 00:13:21.040
Um, and that's good for a lot of

00:13:21.040 --> 00:13:22.560
scenarios, but it doesn't work like for

00:13:22.560 --> 00:13:25.519
S3 bucket or an RDS maybe, but even then

00:13:25.519 --> 00:13:28.480
for an RDS, it shouldn't you shouldn't

00:13:28.480 --> 00:13:30.079
force the identity on it because then

00:13:30.079 --> 00:13:31.600
when you need to move things, then it

00:13:31.600 --> 00:13:34.480
becomes disruptive. But ideally moving a

00:13:34.480 --> 00:13:36.079
resource between two different states

00:13:36.079 --> 00:13:37.839
where it's being managed shouldn't be

00:13:37.839 --> 00:13:40.000
disruptive. It should just be like I'm

00:13:40.000 --> 00:13:41.360
moving. It's an interesting little thing

00:13:41.360 --> 00:13:43.920
that you said there because like we have

00:13:43.920 --> 00:13:46.720
a com we have a config YAML which we

00:13:46.720 --> 00:13:49.839
essentially give to each team because

00:13:49.839 --> 00:13:52.720
each team essentially manages I think

00:13:52.720 --> 00:13:56.560
what we call a data product

00:13:56.560 --> 00:13:58.959
um they could have multiple data

00:13:58.959 --> 00:14:01.920
products but let's just say

00:14:01.920 --> 00:14:04.240
it's one to one even though it's not and

00:14:04.240 --> 00:14:06.639
in that config.yaml YAML

00:14:06.639 --> 00:14:08.639
we there's a whole bunch of

00:14:08.639 --> 00:14:10.720
configuration as as we all know and like

00:14:10.720 --> 00:14:13.040
for example

00:14:13.040 --> 00:14:15.600
uh feel free to disagree with this on

00:14:15.600 --> 00:14:17.600
but like at at this point in time we

00:14:17.600 --> 00:14:20.639
actually allow them to set what the ids

00:14:20.639 --> 00:14:24.560
are and these ids are you know cascade

00:14:24.560 --> 00:14:26.959
and in in all sorts of weird and

00:14:26.959 --> 00:14:28.320
wonderful ways

00:14:28.320 --> 00:14:30.320
>> to name different resources and you know

00:14:30.320 --> 00:14:32.720
like you know how like AWS likes dashes

00:14:32.720 --> 00:14:33.760
and then

00:14:33.760 --> 00:14:37.040
>> another thing likes underscores and

00:14:37.040 --> 00:14:38.399
doesn't allow you to use those

00:14:38.399 --> 00:14:39.040
characters.

00:14:39.040 --> 00:14:41.199
>> Other things can't be longer than a 20

00:14:41.199 --> 00:14:42.639
characters or something crazy like that

00:14:42.639 --> 00:14:43.839
or whatever.

00:14:43.839 --> 00:14:46.000
>> But like at the at this point in time,

00:14:46.000 --> 00:14:50.160
we actually allow team Mango like I mean

00:14:50.160 --> 00:14:52.560
you know if Mango wanted to be a pair

00:14:52.560 --> 00:14:55.360
the next day we allow that but it causes

00:14:55.360 --> 00:14:57.440
absolutely mayhem honestly.

00:14:57.440 --> 00:15:00.399
>> Absolutely. Yeah. Uh so this is what I

00:15:00.399 --> 00:15:02.000
mean I come from an like accounting

00:15:02.000 --> 00:15:04.000
background right and accounting entries

00:15:04.000 --> 00:15:05.440
when you want to slice and dice and

00:15:05.440 --> 00:15:07.760
analyze your data you use dimensions. So

00:15:07.760 --> 00:15:10.800
you attach in in AWS parlins this is uh

00:15:10.800 --> 00:15:14.240
tags right labels and and and all of

00:15:14.240 --> 00:15:16.079
this is mutable. So you can create

00:15:16.079 --> 00:15:18.959
reports that aggregate by certain keys

00:15:18.959 --> 00:15:22.000
and then um that's why a tagging policy

00:15:22.000 --> 00:15:24.079
is super important and and that's why

00:15:24.079 --> 00:15:28.480
also the same with the like the um

00:15:28.480 --> 00:15:30.079
the example here of like how do you

00:15:30.079 --> 00:15:31.680
organize your states? Do you organize

00:15:31.680 --> 00:15:34.000
them by that and then by by team or vice

00:15:34.000 --> 00:15:36.880
versa? Those should all be labeling. Uh

00:15:36.880 --> 00:15:39.279
>> yeah, we we do tag we do tag quite

00:15:39.279 --> 00:15:41.920
aggressively. But like but but does

00:15:41.920 --> 00:15:44.480
tagging really even help here? Like if

00:15:44.480 --> 00:15:46.639
if if some if team mango decided to

00:15:46.639 --> 00:15:49.360
become team pair or something,

00:15:49.360 --> 00:15:50.959
>> it shouldn't it it shouldn't be any

00:15:50.959 --> 00:15:53.120
problem then, right? If if the team team

00:15:53.120 --> 00:15:56.000
tag is is really a tag and not tied into

00:15:56.000 --> 00:15:58.480
any resource identity, changing the

00:15:58.480 --> 00:16:00.800
identity, sorry, changing the tag

00:16:00.800 --> 00:16:02.320
doesn't affect the identity. So

00:16:02.320 --> 00:16:03.600
everything that depends on it is still

00:16:03.600 --> 00:16:04.959
pointing the original identity.

00:16:04.959 --> 00:16:06.639
>> Oh, I think I see what you're saying. So

00:16:06.639 --> 00:16:08.720
instead of instead of like focusing on

00:16:08.720 --> 00:16:12.000
changing I don't know the C resource or

00:16:12.000 --> 00:16:14.480
the stack name you change the the tag

00:16:14.480 --> 00:16:15.279
name.

00:16:15.279 --> 00:16:17.519
>> Yes. And then you can like always

00:16:17.519 --> 00:16:20.880
redefine or because I worked at everyone

00:16:20.880 --> 00:16:22.959
worked at organizations and business

00:16:22.959 --> 00:16:25.920
development teams or organ or the a like

00:16:25.920 --> 00:16:28.480
the the sorry the the C level decides to

00:16:28.480 --> 00:16:31.120
reorganize and and and rename the teams

00:16:31.120 --> 00:16:33.519
merge the teams and it causes a mayhem

00:16:33.519 --> 00:16:35.920
on the infrastructure level because of

00:16:35.920 --> 00:16:36.959
um logical

00:16:36.959 --> 00:16:38.800
>> not good advice. physical identity,

00:16:38.800 --> 00:16:41.680
sorry, physical identity should never be

00:16:41.680 --> 00:16:44.560
um attached to u should never be

00:16:44.560 --> 00:16:47.279
dictated by by the the organization or

00:16:47.279 --> 00:16:49.759
the the product name. Um and I think

00:16:49.759 --> 00:16:52.079
some clouds don't allow you that, right?

00:16:52.079 --> 00:16:54.000
The problem is a ter provider and AWS

00:16:54.000 --> 00:16:56.160
APIs allows you to do that and they even

00:16:56.160 --> 00:16:58.399
have like this pre uh

00:16:58.399 --> 00:17:01.600
>> this prefix like ID prefix thing. That's

00:17:01.600 --> 00:17:02.399
all.

00:17:02.399 --> 00:17:05.120
>> You're so right, Vincent. Jesus, I wish

00:17:05.120 --> 00:17:07.199
I was working with you. I'm learning a

00:17:07.199 --> 00:17:09.919
lot just just to get chatting with you

00:17:09.919 --> 00:17:11.199
every hour.

00:17:11.199 --> 00:17:12.640
>> The problem that you're going to get

00:17:12.640 --> 00:17:13.280
weeks

00:17:13.280 --> 00:17:14.959
>> I tried to introduce this at a company

00:17:14.959 --> 00:17:19.120
and I got a massive um push back from

00:17:19.120 --> 00:17:20.959
engineers because they are used to use

00:17:20.959 --> 00:17:23.360
to do click ops in the AWS console and

00:17:23.360 --> 00:17:26.240
they're like I can't find my resources.

00:17:26.240 --> 00:17:28.079
It was cloud for stacks and the way the

00:17:28.079 --> 00:17:31.200
cloud form like um calculates the

00:17:31.200 --> 00:17:32.880
physical ID name was very confusing

00:17:32.880 --> 00:17:34.799
because of the nested stack way of doing

00:17:34.799 --> 00:17:36.640
it that causes its own set of problems

00:17:36.640 --> 00:17:38.400
because then you lose resources just

00:17:38.400 --> 00:17:40.160
because you rename a stack now the

00:17:40.160 --> 00:17:42.080
resources logical identity no longer map

00:17:42.080 --> 00:17:44.160
and it just loses track of it. So they

00:17:44.160 --> 00:17:46.000
they are adding more features to like

00:17:46.000 --> 00:17:47.440
manage refactoring of resources which

00:17:47.440 --> 00:17:49.280
Terraform already does for you. Uh but

00:17:49.280 --> 00:17:50.559
then the push back was from the

00:17:50.559 --> 00:17:52.000
engineers that are used to go into the

00:17:52.000 --> 00:17:54.480
AWS console and I can't find my specific

00:17:54.480 --> 00:17:56.799
radius instance or my specific load

00:17:56.799 --> 00:17:58.880
balancer because the name is so and I'm

00:17:58.880 --> 00:18:01.520
like you the problem is the dashboard if

00:18:01.520 --> 00:18:02.960
you don't have a proper dashboard that

00:18:02.960 --> 00:18:04.880
shows you the tags and shows you to like

00:18:04.880 --> 00:18:06.960
slice and dice your resources by the

00:18:06.960 --> 00:18:08.080
tags

00:18:08.080 --> 00:18:10.320
>> to data dog's credit data dog actually

00:18:10.320 --> 00:18:11.760
does a good job of servicing all the

00:18:11.760 --> 00:18:12.640
tags

00:18:12.640 --> 00:18:14.320
>> and that's what it should be right

00:18:14.320 --> 00:18:16.559
>> console doesn't like I swear to god I

00:18:16.559 --> 00:18:18.160
was dealing I can't remember what it was

00:18:18.160 --> 00:18:19.760
but I was dealing with something the

00:18:19.760 --> 00:18:23.039
other day in in AWS and it didn't have

00:18:23.039 --> 00:18:25.039
bloody tags or it didn't show the tags.

00:18:25.039 --> 00:18:28.080
>> Yeah, tags are not everywhere in AWS. Um

00:18:28.080 --> 00:18:31.600
and and also not everywhere cuz there's

00:18:31.600 --> 00:18:33.200
a convention a lot of resources if you

00:18:33.200 --> 00:18:35.200
put a tag with the key name it shows up

00:18:35.200 --> 00:18:38.559
in the UI as the actual resource name uh

00:18:38.559 --> 00:18:40.720
nicely like for example on EC2 instance

00:18:40.720 --> 00:18:42.480
you cannot control the instance ID but

00:18:42.480 --> 00:18:43.840
you put on a tag with a name and then

00:18:43.840 --> 00:18:46.559
the dash the the the dash

00:18:46.559 --> 00:18:48.480
>> the web stores it nicely. Yeah,

00:18:48.480 --> 00:18:50.400
>> but some of them don't like the RDS

00:18:50.400 --> 00:18:52.559
because the RDS and the end point URL

00:18:52.559 --> 00:18:56.160
for the RDS as well.

00:18:56.160 --> 00:18:57.919
>> These are teams because every team works

00:18:57.919 --> 00:18:59.520
independently, right?

00:18:59.520 --> 00:19:01.360
>> Yeah. There should be like, you know, a

00:19:01.360 --> 00:19:04.880
bezos whatever mandate, make sure that

00:19:04.880 --> 00:19:07.919
everything's bloody tag or tagable.

00:19:07.919 --> 00:19:09.919
>> Yeah. So I think they're doing a lot of

00:19:09.919 --> 00:19:11.679
work there with like the resource

00:19:11.679 --> 00:19:14.559
manager uh that the t you have now the

00:19:14.559 --> 00:19:16.640
ability to like review all of your

00:19:16.640 --> 00:19:18.720
resources across your across your AWS

00:19:18.720 --> 00:19:20.960
orc uh using the resource manager and

00:19:20.960 --> 00:19:23.679
then using tags. So there are separate

00:19:23.679 --> 00:19:25.600
services focused just on that on like

00:19:25.600 --> 00:19:27.039
managing resources and finding your

00:19:27.039 --> 00:19:28.000
resources.

00:19:28.000 --> 00:19:30.240
>> Cool. Cool. Okay. So

00:19:30.240 --> 00:19:32.799
>> I really like your tips here, but but

00:19:32.799 --> 00:19:35.200
still the question remains given a

00:19:35.200 --> 00:19:38.320
platform like this with lots of uh teams

00:19:38.320 --> 00:19:41.360
and things like this. I is is the is the

00:19:41.360 --> 00:19:43.840
grid the right tool to make to to keep

00:19:43.840 --> 00:19:45.679
an eye on all all this stuff or what

00:19:45.679 --> 00:19:48.080
would you suggest?

00:19:48.080 --> 00:19:50.640
Because I need to know what's going on

00:19:50.640 --> 00:19:53.120
here sometimes. Otherwise,

00:19:53.120 --> 00:19:55.440
>> when people ask me, "Has Gene Mango got

00:19:55.440 --> 00:19:58.320
the thing in London?" I'll be like, "Um,

00:19:58.320 --> 00:20:00.880
>> I think you should research to system."

00:20:00.880 --> 00:20:03.039
I can't speak. I think you should re

00:20:03.039 --> 00:20:05.120
reach out to system initiative because

00:20:05.120 --> 00:20:08.080
he's often posting about like um they

00:20:08.080 --> 00:20:09.840
have a programmable graph that [snorts]

00:20:09.840 --> 00:20:12.480
allows people to manage their

00:20:12.480 --> 00:20:13.919
>> system initiative. I

00:20:13.919 --> 00:20:17.600
>> so Adam and uh his colleagues uh demoed

00:20:17.600 --> 00:20:19.679
it to to to us

00:20:19.679 --> 00:20:20.400
>> works.

00:20:20.400 --> 00:20:24.320
>> Yeah. And uh to be honest, I I was a

00:20:24.320 --> 00:20:26.160
complete but you know, you got

00:20:26.160 --> 00:20:28.080
to give me credit because I

00:20:28.080 --> 00:20:30.240
>> as usual. [laughter]

00:20:30.240 --> 00:20:33.600
>> So, so he Yeah. So, system initiative,

00:20:33.600 --> 00:20:35.120
they demoed this like, you know, like

00:20:35.120 --> 00:20:36.799
this big square. I don't know why that's

00:20:36.799 --> 00:20:37.760
like that.

00:20:37.760 --> 00:20:40.960
>> And then you have your your VPCs and

00:20:40.960 --> 00:20:42.320
things like this. Like, first off, I was

00:20:42.320 --> 00:20:43.919
like, ah man,

00:20:43.919 --> 00:20:45.440
>> I hate it when you you start

00:20:45.440 --> 00:20:47.600
infrastructure from a networking

00:20:47.600 --> 00:20:49.440
perspective, but I get it. But I I hate

00:20:49.440 --> 00:20:50.960
it like

00:20:50.960 --> 00:20:53.600
like you know like if you want Yeah. VPC

00:20:53.600 --> 00:20:56.320
this VPC that

00:20:56.320 --> 00:20:58.559
because I just I just hate it. I hate

00:20:58.559 --> 00:21:02.000
like a a focus on you know network based

00:21:02.000 --> 00:21:04.480
infrastructure. I prefer to think of

00:21:04.480 --> 00:21:07.440
things as I don't know like this level

00:21:07.440 --> 00:21:09.520
and then and then it goes on like

00:21:09.520 --> 00:21:13.360
whatever to um eventually you know EC2

00:21:13.360 --> 00:21:17.520
and things like this. Um but then the

00:21:17.520 --> 00:21:19.039
thing that really got me was like okay

00:21:19.039 --> 00:21:22.480
so you you're creating resources la

00:21:22.480 --> 00:21:24.640
>> and then I was like how do you like

00:21:24.640 --> 00:21:26.400
maintain the state and all that stuff?

00:21:26.400 --> 00:21:29.039
He says oh this is just this is what it

00:21:29.039 --> 00:21:31.120
is right now.

00:21:31.120 --> 00:21:32.880
>> It was like a onetoone mapping and then

00:21:32.880 --> 00:21:35.360
I go like oh so how do you do that? How

00:21:35.360 --> 00:21:36.960
do you like connect to the terraform

00:21:36.960 --> 00:21:39.760
provider? He says oh we just run AWS CLI

00:21:39.760 --> 00:21:41.120
CLI commands under the

00:21:41.120 --> 00:21:42.000
>> Yeah. Yeah. And I was like

00:21:42.000 --> 00:21:45.760
>> this is crazy. No, no, this cannot work.

00:21:45.760 --> 00:21:50.159
>> I I initially wanted to contribution

00:21:50.159 --> 00:21:51.919
of this year at the beginning of the

00:21:51.919 --> 00:21:54.480
year was to like find an open source

00:21:54.480 --> 00:21:56.880
project and contribute to it. And I was

00:21:56.880 --> 00:21:58.799
like, okay, SI is it. I'm going to look

00:21:58.799 --> 00:22:00.960
into it. And the moment they showed me

00:22:00.960 --> 00:22:02.640
like linked me to the TypeScript under

00:22:02.640 --> 00:22:04.000
the hood, which is literally just

00:22:04.000 --> 00:22:07.120
calling the AWS CLI, I was like, there's

00:22:07.120 --> 00:22:09.200
so much autogenerated APIs like the

00:22:09.200 --> 00:22:12.480
telephone provider autogenerated. Um why

00:22:12.480 --> 00:22:15.120
would you like go down to just scripting

00:22:15.120 --> 00:22:17.600
around the CLI like literally TypeScript

00:22:17.600 --> 00:22:21.760
TypeScript OSX um the thing is that's I

00:22:21.760 --> 00:22:23.120
think is an implementation detail

00:22:23.120 --> 00:22:25.919
because the idea of every

00:22:25.919 --> 00:22:30.480
um component there being uh it's a a

00:22:30.480 --> 00:22:32.559
programmable graph right the point is

00:22:32.559 --> 00:22:36.320
that there are simple um imperative type

00:22:36.320 --> 00:22:37.840
of scripts I think it works better for

00:22:37.840 --> 00:22:40.240
people that are used to simple that are

00:22:40.240 --> 00:22:43.679
like like to write uh a script in YAML.

00:22:43.679 --> 00:22:46.480
Um basically every arrow, every

00:22:46.480 --> 00:22:49.280
component has like um their own create,

00:22:49.280 --> 00:22:52.159
read, update hooks and those invoke the

00:22:52.159 --> 00:22:54.240
scripts and they build a whole bunch of

00:22:54.240 --> 00:22:56.080
components with all of their CRUD hooks.

00:22:56.080 --> 00:22:57.840
For example, a VPC that has the create

00:22:57.840 --> 00:22:59.840
hook, the read hook, the update hook

00:22:59.840 --> 00:23:01.600
that directly maps to the AWS CLI

00:23:01.600 --> 00:23:03.600
commands. And that's basically SI built

00:23:03.600 --> 00:23:05.200
the graph with the hooks that are

00:23:05.200 --> 00:23:07.200
invocable like functions. And then they

00:23:07.200 --> 00:23:09.200
built the whole bunch of like components

00:23:09.200 --> 00:23:11.280
that are using that graph. So then when

00:23:11.280 --> 00:23:12.799
they create the VPC, it goes and runs

00:23:12.799 --> 00:23:14.880
that AWS CLI command, that AWS CLI

00:23:14.880 --> 00:23:18.320
command when you want to update it. And

00:23:18.320 --> 00:23:20.720
I mean I I think it comes back to the

00:23:20.720 --> 00:23:22.880
the question like why doesn't Terraform

00:23:22.880 --> 00:23:24.480
do that also, right? Because Terapform

00:23:24.480 --> 00:23:26.799
is just talking to the AWS API. It could

00:23:26.799 --> 00:23:28.559
just go and find all of the resources

00:23:28.559 --> 00:23:30.640
that supposedly exists based on tags

00:23:30.640 --> 00:23:32.799
because that's what um Hashimoto

00:23:32.799 --> 00:23:34.720
originally did for Terraform. uh they

00:23:34.720 --> 00:23:36.320
were just creating resources and using

00:23:36.320 --> 00:23:37.679
tags on the resources to find them.

00:23:37.679 --> 00:23:39.440
>> It's funny you mentioned it. I was

00:23:39.440 --> 00:23:41.679
randomly watching a video and he talks

00:23:41.679 --> 00:23:44.559
about Terraform as a graph API and like

00:23:44.559 --> 00:23:46.400
well okay but where's your

00:23:46.400 --> 00:23:49.039
representation of the graph?

00:23:49.039 --> 00:23:51.200
So, so there's this interesting

00:23:51.200 --> 00:23:53.919
Terraform issue where uh they ask

00:23:53.919 --> 00:23:56.559
Hashimoto like why didn't you just um

00:23:56.559 --> 00:23:58.480
you know attack like why do you need

00:23:58.480 --> 00:24:00.240
state like get rid of the state file and

00:24:00.240 --> 00:24:01.679
he highlighted all of the issues that

00:24:01.679 --> 00:24:03.200
you get if you don't have a state file

00:24:03.200 --> 00:24:05.520
if you don't um I think one of them was

00:24:05.520 --> 00:24:08.720
speed um there was others because the

00:24:08.720 --> 00:24:10.880
physical identity changes if the tag

00:24:10.880 --> 00:24:13.279
changes um so they tried it and they

00:24:13.279 --> 00:24:16.640
said and it didn't really work so um

00:24:16.640 --> 00:24:18.559
basically you're saying that Hashimoto

00:24:18.559 --> 00:24:20.400
did try something what system initiative

00:24:20.400 --> 00:24:24.159
did but it was just not going to work

00:24:24.159 --> 00:24:25.840
>> a long time ago right and I think things

00:24:25.840 --> 00:24:28.320
changed a lot so I don't know um I think

00:24:28.320 --> 00:24:31.840
there's some interesting ideas uh but I

00:24:31.840 --> 00:24:33.279
had the same reaction when I looked at

00:24:33.279 --> 00:24:35.440
the system initiative when I really

00:24:35.440 --> 00:24:36.720
lifted up the the whole

00:24:36.720 --> 00:24:39.600
>> feel for dismissing the whole idea

00:24:39.600 --> 00:24:41.279
because I just thought like it wasn't

00:24:41.279 --> 00:24:44.720
going to work just instinctively but but

00:24:44.720 --> 00:24:47.600
now yeah now I mean I started this

00:24:47.600 --> 00:24:49.279
conversation saying that I need I need

00:24:49.279 --> 00:24:52.159
to see a visualization and then we just

00:24:52.159 --> 00:24:56.037
go back to system initiative.

00:24:56.037 --> 00:24:59.360
[snorts] Uh yeah, I mean I guess they

00:24:59.360 --> 00:25:02.720
they could convince us in the end. I

00:25:02.720 --> 00:25:04.720
think this is one of the main what I

00:25:04.720 --> 00:25:07.039
learned from building my library is that

00:25:07.039 --> 00:25:09.520
the framework in itself maybe is

00:25:09.520 --> 00:25:10.960
approaching the problem from a certain

00:25:10.960 --> 00:25:13.679
way but the actual utility comes from

00:25:13.679 --> 00:25:15.600
the library of components that comes

00:25:15.600 --> 00:25:17.600
with it because like you can interact

00:25:17.600 --> 00:25:19.919
with the cloud however you want like you

00:25:19.919 --> 00:25:21.360
want to use a state file or you want to

00:25:21.360 --> 00:25:23.120
use a kubernetes operator or you want to

00:25:23.120 --> 00:25:25.919
build pulley um you know typescript to

00:25:25.919 --> 00:25:28.960
every possible language sure go ahead do

00:25:28.960 --> 00:25:31.200
all of that the problem is if you cannot

00:25:31.200 --> 00:25:34.000
give me a nice library of components. If

00:25:34.000 --> 00:25:35.600
you like when I looked at crossplane,

00:25:35.600 --> 00:25:37.840
there was no proper um you know

00:25:37.840 --> 00:25:39.520
available publicly available set of

00:25:39.520 --> 00:25:41.840
crossplane um resources that I could use

00:25:41.840 --> 00:25:43.360
with AWS. I would need to build

00:25:43.360 --> 00:25:45.360
everything out of the box. Uh and the

00:25:45.360 --> 00:25:46.880
only framework that really has this is

00:25:46.880 --> 00:25:49.520
AWS CDK, right? Because it comes out of

00:25:49.520 --> 00:25:52.240
the box not just with the low-level AWS

00:25:52.240 --> 00:25:54.559
API interface but also with the

00:25:54.559 --> 00:25:56.080
integration patterns of how you use

00:25:56.080 --> 00:25:57.679
these services together. And then the

00:25:57.679 --> 00:25:59.919
other framework that does that is SSI

00:25:59.919 --> 00:26:02.559
which is uh sorry SST not SSI what the

00:26:02.559 --> 00:26:04.640
hell uh SST which is basically using

00:26:04.640 --> 00:26:06.799
Palumi those basic components and then

00:26:06.799 --> 00:26:08.559
building highle system integration

00:26:08.559 --> 00:26:09.679
patterns on top of it

00:26:09.679 --> 00:26:11.200
>> just to service integration

00:26:11.200 --> 00:26:12.480
>> just to repeat what my understanding

00:26:12.480 --> 00:26:14.159
what you just said you just like you got

00:26:14.159 --> 00:26:15.919
to use the tool that has the best

00:26:15.919 --> 00:26:18.000
coverage of the of the resources that

00:26:18.000 --> 00:26:19.039
you're trying to use.

00:26:19.039 --> 00:26:20.480
>> Yeah. And the services uh the

00:26:20.480 --> 00:26:22.320
integrations have um integration

00:26:22.320 --> 00:26:24.000
patterns between services because if you

00:26:24.000 --> 00:26:25.760
use AWS you must know every single

00:26:25.760 --> 00:26:28.000
service integrated with IM kind of

00:26:28.000 --> 00:26:29.840
practical look at it.

00:26:29.840 --> 00:26:31.679
>> Yeah and and and this is what what

00:26:31.679 --> 00:26:33.520
system initiative I think spent 5 years

00:26:33.520 --> 00:26:35.760
doing they started they had to spend

00:26:35.760 --> 00:26:37.760
after they have the basic framework they

00:26:37.760 --> 00:26:39.679
have to spend all this time to building

00:26:39.679 --> 00:26:42.000
all of the components for AWS writing

00:26:42.000 --> 00:26:44.080
every single AWS CLI script for every

00:26:44.080 --> 00:26:47.440
single hook that a component um needs to

00:26:47.440 --> 00:26:49.039
you know invoke whenever couldn't have

00:26:49.039 --> 00:26:51.120
gone down that path of uh what did you

00:26:51.120 --> 00:26:53.360
show me that was autogenerated? Oh my I

00:26:53.360 --> 00:26:54.880
forgot the name of it.

00:26:54.880 --> 00:26:58.080
>> There there is AWSC uh like cloud

00:26:58.080 --> 00:27:00.159
control provider that's autogenerated

00:27:00.159 --> 00:27:02.480
from the AWS API but again on its own

00:27:02.480 --> 00:27:04.240
that doesn't really help because

00:27:04.240 --> 00:27:07.360
creating a single API resource does not

00:27:07.360 --> 00:27:09.760
give you the functionality that you need

00:27:09.760 --> 00:27:12.880
out of the AWS API because the AWS API

00:27:12.880 --> 00:27:14.640
effectively is a combination of many

00:27:14.640 --> 00:27:16.480
resources working together in a certain

00:27:16.480 --> 00:27:19.360
configured way. But the but system

00:27:19.360 --> 00:27:22.480
initiative since they since they

00:27:22.480 --> 00:27:25.919
rely on AWS CLI the AWS CLI surely is

00:27:25.919 --> 00:27:28.480
their interface and that's there.

00:27:28.480 --> 00:27:30.880
>> Sure. But the AWS CL CLI is also just

00:27:30.880 --> 00:27:33.120
autogenerated wrapper around most of the

00:27:33.120 --> 00:27:35.520
AWS APIs, right? It doesn't give you

00:27:35.520 --> 00:27:38.080
like the idea of AWS CDK. The example

00:27:38.080 --> 00:27:40.159
that I like to give is I have an EC2

00:27:40.159 --> 00:27:41.679
instance and I want it to give it

00:27:41.679 --> 00:27:44.159
permission to an IM uh to an S3 bucket.

00:27:44.159 --> 00:27:45.760
I want I have an EC2 instance and I want

00:27:45.760 --> 00:27:47.679
to give it access to an S3 bucket.

00:27:47.679 --> 00:27:51.440
Right? So now look at how many resources

00:27:51.440 --> 00:27:54.320
you need to create. Right?

00:27:54.320 --> 00:27:56.399
>> Maybe you say, "Oh, but that's a very

00:27:56.399 --> 00:27:58.159
common pattern in my organization. So I

00:27:58.159 --> 00:27:59.600
create a terapform module that combines

00:27:59.600 --> 00:28:01.600
the two and then later down the line you

00:28:01.600 --> 00:28:03.279
have a situation where the S3 bucket

00:28:03.279 --> 00:28:05.120
actually needs to trigger a lambda

00:28:05.120 --> 00:28:07.039
whenever the the S3 instance does

00:28:07.039 --> 00:28:08.320
something or whatever or needs to be

00:28:08.320 --> 00:28:10.159
hooked up to an SNS and you keep

00:28:10.159 --> 00:28:12.240
extending that original very simple

00:28:12.240 --> 00:28:14.640
basic pattern until it becomes a massive

00:28:14.640 --> 00:28:16.640
like module with you know 40 different

00:28:16.640 --> 00:28:18.640
parameters to configure whatever use

00:28:18.640 --> 00:28:21.200
cases you now have after two years of of

00:28:21.200 --> 00:28:24.640
using AWS and evolving your product. Um

00:28:24.640 --> 00:28:27.440
I think the right way is what what they

00:28:27.440 --> 00:28:29.120
are doing with AWS CDK is the actual

00:28:29.120 --> 00:28:31.039
service teams and the community building

00:28:31.039 --> 00:28:34.159
proper um patterns around these things

00:28:34.159 --> 00:28:36.000
such as you know with abstractions such

00:28:36.000 --> 00:28:38.640
as I have an I principle I have an uh

00:28:38.640 --> 00:28:40.559
resource and I can grant a principle

00:28:40.559 --> 00:28:42.480
access to a resource and if the I

00:28:42.480 --> 00:28:44.720
principle is an AWS instance and it

00:28:44.720 --> 00:28:46.240
needs to implement this this this

00:28:46.240 --> 00:28:48.960
interface that means it must have an IM

00:28:48.960 --> 00:28:51.600
role that I can refer to. So who can

00:28:51.600 --> 00:28:52.480
build up under the

00:28:52.480 --> 00:28:55.760
>> hood idea of encapsulated u I guess my

00:28:55.760 --> 00:28:57.919
favorite one in AWS is the the

00:28:57.919 --> 00:28:59.919
serverless SAM stuff.

00:28:59.919 --> 00:29:00.720
>> Yeah.

00:29:00.720 --> 00:29:03.120
>> Here's an example that got my head

00:29:03.120 --> 00:29:06.000
spinning the other day. Um

00:29:06.000 --> 00:29:09.360
so a colleague was telling me that when

00:29:09.360 --> 00:29:12.640
you use ECS it creates like a bucket

00:29:12.640 --> 00:29:15.760
behind the scenes. And the trouble is in

00:29:15.760 --> 00:29:18.399
our in in the organization that I'm what

00:29:18.399 --> 00:29:19.760
I'm working with, they're so strict

00:29:19.760 --> 00:29:22.559
about all their their bucket policies

00:29:22.559 --> 00:29:24.880
and things like that. Like for example,

00:29:24.880 --> 00:29:27.120
I think you have to have a bucket policy

00:29:27.120 --> 00:29:29.279
with some deny on it or something like

00:29:29.279 --> 00:29:31.200
that. Like just off the bat when you

00:29:31.200 --> 00:29:34.159
create a but the trouble is that ECS

00:29:34.159 --> 00:29:37.200
creates a bucket and it doesn't it

00:29:37.200 --> 00:29:38.640
relies on that bucket not having the

00:29:38.640 --> 00:29:41.919
policy for it to work. So, so basically

00:29:41.919 --> 00:29:43.360
this colleague of mine was telling me

00:29:43.360 --> 00:29:45.120
that they were using ECS and it wasn't

00:29:45.120 --> 00:29:46.480
working and they couldn't figure out

00:29:46.480 --> 00:29:49.679
what the hell the problem [laughter] was

00:29:49.679 --> 00:29:51.440
because like if you look around ECS

00:29:51.440 --> 00:29:54.640
documentation, you won't you won't see

00:29:54.640 --> 00:29:56.799
that you know ECS requires this bucket

00:29:56.799 --> 00:29:58.240
to work.

00:29:58.240 --> 00:30:00.559
>> It's kind of hidden away.

00:30:00.559 --> 00:30:03.039
>> Yeah. And then so so basically that's to

00:30:03.039 --> 00:30:04.960
show I mean that's that's me trying to

00:30:04.960 --> 00:30:06.880
give come up with a dumb counter example

00:30:06.880 --> 00:30:08.320
to these abstractions because then you

00:30:08.320 --> 00:30:09.919
just don't know what the hell's going on

00:30:09.919 --> 00:30:11.520
sometimes.

00:30:11.520 --> 00:30:12.799
>> Um especially if they use

00:30:12.799 --> 00:30:14.720
>> so here the extraction is the user

00:30:14.720 --> 00:30:16.480
interface that AWS creates and when you

00:30:16.480 --> 00:30:18.000
create the button under the hood it

00:30:18.000 --> 00:30:19.760
calls many different APIs to create the

00:30:19.760 --> 00:30:21.919
bucket and whatever. And when you then

00:30:21.919 --> 00:30:23.679
need to capture that into infrastructure

00:30:23.679 --> 00:30:25.600
as code now suddenly you have to go and

00:30:25.600 --> 00:30:27.760
figure out bucket policy get cascades

00:30:27.760 --> 00:30:31.440
down into that bucket you're screwed.

00:30:31.440 --> 00:30:32.960
You know what I mean?

00:30:32.960 --> 00:30:34.960
>> Okay. Yeah. What you're saying is

00:30:34.960 --> 00:30:36.320
>> a stupid example. It shouldn't really

00:30:36.320 --> 00:30:38.480
happen, but it it happened.

00:30:38.480 --> 00:30:40.000
>> No, but like these things happen all the

00:30:40.000 --> 00:30:44.880
time. Like I am I'm very annoyed when

00:30:44.880 --> 00:30:46.960
people click ops things into a

00:30:46.960 --> 00:30:48.960
non-production envir uh sorry into a

00:30:48.960 --> 00:30:52.000
production environment because there's a

00:30:52.000 --> 00:30:53.600
time limit. There's a time constraint

00:30:53.600 --> 00:30:55.440
and they didn't have time to do to do

00:30:55.440 --> 00:30:57.679
the ISC. they clicked it in on in dev

00:30:57.679 --> 00:30:59.039
then they clicked it in in staging and

00:30:59.039 --> 00:31:00.640
now there's a deadline and they need to

00:31:00.640 --> 00:31:04.399
do it um because the IC doesn't work for

00:31:04.399 --> 00:31:05.600
example

00:31:05.600 --> 00:31:08.000
>> when you when you click something in

00:31:08.000 --> 00:31:10.399
>> it will maybe enable a service uh uh

00:31:10.399 --> 00:31:13.279
linked role into the AWS account

00:31:13.279 --> 00:31:15.200
automatically so like you you start

00:31:15.200 --> 00:31:17.440
using an AWS service if you use user

00:31:17.440 --> 00:31:19.039
>> interface it does a lot of things and

00:31:19.039 --> 00:31:20.559
you don't even know what it is it's so

00:31:20.559 --> 00:31:21.279
hard to capture

00:31:21.279 --> 00:31:24.000
>> and that's what I like about AWS CDK

00:31:24.000 --> 00:31:26.640
because it actually capt captures all of

00:31:26.640 --> 00:31:29.120
those actions. It's like a user

00:31:29.120 --> 00:31:31.840
interface but a programmatic one. So

00:31:31.840 --> 00:31:34.080
it's built to cap like it's almost the

00:31:34.080 --> 00:31:37.120
same. I mean honestly when you use AWS

00:31:37.120 --> 00:31:39.039
CDK and you have a bucket and you have a

00:31:39.039 --> 00:31:40.720
lambda and you need to connect it to

00:31:40.720 --> 00:31:42.159
under the hood it's going to make sure

00:31:42.159 --> 00:31:43.600
that there's a resource policy that

00:31:43.600 --> 00:31:45.279
there's an IM lambda permission whatever

00:31:45.279 --> 00:31:46.000
if the bucket needs

00:31:46.000 --> 00:31:47.760
>> are you confident that like the the the

00:31:47.760 --> 00:31:50.799
AWS console and the CDK are are

00:31:50.799 --> 00:31:53.440
synologist or onetoone because I'm I'm

00:31:53.440 --> 00:31:55.919
always a bit doubtful that they are

00:31:55.919 --> 00:31:57.760
>> very doubtful

00:31:57.760 --> 00:32:00.720
>> I am very confident that

00:32:00.720 --> 00:32:03.279
>> 90% of the time they are because I

00:32:03.279 --> 00:32:05.519
believe AWS uses CDK internally as well

00:32:05.519 --> 00:32:07.440
to build their products. I believe that

00:32:07.440 --> 00:32:09.760
the teams that build the API interfaces

00:32:09.760 --> 00:32:11.919
of those services actually contribute to

00:32:11.919 --> 00:32:14.159
AWS CDK to capture these things.

00:32:14.159 --> 00:32:14.559
>> And

00:32:14.559 --> 00:32:16.720
>> so did you say 80% because like yeah

00:32:16.720 --> 00:32:18.399
that's a lot better than say Terraform

00:32:18.399 --> 00:32:20.240
where I'm probably like 10% you know.

00:32:20.240 --> 00:32:22.640
>> Oh absolutely. Terraform is a nightmare.

00:32:22.640 --> 00:32:24.880
Um and and and having an autogenerated

00:32:24.880 --> 00:32:26.080
Terraform provider is not going to solve

00:32:26.080 --> 00:32:27.600
the problem again because the the

00:32:27.600 --> 00:32:30.320
low-level API resources are not the

00:32:30.320 --> 00:32:32.320
solution. It's a combination of them.

00:32:32.320 --> 00:32:34.240
And and then the comment I get a lot on

00:32:34.240 --> 00:32:37.279
Reddit is like, "Yeah, but if you're

00:32:37.279 --> 00:32:38.720
using a programming language to do

00:32:38.720 --> 00:32:40.960
infrastructure, you're doing it wrong."

00:32:40.960 --> 00:32:44.159
And the reality is again

00:32:44.159 --> 00:32:48.480
the the the cloud is not as basic as it

00:32:48.480 --> 00:32:50.080
used to be. It's not just about creating

00:32:50.080 --> 00:32:52.240
network subnets and and EC2 instances

00:32:52.240 --> 00:32:55.200
and allocating network interfaces. uh

00:32:55.200 --> 00:32:57.200
and that used to be probably quite

00:32:57.200 --> 00:32:59.600
simple but now you have like IBV6 then

00:32:59.600 --> 00:33:01.279
you have like your flow logs then you

00:33:01.279 --> 00:33:03.360
have uh a flow log bucket and then you

00:33:03.360 --> 00:33:04.960
have all kinds of uh integration

00:33:04.960 --> 00:33:07.519
patterns across different services and I

00:33:07.519 --> 00:33:09.440
mean case in point

00:33:09.440 --> 00:33:10.799
>> so sorry can you just rephrase that like

00:33:10.799 --> 00:33:12.240
who said like if you if you're using

00:33:12.240 --> 00:33:13.760
infrastructure you're doing it wrong

00:33:13.760 --> 00:33:14.240
what

00:33:14.240 --> 00:33:16.480
>> no if you're using programming languages

00:33:16.480 --> 00:33:17.600
like full

00:33:17.600 --> 00:33:18.960
>> oh right

00:33:18.960 --> 00:33:20.960
>> like full uh what's it called to

00:33:20.960 --> 00:33:22.880
incomplete programming languages to to

00:33:22.880 --> 00:33:24.320
write infrastructure as code you're

00:33:24.320 --> 00:33:26.960
doing it That's a very common um

00:33:26.960 --> 00:33:29.360
argument against using general purpose

00:33:29.360 --> 00:33:30.720
programming language. The the most

00:33:30.720 --> 00:33:32.960
common argument is um we just need a

00:33:32.960 --> 00:33:34.480
config file. We just need to do a

00:33:34.480 --> 00:33:36.240
declarative and we need to keep it

00:33:36.240 --> 00:33:37.600
simple and it will be fine.

00:33:37.600 --> 00:33:39.679
>> Y yeah

00:33:39.679 --> 00:33:41.679
to be honest I'm usually in that camp

00:33:41.679 --> 00:33:44.399
but uh but it bites all the time.

00:33:44.399 --> 00:33:46.080
>> Well you you can be in that camp until

00:33:46.080 --> 00:33:48.640
you do something actual real work and

00:33:48.640 --> 00:33:50.640
then you realize that that that's a very

00:33:50.640 --> 00:33:52.480
naive approach. And then every time I I

00:33:52.480 --> 00:33:54.399
I I come with that argument, people say,

00:33:54.399 --> 00:33:57.679
"Oh, I worked at like hundred different

00:33:57.679 --> 00:33:59.600
country large organization and we have

00:33:59.600 --> 00:34:01.840
no problem." I don't believe it. I don't

00:34:01.840 --> 00:34:03.120
believe you have a problem or I don't

00:34:03.120 --> 00:34:04.080
believe you work at such an

00:34:04.080 --> 00:34:05.840
organization. If you think that it's so

00:34:05.840 --> 00:34:07.519
simple to just use terapform

00:34:07.519 --> 00:34:12.639
configuration.

00:34:12.639 --> 00:34:13.919
>> Yeah, I'm just trying to capture what

00:34:13.919 --> 00:34:16.399
we're saying in a nice graphic

00:34:16.399 --> 00:34:19.679
in a nice slide. Uh

00:34:19.679 --> 00:34:21.359
>> so there's this these efforts from the

00:34:21.359 --> 00:34:23.200
community to use basic terapform modules

00:34:23.200 --> 00:34:25.520
to capture all of these usage patterns

00:34:25.520 --> 00:34:27.359
and very quickly those modules become

00:34:27.359 --> 00:34:29.679
just I mean what I was going to say

00:34:29.679 --> 00:34:30.480
>> one

00:34:30.480 --> 00:34:32.399
>> yeah what what I was going to say is

00:34:32.399 --> 00:34:35.119
case in point um the argument that the

00:34:35.119 --> 00:34:37.040
terraform sorry the argument that the

00:34:37.040 --> 00:34:38.879
cloud is simple and we just need to use

00:34:38.879 --> 00:34:41.440
basic declarative configuration just go

00:34:41.440 --> 00:34:44.000
look at the of the VPC module just go

00:34:44.000 --> 00:34:46.639
look at the VPC module look at how many

00:34:46.639 --> 00:34:48.800
um variables there are input variables

00:34:48.800 --> 00:34:51.440
because you can do um IMAP uh sorry

00:34:51.440 --> 00:34:52.960
what's it called when you have IP

00:34:52.960 --> 00:34:56.800
manager um IP man no the the basically

00:34:56.800 --> 00:34:59.839
managed IP EPOM yeah IP uh yeah that

00:34:59.839 --> 00:35:01.440
sounds right so you can do you can set

00:35:01.440 --> 00:35:05.119
up a cider to control the you know cider

00:35:05.119 --> 00:35:07.119
subet allocations

00:35:07.119 --> 00:35:08.880
um you can do your flow locks you can so

00:35:08.880 --> 00:35:11.359
the amount of of of things that you can

00:35:11.359 --> 00:35:14.160
do is so big that if you look at that

00:35:14.160 --> 00:35:15.440
module

00:35:15.440 --> 00:35:17.599
>> uh alone you will notice that there's

00:35:17.599 --> 00:35:19.359
like you know I don't know so many

00:35:19.359 --> 00:35:21.040
different Torah form configuration files

00:35:21.040 --> 00:35:22.720
each one has a locals block that has

00:35:22.720 --> 00:35:24.800
multiple indirection layers on top of

00:35:24.800 --> 00:35:28.079
the uh putting Julio variable that needs

00:35:28.079 --> 00:35:29.440
to be set to true before the whole

00:35:29.440 --> 00:35:32.000
module can be used u but then you have

00:35:32.000 --> 00:35:35.440
so much in there that

00:35:35.440 --> 00:35:37.520
you know you can't tell me that you just

00:35:37.520 --> 00:35:39.920
need a very basic and then and then the

00:35:39.920 --> 00:35:42.000
um the response is usually oh no problem

00:35:42.000 --> 00:35:43.680
I just take that beautiful module that

00:35:43.680 --> 00:35:44.960
has all of these things because people

00:35:44.960 --> 00:35:48.000
contribute epam I need IPv6 support. I

00:35:48.000 --> 00:35:49.599
need net instance support because I

00:35:49.599 --> 00:35:51.119
don't want to pay through my nose for

00:35:51.119 --> 00:35:53.119
net instances. Uh sorry, I don't want to

00:35:53.119 --> 00:35:54.640
pay for net gateways. I just want to

00:35:54.640 --> 00:35:57.839
spin up an instance and and save 20% um

00:35:57.839 --> 00:36:00.000
sorry and save 80% of the cost of of

00:36:00.000 --> 00:36:02.160
net. Um so I need all of these features.

00:36:02.160 --> 00:36:04.000
So I just take that module, I remove

00:36:04.000 --> 00:36:06.000
what I don't want and I keep it simple.

00:36:06.000 --> 00:36:07.520
But then you have to maintain your own

00:36:07.520 --> 00:36:08.880
version of that module. And as things

00:36:08.880 --> 00:36:10.400
are being introduced, you need to like

00:36:10.400 --> 00:36:14.320
merge upstream down into your stuff. And

00:36:14.320 --> 00:36:17.440
basically everyone is just forking um

00:36:17.440 --> 00:36:20.320
shared resources and then keeping their

00:36:20.320 --> 00:36:22.880
own private copy of it and then how many

00:36:22.880 --> 00:36:24.640
people actually contribute back to it.

00:36:24.640 --> 00:36:24.960
Yeah,

00:36:24.960 --> 00:36:26.400
>> I think that's that's just a

00:36:26.400 --> 00:36:28.400
>> in my current client we have so many

00:36:28.400 --> 00:36:31.119
different constructs and uh

00:36:31.119 --> 00:36:33.119
>> they're using AWS CDK, right? and they

00:36:33.119 --> 00:36:33.680
are trying

00:36:33.680 --> 00:36:35.760
>> well we're mix now we're using a mix

00:36:35.760 --> 00:36:37.920
between CDK and ter but historically

00:36:37.920 --> 00:36:40.000
they were using CDK

00:36:40.000 --> 00:36:43.680
>> yeah it works but yeah it's but but we

00:36:43.680 --> 00:36:45.520
have that problem as you describe so

00:36:45.520 --> 00:36:46.880
there's nothing that to help me

00:36:46.880 --> 00:36:50.079
visualize this Vincent

00:36:50.079 --> 00:36:52.240
>> well does

00:36:52.240 --> 00:36:55.760
>> you have access to the grid

00:36:55.760 --> 00:36:58.079
>> um but

00:36:58.079 --> 00:36:59.040
uh

00:36:59.040 --> 00:37:01.359
>> so what the grid does is right now I

00:37:01.359 --> 00:37:04.960
mean the grid But can the grid can can

00:37:04.960 --> 00:37:07.200
the grid I remember the grid taking in

00:37:07.200 --> 00:37:09.040
terraform state but can it can can it

00:37:09.040 --> 00:37:11.359
also take in CDK state because this is a

00:37:11.359 --> 00:37:14.640
mix between CDK and Terraform right now.

00:37:14.640 --> 00:37:16.640
This is this is another thing that makes

00:37:16.640 --> 00:37:20.800
my life extra exciting.

00:37:20.800 --> 00:37:23.280
Uh um right now the grid

00:37:23.280 --> 00:37:24.640
>> new requirements new requirements.

00:37:24.640 --> 00:37:26.160
>> So the grid is you can look at the grid

00:37:26.160 --> 00:37:28.000
as like two two way you have one is the

00:37:28.000 --> 00:37:29.359
control plane and two is a data plane.

00:37:29.359 --> 00:37:31.040
The control plane is the is the way of

00:37:31.040 --> 00:37:33.040
creating states and metadata around the

00:37:33.040 --> 00:37:35.040
states such as the labels such as the

00:37:35.040 --> 00:37:38.560
team or the the stage or the

00:37:38.560 --> 00:37:41.119
>> why do you why do you say labels is just

00:37:41.119 --> 00:37:41.680
labels and

00:37:41.680 --> 00:37:44.640
>> tax is a very AWS specific terminology

00:37:44.640 --> 00:37:45.520
>> okay carry on

00:37:45.520 --> 00:37:47.680
>> labels is closer to K cubernetes way of

00:37:47.680 --> 00:37:49.280
doing things like in in Kubernetes you

00:37:49.280 --> 00:37:51.839
have labels and annotations I just um

00:37:51.839 --> 00:37:53.359
have the key value pair

00:37:53.359 --> 00:37:54.960
>> what's annotation again then

00:37:54.960 --> 00:37:57.200
>> annotations you can apply to resources

00:37:57.200 --> 00:38:00.160
then I think there's two different um

00:38:00.160 --> 00:38:02.079
programmatic parts. One of them is meant

00:38:02.079 --> 00:38:04.640
to be like the label queries are meant

00:38:04.640 --> 00:38:06.960
to be much faster to query across the

00:38:06.960 --> 00:38:08.800
state and the annotation is less

00:38:08.800 --> 00:38:10.400
queryable. I think that's why they

00:38:10.400 --> 00:38:11.920
separate the two.

00:38:11.920 --> 00:38:15.520
>> Wow. An annotation is um

00:38:15.520 --> 00:38:17.920
>> some information that you can like the

00:38:17.920 --> 00:38:20.400
annotations you were using for like on

00:38:20.400 --> 00:38:21.760
an ingress manifest. You may have an

00:38:21.760 --> 00:38:23.200
annotation that the controller is

00:38:23.200 --> 00:38:25.440
enginex ingress for example and another

00:38:25.440 --> 00:38:26.960
ingress manifest might be controlled by

00:38:26.960 --> 00:38:30.560
another um um ingress controller. So

00:38:30.560 --> 00:38:32.560
that goes into annotations but the

00:38:32.560 --> 00:38:34.800
labels is like um you want to do label

00:38:34.800 --> 00:38:36.240
queries against the resources to find

00:38:36.240 --> 00:38:38.800
them. I know that when it when they were

00:38:38.800 --> 00:38:40.480
asked about like in Kubernetes why do

00:38:40.480 --> 00:38:42.480
you separate labels and annotations and

00:38:42.480 --> 00:38:45.280
the response was one is much more f like

00:38:45.280 --> 00:38:48.079
performs much better to query.

00:38:48.079 --> 00:38:49.599
>> Yeah because you know everything in

00:38:49.599 --> 00:38:52.160
Kubernetes is uses label queries to to

00:38:52.160 --> 00:38:54.079
select resources. Right.

00:38:54.079 --> 00:38:55.280
>> Right.

00:38:55.280 --> 00:38:57.119
>> So you don't you don't have Okay. So

00:38:57.119 --> 00:38:59.440
there's no CDK. Okay. There's there's

00:38:59.440 --> 00:39:00.960
nothing that that will help.

00:39:00.960 --> 00:39:02.560
>> No. Right. Now the the grid is purely

00:39:02.560 --> 00:39:04.800
for Terraform state. The problem with

00:39:04.800 --> 00:39:07.520
CDK is it's cloud form, right? Cloud

00:39:07.520 --> 00:39:08.960
form manages the stacks.

00:39:08.960 --> 00:39:12.160
>> Couldn't you add a source for cloud for

00:39:12.160 --> 00:39:14.960
>> I think I think if you look at spacelift

00:39:14.960 --> 00:39:18.640
or um mass driver, they may they support

00:39:18.640 --> 00:39:20.960
both. I think the way that you describe

00:39:20.960 --> 00:39:25.119
your um your your your your employer's

00:39:25.119 --> 00:39:27.760
um what do you call it infrastructure is

00:39:27.760 --> 00:39:30.880
that you you had you had CDK and then

00:39:30.880 --> 00:39:33.680
you and then and then you oh and then

00:39:33.680 --> 00:39:35.920
you get it and then you and then you

00:39:35.920 --> 00:39:38.320
converted to to Terraform. Oh You

00:39:38.320 --> 00:39:40.000
don't use you don't use ter you don't

00:39:40.000 --> 00:39:42.240
use CDK at all do you? I now

00:39:42.240 --> 00:39:44.480
remember your your setup.

00:39:44.480 --> 00:39:45.520
>> You translate everything.

00:39:45.520 --> 00:39:47.280
>> I worked at different companies.

00:39:47.280 --> 00:39:48.640
>> Okay. Okay. So everything's terraform

00:39:48.640 --> 00:39:51.440
basically.

00:39:51.440 --> 00:39:54.079
>> I'll tell you that my my issue was um

00:39:54.079 --> 00:39:56.160
before we have cloud formation on one

00:39:56.160 --> 00:39:58.320
team and terraform on another team and

00:39:58.320 --> 00:40:00.400
as a platform team for example we like

00:40:00.400 --> 00:40:01.680
to create our landing zone using

00:40:01.680 --> 00:40:03.760
terraform. So we have our networks or

00:40:03.760 --> 00:40:05.680
clusters that maybe we have a shared

00:40:05.680 --> 00:40:07.359
Kubernetes cluster that both teams need

00:40:07.359 --> 00:40:09.520
to land into. That's your landing zone.

00:40:09.520 --> 00:40:11.599
So what we need to be able to do is

00:40:11.599 --> 00:40:13.520
expose those integration points, right?

00:40:13.520 --> 00:40:15.520
So team B needs to be able to read

00:40:15.520 --> 00:40:18.400
where's my cluster ID and how do I or

00:40:18.400 --> 00:40:21.040
how do I hook up my product repository

00:40:21.040 --> 00:40:22.880
so that the Argo CD deployments going

00:40:22.880 --> 00:40:24.000
into the right cluster.

00:40:24.000 --> 00:40:25.839
>> So you do that so sorry if I I didn't

00:40:25.839 --> 00:40:27.040
quite catch the beginning. So you do

00:40:27.040 --> 00:40:29.119
that in terraform the the landing zone.

00:40:29.119 --> 00:40:31.280
So what I'm I I'm just giving you a

00:40:31.280 --> 00:40:33.200
context of like different teams use

00:40:33.200 --> 00:40:35.760
using different technologies and the

00:40:35.760 --> 00:40:38.000
problem I had was I tried to create an

00:40:38.000 --> 00:40:39.760
integration registry and we talked about

00:40:39.760 --> 00:40:41.520
this because he says at um at your

00:40:41.520 --> 00:40:43.839
organization they use a massive JSON

00:40:43.839 --> 00:40:46.240
file that keeps track of the integration

00:40:46.240 --> 00:40:50.079
points between different um components.

00:40:50.079 --> 00:40:52.560
So everything registers just writes

00:40:52.560 --> 00:40:54.560
information out to a JSON file. And I

00:40:54.560 --> 00:40:57.359
did similar things like I had AWS CDK

00:40:57.359 --> 00:40:59.520
write to SSM parameter store and I had

00:40:59.520 --> 00:41:01.680
Terafform read from SSM parameter store

00:41:01.680 --> 00:41:03.359
and I had terapform right to SSM

00:41:03.359 --> 00:41:05.359
parameter store and AWS CDK reading from

00:41:05.359 --> 00:41:06.000
parameter store.

00:41:06.000 --> 00:41:08.319
>> Yeah. I prefer the central as I mean

00:41:08.319 --> 00:41:11.040
this this in reality has lots of other

00:41:11.040 --> 00:41:12.800
fields. Yeah.

00:41:12.800 --> 00:41:14.960
>> Yeah. So so the problem with with using

00:41:14.960 --> 00:41:18.640
a JSON file you're restricted to a um

00:41:18.640 --> 00:41:20.800
usually a a git repository, right?

00:41:20.800 --> 00:41:23.680
either you go to a massive monor repo or

00:41:23.680 --> 00:41:25.680
uh you do a subm module across all of

00:41:25.680 --> 00:41:27.040
the repository so that they have that

00:41:27.040 --> 00:41:29.119
JSON file or I don't know how you're

00:41:29.119 --> 00:41:30.400
going to get the file in there and

00:41:30.400 --> 00:41:32.480
version control it

00:41:32.480 --> 00:41:34.960
>> I I kind of re I shouldn't say this on

00:41:34.960 --> 00:41:36.720
online but I kind of rewrote something

00:41:36.720 --> 00:41:40.319
that we used at work I I mean I didn't

00:41:40.319 --> 00:41:42.400
uh steal the code I absolutely wrote it

00:41:42.400 --> 00:41:44.800
from scratch using

00:41:44.800 --> 00:41:48.400
uh using um

00:41:48.400 --> 00:41:51.200
I guess a bit of claude magic So, so

00:41:51.200 --> 00:41:53.119
essentially what happens is that we have

00:41:53.119 --> 00:41:55.760
an act a reusable action which which

00:41:55.760 --> 00:41:57.599
just feeds in the account group or the

00:41:57.599 --> 00:41:59.200
the team name

00:41:59.200 --> 00:42:02.800
>> and the environment and then out pops

00:42:02.800 --> 00:42:04.960
uh

00:42:04.960 --> 00:42:08.000
uh things like oh sorry this is me using

00:42:08.000 --> 00:42:11.359
the action um

00:42:11.359 --> 00:42:13.280
sorry the other repo actually had the

00:42:13.280 --> 00:42:18.000
implementation

00:42:18.000 --> 00:42:19.839
there's there's an action that basically

00:42:19.839 --> 00:42:23.280
just out uh looks up the style the stuff

00:42:23.280 --> 00:42:26.319
in the actions JSON.

00:42:26.319 --> 00:42:29.040
It's it's nice and fast. It doesn't do

00:42:29.040 --> 00:42:31.359
like a full checkout or something weird.

00:42:31.359 --> 00:42:34.720
And uh and then just sets the extra

00:42:34.720 --> 00:42:37.680
information that that that the um that

00:42:37.680 --> 00:42:39.359
the Terraform or whatever your

00:42:39.359 --> 00:42:41.760
infrastructure needs like the account,

00:42:41.760 --> 00:42:44.319
the region, a key for this, a key for

00:42:44.319 --> 00:42:45.119
that.

00:42:45.119 --> 00:42:50.000
>> Yeah. The problem there is like you're

00:42:50.000 --> 00:42:53.440
you're using a registry and then you

00:42:53.440 --> 00:42:56.079
don't know like how stale is that value

00:42:56.079 --> 00:42:58.319
and who is consuming the value. That was

00:42:58.319 --> 00:42:59.599
my problem. Um [snorts]

00:42:59.599 --> 00:43:01.119
>> well I mean if it's centralized the

00:43:01.119 --> 00:43:04.400
source of truth is pretty sweet. I mean

00:43:04.400 --> 00:43:06.960
>> sure but if it changes how do you

00:43:06.960 --> 00:43:08.800
trickle down that change or identify who

00:43:08.800 --> 00:43:10.960
needs to be updated? Yeah, this is this

00:43:10.960 --> 00:43:12.319
is why I'm going back to this all the

00:43:12.319 --> 00:43:15.359
time because I need to know

00:43:15.359 --> 00:43:19.440
>> what [snorts] how fresh they are here.

00:43:19.440 --> 00:43:21.839
>> Yeah, never mind what's where. I need to

00:43:21.839 --> 00:43:25.839
know what version they're running.

00:43:25.839 --> 00:43:26.319
>> Um

00:43:26.319 --> 00:43:28.640
>> or what version they have viewed or

00:43:28.640 --> 00:43:29.920
consumed.

00:43:29.920 --> 00:43:34.240
>> Yeah. Like we we in our repos we tag the

00:43:34.240 --> 00:43:37.440
this for example and then we kind of

00:43:37.440 --> 00:43:39.520
allow them to

00:43:39.520 --> 00:43:41.680
tag their deployments or what do you

00:43:41.680 --> 00:43:43.040
call it you know use a branch or

00:43:43.040 --> 00:43:46.240
whatever to to pin sorry pin was the

00:43:46.240 --> 00:43:48.160
word I was looking for but then yeah

00:43:48.160 --> 00:43:50.480
they've pinned you know version one here

00:43:50.480 --> 00:43:52.800
and like now we're on version five like

00:43:52.800 --> 00:43:53.280
how do

00:43:53.280 --> 00:43:55.760
>> exactly so so this is also something I

00:43:55.760 --> 00:43:58.000
learned about um this version pinning

00:43:58.000 --> 00:44:00.640
scenario is that if you start to deal

00:44:00.640 --> 00:44:02.800
with these type of deeply nested

00:44:02.800 --> 00:44:04.880
structures where you have 40 different

00:44:04.880 --> 00:44:05.520
states.

00:44:05.520 --> 00:44:07.119
>> Just hold that thought. I got to reply

00:44:07.119 --> 00:44:12.880
to my wife.

00:44:12.880 --> 00:44:15.920
So the kids need need to go to school. I

00:44:15.920 --> 00:44:18.560
think my wife will take them. So yeah.

00:44:18.560 --> 00:44:21.440
Yeah. Hold the thought resume.

00:44:21.440 --> 00:44:23.200
>> Yeah. So what we were saying is that

00:44:23.200 --> 00:44:25.599
version pinning is important,

00:44:25.599 --> 00:44:28.640
>> right? and and when you start I started

00:44:28.640 --> 00:44:31.119
my career around DevOps with Kubernetes.

00:44:31.119 --> 00:44:33.200
So I learned very early that immutable

00:44:33.200 --> 00:44:35.119
infrastructure your docker image needs

00:44:35.119 --> 00:44:37.440
to be hard you know hard pinned so that

00:44:37.440 --> 00:44:39.040
you can do rolling updates because

00:44:39.040 --> 00:44:40.640
Kubernetes doesn't allow you to use a

00:44:40.640 --> 00:44:43.359
mutable um label. So version pinning is

00:44:43.359 --> 00:44:45.359
very important. You want to pin your

00:44:45.359 --> 00:44:47.200
docker image. Kubernetes doesn't allow

00:44:47.200 --> 00:44:50.480
like uh at latest or whatever the docker

00:44:50.480 --> 00:44:53.040
>> condition or officially the way that

00:44:53.040 --> 00:44:56.000
Kubernetes is designed is to use

00:44:56.000 --> 00:44:58.640
immutable tags and then the way that it

00:44:58.640 --> 00:45:00.800
detects that that um a deployment needs

00:45:00.800 --> 00:45:02.960
to be rolled is when you change

00:45:02.960 --> 00:45:05.200
something right you change the tag and

00:45:05.200 --> 00:45:06.720
so it spins up a separate replica

00:45:06.720 --> 00:45:07.760
controller starts

00:45:07.760 --> 00:45:10.400
>> I didn't realize it enforced it yeah I

00:45:10.400 --> 00:45:12.800
know best practice is to use a is to use

00:45:12.800 --> 00:45:14.319
>> yeah and there's a lot of workarounds

00:45:14.319 --> 00:45:18.000
like keep or ke sorry to basically um

00:45:18.000 --> 00:45:21.040
track um you know a docker hub image

00:45:21.040 --> 00:45:24.240
repository and identify if a new um

00:45:24.240 --> 00:45:25.920
metadata if a new checksum has been

00:45:25.920 --> 00:45:28.400
pushed for a certain latest tag and then

00:45:28.400 --> 00:45:30.240
automatically trigger a rolling update

00:45:30.240 --> 00:45:31.839
but then you have to work around it by

00:45:31.839 --> 00:45:34.480
by changing the labels and then it will

00:45:34.480 --> 00:45:36.880
start rolling out pods with new labels

00:45:36.880 --> 00:45:38.800
those are all workarounds the original

00:45:38.800 --> 00:45:40.960
design of Kubernetes is very simple your

00:45:40.960 --> 00:45:42.960
image tag is what determines the version

00:45:42.960 --> 00:45:45.280
that runs so you cannot use a mutable

00:45:45.280 --> 00:45:47.839
tag. You have to specify which version

00:45:47.839 --> 00:45:49.200
you want to run and if you want to

00:45:49.200 --> 00:45:51.280
update it, you change Kubernetes

00:45:51.280 --> 00:45:53.119
manifests. What what helps you update

00:45:53.119 --> 00:45:55.920
them? Sorry. Like how do you what's the

00:45:55.920 --> 00:45:58.079
workflow for people like do they get

00:45:58.079 --> 00:46:00.400
like a dependabot like oh you need to to

00:46:00.400 --> 00:46:01.280
bump.

00:46:01.280 --> 00:46:02.640
>> Yeah. So we're we're going back to the

00:46:02.640 --> 00:46:04.000
point that the design when you start

00:46:04.000 --> 00:46:06.000
with Kubernetes and Docker and immutable

00:46:06.000 --> 00:46:07.280
infrastructure is that version pinning

00:46:07.280 --> 00:46:09.680
is very important, right? And and as you

00:46:09.680 --> 00:46:11.359
just highlighted also when you get a lot

00:46:11.359 --> 00:46:13.119
of different states and a new version

00:46:13.119 --> 00:46:15.119
has been published but um you have all

00:46:15.119 --> 00:46:18.720
of these um you know very niche um

00:46:18.720 --> 00:46:20.000
little states that haven't been touched

00:46:20.000 --> 00:46:21.280
for a long time and they're still on

00:46:21.280 --> 00:46:23.920
version one right and now you and then

00:46:23.920 --> 00:46:25.760
for example you have a big um

00:46:25.760 --> 00:46:27.599
organizationwide initiative that you

00:46:27.599 --> 00:46:29.119
need to upgrade the provider and then

00:46:29.119 --> 00:46:31.760
you find out that some really deep uh

00:46:31.760 --> 00:46:34.079
nested areas are still using a very old

00:46:34.079 --> 00:46:35.520
version and now they suddenly have to go

00:46:35.520 --> 00:46:37.839
all the way to production and they're

00:46:37.839 --> 00:46:39.200
like

00:46:39.200 --> 00:46:40.560
the answer. I [laughter] need to know

00:46:40.560 --> 00:46:42.000
the answer. How you keep

00:46:42.000 --> 00:46:45.280
>> So, so funny funny enough. Funny enough,

00:46:45.280 --> 00:46:47.440
uh, one of my previous colleagues, he

00:46:47.440 --> 00:46:48.880
just got rid of all of the versioning.

00:46:48.880 --> 00:46:51.440
He trunk based just

00:46:51.440 --> 00:46:53.200
>> Well, this is this is what I like to do

00:46:53.200 --> 00:46:55.119
in a in a sense. Just tell everyone you

00:46:55.119 --> 00:46:56.640
got to use latest.

00:46:56.640 --> 00:46:59.359
>> See you.

00:46:59.359 --> 00:47:02.319
>> Yeah. Latest or at stable or something

00:47:02.319 --> 00:47:03.920
or there's probably some other type,

00:47:03.920 --> 00:47:05.760
>> right? And but if you're in a monor repo

00:47:05.760 --> 00:47:08.079
and and you're you're running off git,

00:47:08.079 --> 00:47:10.960
you just point to head, right? So so

00:47:10.960 --> 00:47:12.960
when you run your IC for example and it

00:47:12.960 --> 00:47:15.440
checks out the repository and it it gets

00:47:15.440 --> 00:47:18.240
head and so it gets all the latest

00:47:18.240 --> 00:47:20.000
version of your modules together with

00:47:20.000 --> 00:47:22.800
head of your um because like imagine

00:47:22.800 --> 00:47:25.440
that you have a infrastructure mono and

00:47:25.440 --> 00:47:26.960
you have a GitHub action or Atlantis

00:47:26.960 --> 00:47:29.440
running to to do your IC terapform plan

00:47:29.440 --> 00:47:31.440
apply. So the first thing it does on

00:47:31.440 --> 00:47:34.319
your branch or of master it will check

00:47:34.319 --> 00:47:36.720
out the repo and it will take head right

00:47:36.720 --> 00:47:38.720
and then instead of version pinning

00:47:38.720 --> 00:47:40.880
every single module which is the

00:47:40.880 --> 00:47:42.880
recommended right way to do instead of

00:47:42.880 --> 00:47:45.359
version pinning any every module you

00:47:45.359 --> 00:47:47.920
point everything relatively within the

00:47:47.920 --> 00:47:51.119
repo to your current like head.

00:47:51.119 --> 00:47:51.599
>> Got it.

00:47:51.599 --> 00:47:53.280
>> Right. Which is trunk based development.

00:47:53.280 --> 00:47:53.760
Right.

00:47:53.760 --> 00:47:55.760
>> Right. And at that point that means

00:47:55.760 --> 00:47:57.520
every single change you make to a module

00:47:57.520 --> 00:47:59.359
automatically gets procreated across

00:47:59.359 --> 00:48:00.560
your whole infrastructure.

00:48:00.560 --> 00:48:02.000
>> Yeah, that means but that means you have

00:48:02.000 --> 00:48:05.359
to deploy in a in a with some rigor some

00:48:05.359 --> 00:48:06.560
schedule, right?

00:48:06.560 --> 00:48:09.839
>> No, you you have to use feature flags

00:48:09.839 --> 00:48:11.599
and you have to release features like

00:48:11.599 --> 00:48:13.440
for example if you're going to so this

00:48:13.440 --> 00:48:15.040
is what we do at my organization right

00:48:15.040 --> 00:48:17.440
now. We we have gotten rid of all the

00:48:17.440 --> 00:48:19.200
modules.

00:48:19.200 --> 00:48:22.400
So trunk based trunkbased infrastructure

00:48:22.400 --> 00:48:24.720
with feature facts.

00:48:24.720 --> 00:48:27.200
>> Absolutely.

00:48:27.200 --> 00:48:30.079
I did a a presentation about that other

00:48:30.079 --> 00:48:30.800
conference.

00:48:30.800 --> 00:48:32.079
>> This is something that Thoughtworks

00:48:32.079 --> 00:48:34.400
preaches for software development, but

00:48:34.400 --> 00:48:36.240
for some reason I never thought about

00:48:36.240 --> 00:48:40.800
this in the context of infrastructure.

00:48:40.800 --> 00:48:44.480
>> Yeah. So it's it's it's the same thing.

00:48:44.480 --> 00:48:46.160
The first thing you have to do is you

00:48:46.160 --> 00:48:47.599
point all of you get rid of all the

00:48:47.599 --> 00:48:50.160
module versions. you point to the

00:48:50.160 --> 00:48:51.920
relative path or you make sure that

00:48:51.920 --> 00:48:53.200
you're always checking out the latest

00:48:53.200 --> 00:48:55.040
version of the modules, right? And then

00:48:55.040 --> 00:48:57.280
when you run your Terraform plan, of

00:48:57.280 --> 00:48:59.040
course, you have to control how those

00:48:59.040 --> 00:49:01.520
features get rolled out, right? So the

00:49:01.520 --> 00:49:03.040
best way to control how features get

00:49:03.040 --> 00:49:04.640
rolled out across your infrastructure is

00:49:04.640 --> 00:49:07.280
by putting in feature flags, right?

00:49:07.280 --> 00:49:08.960
>> So we're adding a new, for example,

00:49:08.960 --> 00:49:10.720
we're adding a new we're doing a

00:49:10.720 --> 00:49:12.480
database migration. I'm changing my

00:49:12.480 --> 00:49:15.119
module to to provision the new database

00:49:15.119 --> 00:49:17.359
as well as keep the old database

00:49:17.359 --> 00:49:18.960
instance running and it's behind a

00:49:18.960 --> 00:49:21.280
feature flag. So when this gets applied

00:49:21.280 --> 00:49:23.040
into dev, it's going to spin up a new

00:49:23.040 --> 00:49:24.800
database. It's still going to have the

00:49:24.800 --> 00:49:26.640
old database there and we're going to

00:49:26.640 --> 00:49:28.640
start pointing our customers um to the

00:49:28.640 --> 00:49:30.319
new one, our client to the new one. If

00:49:30.319 --> 00:49:32.720
we're doing this with a cut over, uh we

00:49:32.720 --> 00:49:33.280
obviously need

00:49:33.280 --> 00:49:34.640
>> How do you do this with Terraform? But

00:49:34.640 --> 00:49:36.354
carry on.

00:49:36.354 --> 00:49:36.720
[clears throat]

00:49:36.720 --> 00:49:38.160
>> It's very simple on your module. You

00:49:38.160 --> 00:49:40.480
just put a variable that that um sets

00:49:40.480 --> 00:49:42.880
migration enabled true and in production

00:49:42.880 --> 00:49:45.040
is disabled and then you have another

00:49:45.040 --> 00:49:46.960
variable that says uh delete the old

00:49:46.960 --> 00:49:50.000
database and then you you you toggle the

00:49:50.000 --> 00:49:52.079
the flags as you are getting confident

00:49:52.079 --> 00:49:53.760
you have the same code running in depth

00:49:53.760 --> 00:49:55.280
you have tested it then you're going

00:49:55.280 --> 00:49:57.200
into staging you've tested the cut over

00:49:57.200 --> 00:49:59.200
everything then you ready go to prod

00:49:59.200 --> 00:50:00.960
you're doing the first flag on the new

00:50:00.960 --> 00:50:03.040
database gets created you re reconfigure

00:50:03.040 --> 00:50:05.440
your clients you turn on the second flag

00:50:05.440 --> 00:50:07.359
the old database gets deleted your cut

00:50:07.359 --> 00:50:09.359
over is done and then you go back to

00:50:09.359 --> 00:50:11.200
your module, you delete folds variables

00:50:11.200 --> 00:50:12.720
and across your real estate everything

00:50:12.720 --> 00:50:14.400
is replanned with the latest version of

00:50:14.400 --> 00:50:17.040
that module and it works because you've

00:50:17.040 --> 00:50:19.280
tested it everywhere, right? Your your

00:50:19.280 --> 00:50:21.440
module is immediately planned everywhere

00:50:21.440 --> 00:50:23.200
and it shouldn't show you any diff when

00:50:23.200 --> 00:50:25.040
you remove them. So, it's feature flag

00:50:25.040 --> 00:50:26.720
development, you know, with u

00:50:26.720 --> 00:50:28.319
>> I've never heard of this in all honesty.

00:50:28.319 --> 00:50:29.680
I thought I've never seen

00:50:29.680 --> 00:50:33.200
>> I do that with Atlantis only. Um um at

00:50:33.200 --> 00:50:35.839
>> does Atlantis have some some sort of

00:50:35.839 --> 00:50:38.480
support for feature flags.

00:50:38.480 --> 00:50:41.040
>> No, but I basically just do an enable

00:50:41.040 --> 00:50:43.200
auto plan and I automatically I have

00:50:43.200 --> 00:50:46.720
Atlantis project detection integrated

00:50:46.720 --> 00:50:49.440
within my repo bootstrapper. So when I

00:50:49.440 --> 00:50:51.119
set up my repository, it automatically

00:50:51.119 --> 00:50:52.800
generates the configuration for every

00:50:52.800 --> 00:50:54.880
single directory for Atlantis to figure

00:50:54.880 --> 00:50:56.960
out whenever this module changes, you

00:50:56.960 --> 00:50:59.040
need to replan all of the states that

00:50:59.040 --> 00:51:01.359
depend on that module. And so whenever

00:51:01.359 --> 00:51:03.040
anyone makes a change to a module, it's

00:51:03.040 --> 00:51:05.440
immediately tested everywhere. Like if

00:51:05.440 --> 00:51:06.720
it's going to have an impact on pro,

00:51:06.720 --> 00:51:08.640
that PR is immediately blocked because

00:51:08.640 --> 00:51:10.400
you haven't put in a feature flag on the

00:51:10.400 --> 00:51:11.839
variable. So you need to set up a

00:51:11.839 --> 00:51:13.440
variable to make sure that it's by

00:51:13.440 --> 00:51:15.119
default acting like originally and then

00:51:15.119 --> 00:51:16.880
you go and update the call sites where

00:51:16.880 --> 00:51:18.800
you want this feature to be deployed and

00:51:18.800 --> 00:51:20.559
then you set now enable it here and then

00:51:20.559 --> 00:51:22.160
you test it in dev. It's okay. Then we

00:51:22.160 --> 00:51:25.040
can go um and and and push this module.

00:51:25.040 --> 00:51:28.240
We can get the PR merged because then we

00:51:28.240 --> 00:51:30.160
do multiple PRs to roll it across our

00:51:30.160 --> 00:51:32.240
environments and that way we don't have

00:51:32.240 --> 00:51:34.800
like some really old state using a

00:51:34.800 --> 00:51:36.319
really old module. We always have

00:51:36.319 --> 00:51:38.000
everything on head.

00:51:38.000 --> 00:51:39.520
>> That's the goal.

00:51:39.520 --> 00:51:40.000
>> Yeah.

00:51:40.000 --> 00:51:43.440
>> Yeah. Yeah, I like that a lot. Wow.

00:51:43.440 --> 00:51:44.079
>> Wow.

00:51:44.079 --> 00:51:45.359
>> And so

00:51:45.359 --> 00:51:47.520
>> the requirement is to have the

00:51:47.520 --> 00:51:49.920
capability to define what is the

00:51:49.920 --> 00:51:52.079
dependency or which modules a state

00:51:52.079 --> 00:51:54.079
depends on. Is it if you don't do that

00:51:54.079 --> 00:51:55.680
right, you're back to your original

00:51:55.680 --> 00:51:57.280
situation where everything is version

00:51:57.280 --> 00:51:59.200
pint and then now you could discover

00:51:59.200 --> 00:52:01.599
that one particular team is still using

00:52:01.599 --> 00:52:04.319
version 1.0 and if you're doing sambar,

00:52:04.319 --> 00:52:06.319
right, you're on version 2.0 means that

00:52:06.319 --> 00:52:09.119
you have a breaking change, right? So

00:52:09.119 --> 00:52:10.319
they have to

00:52:10.319 --> 00:52:12.079
don't I mean or

00:52:12.079 --> 00:52:15.119
>> or uses it as an excuse to break an API

00:52:15.119 --> 00:52:16.319
which is

00:52:16.319 --> 00:52:18.720
>> yeah but I'm I'm so I'm doing that

00:52:18.720 --> 00:52:20.720
turnbased development on my IC with

00:52:20.720 --> 00:52:23.760
feature flex but I am still every single

00:52:23.760 --> 00:52:26.400
time doing sar on my modules because I'm

00:52:26.400 --> 00:52:28.640
snapshotting the module version in case

00:52:28.640 --> 00:52:30.960
anything happens I can always pin it so

00:52:30.960 --> 00:52:32.640
this is something that happens sometimes

00:52:32.640 --> 00:52:35.760
is this module this change is

00:52:35.760 --> 00:52:38.400
significant and it's we can't just put

00:52:38.400 --> 00:52:39.839
it behind a feature flag because that's

00:52:39.839 --> 00:52:42.559
the the the the flip side of feature

00:52:42.559 --> 00:52:44.319
flags, right? You cannot control the

00:52:44.319 --> 00:52:46.000
interaction of the flags if you have so

00:52:46.000 --> 00:52:48.960
many flags on them. So, at some point um

00:52:48.960 --> 00:52:51.200
the risk is that maybe one team is

00:52:51.200 --> 00:52:53.119
adding a variable for their use case and

00:52:53.119 --> 00:52:54.720
other teams another variable and how do

00:52:54.720 --> 00:52:56.079
those interact with each other? You

00:52:56.079 --> 00:52:57.440
don't know how they interact with each

00:52:57.440 --> 00:52:59.200
other. So, it's nice to say like, oh, we

00:52:59.200 --> 00:53:00.640
know all of the possible configurations

00:53:00.640 --> 00:53:02.559
of the feature flags together. We know

00:53:02.559 --> 00:53:04.480
that it's going to work. we don't if we

00:53:04.480 --> 00:53:06.800
don't clean up feature frags and if we

00:53:06.800 --> 00:53:08.880
if we are not careful we we have other

00:53:08.880 --> 00:53:10.720
complexities to deal with. Um

00:53:10.720 --> 00:53:12.319
>> yeah so it's not it's not there's no

00:53:12.319 --> 00:53:14.400
silver bullet of course I think I know

00:53:14.400 --> 00:53:15.760
what you mean there like [laughter]

00:53:15.760 --> 00:53:17.680
clean yeah like then you have you know

00:53:17.680 --> 00:53:18.960
new problem uh

00:53:18.960 --> 00:53:21.920
>> so so every single module change comes

00:53:21.920 --> 00:53:24.559
with a server like change log and an

00:53:24.559 --> 00:53:26.480
actual snapshot of that module pushed

00:53:26.480 --> 00:53:29.280
into an S3 bucket. So if we need for

00:53:29.280 --> 00:53:33.119
whatever reason we can pin a module but

00:53:33.119 --> 00:53:35.920
it's highly discouraged if you do like

00:53:35.920 --> 00:53:39.359
>> if you do go ahead and pin it then I set

00:53:39.359 --> 00:53:42.400
up um a scheduled action that that

00:53:42.400 --> 00:53:45.040
detects any states that have a pinned

00:53:45.040 --> 00:53:47.599
module and then it goes and uh tries to

00:53:47.599 --> 00:53:49.920
unpin it and creates a PR to unpin it

00:53:49.920 --> 00:53:52.079
and then the idea is that we need to get

00:53:52.079 --> 00:53:53.920
those PRs merged as soon as possible to

00:53:53.920 --> 00:53:55.359
basically unpin the modules otherwise

00:53:55.359 --> 00:53:57.200
these particular states will start to

00:53:57.200 --> 00:53:58.720
back behind and become more of a

00:53:58.720 --> 00:54:01.040
headache and lead you down yak shaving

00:54:01.040 --> 00:54:03.599
paths down the line. Right. [snorts] Um,

00:54:03.599 --> 00:54:06.079
>> cool, man. Thanks. Thanks for all that

00:54:06.079 --> 00:54:08.640
wisdom, man.

00:54:08.640 --> 00:54:10.240
>> But that all works if you're in a monor

00:54:10.240 --> 00:54:12.000
repo, right? Um

00:54:12.000 --> 00:54:13.920
>> and and and and then the other

00:54:13.920 --> 00:54:17.200
alternative actually to just this week

00:54:17.200 --> 00:54:19.599
config hub it was announced like last

00:54:19.599 --> 00:54:21.680
week but this week they they did an IT

00:54:21.680 --> 00:54:23.760
next article where they go into details

00:54:23.760 --> 00:54:26.720
about the problem of YAML manifest and

00:54:26.720 --> 00:54:28.800
Argo CD. They're basically highlighting

00:54:28.800 --> 00:54:31.440
how a lot of people are abusing Argo CCD

00:54:31.440 --> 00:54:34.000
uh with Helm to you know in memory on

00:54:34.000 --> 00:54:36.319
the Kubernetes cluster um expand all of

00:54:36.319 --> 00:54:38.480
the YAML manifests and then fire it off

00:54:38.480 --> 00:54:40.000
at the Kubernetes cluster and then they

00:54:40.000 --> 00:54:42.480
have no idea what's happening. Um so

00:54:42.480 --> 00:54:44.400
they are they're introducing the concept

00:54:44.400 --> 00:54:47.359
of um infrastructure as data. No

00:54:47.359 --> 00:54:50.319
configuration as data. C A yeah it's CA

00:54:50.319 --> 00:54:53.280
A and

00:54:53.280 --> 00:54:55.200
I really still don't know exactly how

00:54:55.200 --> 00:54:58.319
their platform but their platform.

00:54:58.319 --> 00:55:04.079
Yes. Uh oh there's another one Napio but

00:55:04.079 --> 00:55:06.720
there's one from

00:55:06.720 --> 00:55:08.960
today. It's definitely it's Brian Grant

00:55:08.960 --> 00:55:11.839
startup. There's a one that was posted

00:55:11.839 --> 00:55:15.040
like like maybe 12 hours ago from config

00:55:15.040 --> 00:55:18.160
hub where they go into the problems and

00:55:18.160 --> 00:55:20.720
the solution of configuration as data.

00:55:20.720 --> 00:55:23.359
Um and in in the problems they are

00:55:23.359 --> 00:55:25.520
highlighting like the ren the renovate

00:55:25.520 --> 00:55:27.760
bot approach. So if you version pin your

00:55:27.760 --> 00:55:29.599
modules or version pin your helm charts

00:55:29.599 --> 00:55:31.359
then you set up something like renovate

00:55:31.359 --> 00:55:33.520
to automatically create pull requests to

00:55:33.520 --> 00:55:35.200
update your things.

00:55:35.200 --> 00:55:37.520
>> Yeah. I mean actually at my workplace

00:55:37.520 --> 00:55:39.599
they've written a beautiful like 100

00:55:39.599 --> 00:55:43.920
line uh Python script and what it does

00:55:43.920 --> 00:55:47.440
it's it's called distribute py and you

00:55:47.440 --> 00:55:49.280
you can have a config to say like you

00:55:49.280 --> 00:55:51.760
want these paths pushed to these repos

00:55:51.760 --> 00:55:54.960
or even I think even it supports like

00:55:54.960 --> 00:55:58.480
hierarchy. So, so basically like if if

00:55:58.480 --> 00:56:00.480
they want to make sure that every team

00:56:00.480 --> 00:56:03.119
in dev has this new config set, they

00:56:03.119 --> 00:56:05.599
push it out or a new file in their in

00:56:05.599 --> 00:56:08.480
their repos, they just push it out

00:56:08.480 --> 00:56:10.720
>> so that everyone has a new workflow that

00:56:10.720 --> 00:56:13.520
they they they can use or the or their

00:56:13.520 --> 00:56:15.200
workflow in their in their repos.

00:56:15.200 --> 00:56:16.880
Actually, this is what this thing is

00:56:16.880 --> 00:56:19.760
missing repositories.

00:56:19.760 --> 00:56:21.760
>> Yeah. All of that mapped across repos.

00:56:21.760 --> 00:56:24.640
But like uh I guess the repro would sit

00:56:24.640 --> 00:56:27.920
here but like yeah it it pushes it out

00:56:27.920 --> 00:56:29.599
and they do this and they said like I

00:56:29.599 --> 00:56:30.960
said like wow I've never seen this

00:56:30.960 --> 00:56:32.480
before. So you didn't want to get the

00:56:32.480 --> 00:56:34.799
pendot like a like a pullbase flow going

00:56:34.799 --> 00:56:36.799
like he says no pullbase will not work

00:56:36.799 --> 00:56:39.280
in our organization. We need a push we

00:56:39.280 --> 00:56:40.880
need to be fast and it needs to be

00:56:40.880 --> 00:56:42.559
updated like immediately

00:56:42.559 --> 00:56:44.480
>> and I was like wow I've never seen that

00:56:44.480 --> 00:56:45.280
before.

00:56:45.280 --> 00:56:47.119
>> When they say push do they do do they go

00:56:47.119 --> 00:56:49.119
and create pull requests in the other on

00:56:49.119 --> 00:56:51.200
the other ones? Direct commit.

00:56:51.200 --> 00:56:54.559
>> Direct commit. Yeah, they have like a

00:56:54.559 --> 00:56:56.720
bot and it just like just overwrites

00:56:56.720 --> 00:56:58.480
whatever they have.

00:56:58.480 --> 00:57:00.160
>> So, this is my biggest issue with all of

00:57:00.160 --> 00:57:01.520
these like cookie cutter and

00:57:01.520 --> 00:57:03.680
bootstrappers. Most of them they do a

00:57:03.680 --> 00:57:05.200
onetime bootstrap and they never

00:57:05.200 --> 00:57:08.079
consider the the day to

00:57:08.079 --> 00:57:10.000
I created an issue about this in GitHub.

00:57:10.000 --> 00:57:11.280
Um, let me see if I can

00:57:11.280 --> 00:57:13.119
>> Oh, forget about GitHub template repos.

00:57:13.119 --> 00:57:15.040
I hate them. Every time I see somebody

00:57:15.040 --> 00:57:17.119
use them, I I just immediately want to

00:57:17.119 --> 00:57:20.559
shut that down. It's like don't don't

00:57:20.559 --> 00:57:22.799
>> um yeah like here's my question here. Hi

00:57:22.799 --> 00:57:24.480
there. How do you should a repository be

00:57:24.480 --> 00:57:26.799
generated from a template keep up to

00:57:26.799 --> 00:57:29.520
date with an evolving template?

00:57:29.520 --> 00:57:30.720
>> Yeah,

00:57:30.720 --> 00:57:32.480
>> it says GitHub templates are designed

00:57:32.480 --> 00:57:36.319
for onetime scaffolding.

00:57:36.319 --> 00:57:37.839
Yeah. So

00:57:37.839 --> 00:57:39.440
>> I created a worm in my previous

00:57:39.440 --> 00:57:41.680
organization.

00:57:41.680 --> 00:57:45.119
>> So what do you mean to update stuff?

00:57:45.119 --> 00:57:47.599
>> Yeah. So whenever I created a PR on my

00:57:47.599 --> 00:57:49.680
on my template repo, it would

00:57:49.680 --> 00:57:52.079
automatically create commits in my other

00:57:52.079 --> 00:57:54.720
repositories to pull it in to the to

00:57:54.720 --> 00:57:57.680
pull in the diff from that PR. Uh except

00:57:57.680 --> 00:57:59.920
that it would copy to itself and then

00:57:59.920 --> 00:58:01.359
trigger itself. And I had to like

00:58:01.359 --> 00:58:03.920
explicitly allow uh GitHub action

00:58:03.920 --> 00:58:06.319
workflows to trigger themsel. And then I

00:58:06.319 --> 00:58:09.119
I I created like 70 plus emails per

00:58:09.119 --> 00:58:11.760
minute across the whole email system.

00:58:11.760 --> 00:58:14.319
And then my C after like half a day my

00:58:14.319 --> 00:58:17.040
my CTO sent me a message like what's

00:58:17.040 --> 00:58:17.760
happening? [laughter]

00:58:17.760 --> 00:58:19.200
>> What what do you mean you're sending

00:58:19.200 --> 00:58:21.040
emails to different people?

00:58:21.040 --> 00:58:22.319
>> Yeah.

00:58:22.319 --> 00:58:24.000
>> No, because GitHub action run started

00:58:24.000 --> 00:58:26.319
like failing and sending emails like the

00:58:26.319 --> 00:58:28.640
the run failed and so I was literally

00:58:28.640 --> 00:58:31.040
spend three hours killing killing action

00:58:31.040 --> 00:58:31.920
runs.

00:58:31.920 --> 00:58:33.119
>> Uh [laughter]

00:58:33.119 --> 00:58:35.599
it was a lot of fun. So I I had this

00:58:35.599 --> 00:58:37.599
idea as well like originally with with

00:58:37.599 --> 00:58:39.760
template repos maybe like five years ago

00:58:39.760 --> 00:58:42.640
to to automate this push down to all of

00:58:42.640 --> 00:58:43.599
the repos that all.

00:58:43.599 --> 00:58:46.000
>> So I I I mean in all in all honesty at

00:58:46.000 --> 00:58:47.520
this particular client I think the push

00:58:47.520 --> 00:58:50.000
mechanism works quite well because you

00:58:50.000 --> 00:58:51.440
know the relationship they have with the

00:58:51.440 --> 00:58:52.960
teams like

00:58:52.960 --> 00:58:54.640
>> you know like these are data teams they

00:58:54.640 --> 00:58:56.000
don't know what they're doing. They need

00:58:56.000 --> 00:58:58.319
this thing up to date now.

00:58:58.319 --> 00:59:00.640
>> And then the other thing is the moment I

00:59:00.640 --> 00:59:03.040
started using progen projen.io IO which

00:59:03.040 --> 00:59:06.160
is popular within the AWS CDK ecosystem.

00:59:06.160 --> 00:59:08.640
Um, Proen.io

00:59:08.640 --> 00:59:11.359
uh is kind of like the Pandaot. When you

00:59:11.359 --> 00:59:13.440
bootstrap a repository with with this

00:59:13.440 --> 00:59:16.480
tool, it sets up an update uh scheduled

00:59:16.480 --> 00:59:18.559
update uh system. So you can define like

00:59:18.559 --> 00:59:20.720
once a week, daily, and you can also set

00:59:20.720 --> 00:59:23.119
up automerge and all that. and and and

00:59:23.119 --> 00:59:26.400
so what it does is it it runs the it it

00:59:26.400 --> 00:59:27.760
downloads the latest version of the

00:59:27.760 --> 00:59:30.720
template and it runs it and it basically

00:59:30.720 --> 00:59:33.200
mod like selfmutates and and keeps the

00:59:33.200 --> 00:59:35.680
repo up to date and then automerges. So

00:59:35.680 --> 00:59:37.040
it's pool based but it happens

00:59:37.040 --> 00:59:37.680
automatically

00:59:37.680 --> 00:59:40.319
>> but like but

00:59:40.319 --> 00:59:42.079
I I'm not too sure how we got here. We

00:59:42.079 --> 00:59:44.319
were talking about uh configuration

00:59:44.319 --> 00:59:45.359
>> unpinning and pushing.

00:59:45.359 --> 00:59:47.200
>> I'm actually not sure dependabot is a

00:59:47.200 --> 00:59:51.680
very scalable solution. Um well it

00:59:51.680 --> 00:59:53.440
>> uh so one thing I don't like about

00:59:53.440 --> 00:59:54.880
dependabot is that it creates so many

00:59:54.880 --> 00:59:56.559
PRs and and that's why I usually

00:59:56.559 --> 00:59:59.200
disabled it but you can actually set up

00:59:59.200 --> 01:00:00.480
grouping.

01:00:00.480 --> 01:00:02.960
>> Yeah I know there was one repository

01:00:02.960 --> 01:00:06.160
where I think I set up auto like

01:00:06.160 --> 01:00:10.720
>> auto actually how did I do that again?

01:00:10.720 --> 01:00:11.280
Uh oh,

01:00:11.280 --> 01:00:14.160
>> you have to create a a GitHub token for

01:00:14.160 --> 01:00:17.359
an automerge uh bot to to

01:00:17.359 --> 01:00:19.040
>> I'm not too sure how I can find my own

01:00:19.040 --> 01:00:20.799
automerge. What What should I search

01:00:20.799 --> 01:00:22.720
for? H PR

01:00:22.720 --> 01:00:25.200
>> I use dependabots with um release please

01:00:25.200 --> 01:00:28.240
and automerge on my Golang CLI for

01:00:28.240 --> 01:00:30.640
Terraform. It's a public repo. You want

01:00:30.640 --> 01:00:31.760
to see it?

01:00:31.760 --> 01:00:34.160
>> Um okay. If you Well, I mean I've done

01:00:34.160 --> 01:00:35.839
it before. I just can't remember where I

01:00:35.839 --> 01:00:36.799
done it.

01:00:36.799 --> 01:00:37.119
>> Yeah.

01:00:37.119 --> 01:00:41.839
>> Okay. The problem um with dependabot is

01:00:41.839 --> 01:00:43.839
originally my biggest issue was all of

01:00:43.839 --> 01:00:45.760
the different PRs but you can set up

01:00:45.760 --> 01:00:47.200
grouping rules. You can say like for

01:00:47.200 --> 01:00:48.640
this buckets manager you group all the

01:00:48.640 --> 01:00:51.359
PRs um instead of creating like five PRs

01:00:51.359 --> 01:00:53.359
you create one for go dependencies for

01:00:53.359 --> 01:00:56.240
example and and then you set up the

01:00:56.240 --> 01:00:58.000
>> the question remains like you can't

01:00:58.000 --> 01:01:00.160
expect all these different teams to

01:01:00.160 --> 01:01:03.040
basically

01:01:03.040 --> 01:01:06.400
>> merge the PRs and that's where things

01:01:06.400 --> 01:01:08.160
really That's why I don't think that

01:01:08.160 --> 01:01:09.520
what you mentioned earlier about the

01:01:09.520 --> 01:01:11.280
push flow is automatically committing to

01:01:11.280 --> 01:01:13.200
master. I think what it's doing is it's

01:01:13.200 --> 01:01:15.359
creating a branch. It's creating a PR.

01:01:15.359 --> 01:01:18.000
It's it ts it with a label and then it

01:01:18.000 --> 01:01:19.920
said it's pushing it straight to main.

01:01:19.920 --> 01:01:22.480
They usually updating workflows. They

01:01:22.480 --> 01:01:24.079
only usually do it for updating

01:01:24.079 --> 01:01:25.280
workflows.

01:01:25.280 --> 01:01:27.280
>> I think it's either it's pull or push.

01:01:27.280 --> 01:01:29.839
It doesn't really matter much. Um, but I

01:01:29.839 --> 01:01:32.160
have the same flow which it just creates

01:01:32.160 --> 01:01:34.720
u a PR that the PR is labeled as

01:01:34.720 --> 01:01:36.559
automerge and then you have an automerge

01:01:36.559 --> 01:01:38.720
bot that will auto approve actually

01:01:38.720 --> 01:01:41.280
sorry the PR is labeled as auto approve

01:01:41.280 --> 01:01:43.119
and then that bot will auto approve

01:01:43.119 --> 01:01:46.240
those PRs and then it will enable the

01:01:46.240 --> 01:01:48.640
automerge as soon as the checks pass. So

01:01:48.640 --> 01:01:50.480
I will never merge or commit straight to

01:01:50.480 --> 01:01:50.960
master.

01:01:50.960 --> 01:01:52.880
>> That's quite a complex setup but I guess

01:01:52.880 --> 01:01:53.520
it's

01:01:53.520 --> 01:01:55.599
>> I mean let me share my screen and I'll

01:01:55.599 --> 01:01:58.160
show you the repository. It is a public

01:01:58.160 --> 01:02:00.559
report.

01:02:00.559 --> 01:02:03.760
Uh

01:02:03.760 --> 01:02:05.599
oh, not what I

01:02:05.599 --> 01:02:07.359
>> is requesting you to allow multiple

01:02:07.359 --> 01:02:10.960
presenters to share. Okay, whatever.

01:02:10.960 --> 01:02:13.359
>> Okay, I'm sharing.

01:02:13.359 --> 01:02:16.079
Which one am I sharing? This one. I

01:02:16.079 --> 01:02:16.480
guess

01:02:16.480 --> 01:02:18.480
>> I think we got to wind up in a couple of

01:02:18.480 --> 01:02:20.160
minutes just because I've got I got so

01:02:20.160 --> 01:02:22.160
much work today. Oh my god.

01:02:22.160 --> 01:02:23.680
>> And we never talked about we never

01:02:23.680 --> 01:02:25.988
talked about AI. Oh god.

01:02:25.988 --> 01:02:26.000
>> [snorts]

01:02:26.000 --> 01:02:29.680
>> So here I have this Golang binary. It's

01:02:29.680 --> 01:02:30.400
a fork from

01:02:30.400 --> 01:02:31.839
>> Are you sharing? I can't see it.

01:02:31.839 --> 01:02:34.240
>> Oh, sorry. You can see it now.

01:02:34.240 --> 01:02:35.440
>> Yeah, I can see it now.

01:02:35.440 --> 01:02:37.680
>> Maybe let me drag it out of all these

01:02:37.680 --> 01:02:40.000
tabs so it's a bit less confusing. So um

01:02:40.000 --> 01:02:43.119
I forked this from the Chan Zuckerberg

01:02:43.119 --> 01:02:46.319
Foundation, the wife of um some Facebook

01:02:46.319 --> 01:02:47.280
dude. I don't know.

01:02:47.280 --> 01:02:48.079
>> Yeah, I don't know.

01:02:48.079 --> 01:02:51.040
>> And they create they have a um

01:02:51.040 --> 01:02:54.079
>> Oh, do do quick sign up. Do you know um

01:02:54.079 --> 01:02:57.040
Swix? Uh what's his real name? He's

01:02:57.040 --> 01:02:59.440
Singaporean guy.

01:02:59.440 --> 01:03:01.680
>> No, I mean you met him.

01:03:01.680 --> 01:03:03.839
>> Um I forgot his real name. I just call

01:03:03.839 --> 01:03:06.799
him by his uh his handle. He did an

01:03:06.799 --> 01:03:08.799
interview with Mark Zuckerberg like last

01:03:08.799 --> 01:03:09.599
week.

01:03:09.599 --> 01:03:10.559
>> Oh, nice.

01:03:10.559 --> 01:03:14.480
>> Um so you know, one one connection away.

01:03:14.480 --> 01:03:16.400
Okay. Yeah. Carry on.

01:03:16.400 --> 01:03:20.319
So, so this is a nonprofit that uses

01:03:20.319 --> 01:03:22.240
Terraform to bootstrap some of the

01:03:22.240 --> 01:03:24.720
services that they use and they have a

01:03:24.720 --> 01:03:27.920
very uh they have a lot of tooling there

01:03:27.920 --> 01:03:30.960
uh some of Golang like tooling and this

01:03:30.960 --> 01:03:32.640
one is a very opinionated Terraform

01:03:32.640 --> 01:03:34.960
bootstrapper. Um, the reason I like it

01:03:34.960 --> 01:03:36.880
is because after using Terra Grant,

01:03:36.880 --> 01:03:39.680
having all of your different Terraform

01:03:39.680 --> 01:03:41.440
state configurations spread across the

01:03:41.440 --> 01:03:43.039
repo, it was very hard to keep track of

01:03:43.039 --> 01:03:46.160
like exactly how things were organized.

01:03:46.160 --> 01:03:48.720
And so this uses a central manifest, a

01:03:48.720 --> 01:03:50.880
central YAML file that basically defines

01:03:50.880 --> 01:03:53.200
the layout of the repository. Um the

01:03:53.200 --> 01:03:55.200
idea is that this gets used across

01:03:55.200 --> 01:03:57.520
product repos so that every every team

01:03:57.520 --> 01:03:59.280
is basically bootstrapping terraform the

01:03:59.280 --> 01:04:01.440
same way and then you can update the

01:04:01.440 --> 01:04:02.799
templates and then every team updates

01:04:02.799 --> 01:04:04.559
their fog version and then it updates

01:04:04.559 --> 01:04:07.280
the repository across right. Um I'm

01:04:07.280 --> 01:04:08.960
using it in a monor repo way which is

01:04:08.960 --> 01:04:11.200
not really the intended design. So I

01:04:11.200 --> 01:04:13.119
added features to like distribute the

01:04:13.119 --> 01:04:15.680
config file. So I ended up with kind of

01:04:15.680 --> 01:04:18.240
like an in between. Um but yeah, I I

01:04:18.240 --> 01:04:20.400
basically forked it and I've been adding

01:04:20.400 --> 01:04:21.760
a lot of features. But what we're

01:04:21.760 --> 01:04:23.200
talking about is how do the releases

01:04:23.200 --> 01:04:26.000
happen here, right? So in this case, I

01:04:26.000 --> 01:04:27.839
also have this uh dependabot

01:04:27.839 --> 01:04:30.880
configuration to automatically update my

01:04:30.880 --> 01:04:33.760
go dependencies and it doesn't directly

01:04:33.760 --> 01:04:35.440
merge I mean it doesn't commit to

01:04:35.440 --> 01:04:38.079
master, right? It creates a different PR

01:04:38.079 --> 01:04:39.520
and it does a terapform group as you

01:04:39.520 --> 01:04:41.119
see, right? It groups all of the

01:04:41.119 --> 01:04:42.400
dependencies that are related to

01:04:42.400 --> 01:04:45.520
Terraform uh modules and groups them all

01:04:45.520 --> 01:04:47.680
into one place. So it picks up like um

01:04:47.680 --> 01:04:49.599
we're getting the latest go-getter uh

01:04:49.599 --> 01:04:51.039
and if there's another module that is

01:04:51.039 --> 01:04:52.400
related to the terapform group, it will

01:04:52.400 --> 01:04:54.799
be part of this PR and then what happens

01:04:54.799 --> 01:04:57.280
is it automatically lets adds the bot

01:04:57.280 --> 01:05:00.319
merge label and that gets auto approved

01:05:00.319 --> 01:05:02.319
but it's using my pat so it's showing me

01:05:02.319 --> 01:05:04.400
as the approver so it's using my GitHub

01:05:04.400 --> 01:05:06.960
token to approve this and as soon as all

01:05:06.960 --> 01:05:09.520
of the the the CI/CD passes on the pull

01:05:09.520 --> 01:05:11.839
request only then does it merge right

01:05:11.839 --> 01:05:14.079
it's it enables automerge and when

01:05:14.079 --> 01:05:16.160
everything like see it enables automerge

01:05:16.160 --> 01:05:18.400
And when all is good and all the tests

01:05:18.400 --> 01:05:20.559
pass, then it gets merged. So you get a

01:05:20.559 --> 01:05:22.160
very controlled way of of deploying.

01:05:22.160 --> 01:05:23.839
>> Your profile looks like the opposite of

01:05:23.839 --> 01:05:25.839
my profile in GitHub. That's weird. Like

01:05:25.839 --> 01:05:27.680
I'm looking one direction, you're

01:05:27.680 --> 01:05:29.200
looking the other direction.

01:05:29.200 --> 01:05:31.760
>> This is Scarface, right?

01:05:31.760 --> 01:05:32.640
>> Oh, that's not you.

01:05:32.640 --> 01:05:36.240
>> Not me. [laughter]

01:05:36.240 --> 01:05:39.680
>> Yeah. Um, so so that I like this. I like

01:05:39.680 --> 01:05:41.599
this a lot. And what happens is all of

01:05:41.599 --> 01:05:43.839
these u dependency updates get merged

01:05:43.839 --> 01:05:46.799
onto master and then Google release

01:05:46.799 --> 01:05:49.119
please keeps track of them and basically

01:05:49.119 --> 01:05:51.280
tells me the next release that's going

01:05:51.280 --> 01:05:52.559
to happen is going to include all of

01:05:52.559 --> 01:05:53.119
these bumps.

01:05:53.119 --> 01:05:54.960
>> But have have you used this in anger? I

01:05:54.960 --> 01:05:56.880
mean have you used this with several

01:05:56.880 --> 01:05:59.039
teams? I'm just wondering if this is

01:05:59.039 --> 01:05:59.520
going to work.

01:05:59.520 --> 01:06:02.319
>> So we use this CLI across our Terraform

01:06:02.319 --> 01:06:04.480
repos but they're large. So we have like

01:06:04.480 --> 01:06:07.599
two or three of them and basically fog

01:06:07.599 --> 01:06:10.480
is dictating the the the layout of the

01:06:10.480 --> 01:06:12.240
terraform repo and integrating with

01:06:12.240 --> 01:06:14.079
Atlantis and also now integrating with

01:06:14.079 --> 01:06:15.839
Terra constructs. So it's bootstrapping

01:06:15.839 --> 01:06:17.440
TypeScript projects, it's setting up the

01:06:17.440 --> 01:06:19.680
TS config, it's setting up ES linting

01:06:19.680 --> 01:06:21.839
rules, everything. So so all of those

01:06:21.839 --> 01:06:24.960
templates are inside fog and I I still I

01:06:24.960 --> 01:06:26.960
don't recommend it because uh we're

01:06:26.960 --> 01:06:29.039
using it and it's working for us but

01:06:29.039 --> 01:06:30.640
some people might not really like some

01:06:30.640 --> 01:06:32.640
of the things it does, right? Um but

01:06:32.640 --> 01:06:34.799
yeah it does the full repo remote and it

01:06:34.799 --> 01:06:37.119
controls some part of what the grid will

01:06:37.119 --> 01:06:38.799
do. It controls how these components

01:06:38.799 --> 01:06:40.319
link to each other. So it determines

01:06:40.319 --> 01:06:41.839
what is the remote state for that

01:06:41.839 --> 01:06:43.440
component. So if you have a landing zone

01:06:43.440 --> 01:06:44.640
component and you have a cluster

01:06:44.640 --> 01:06:46.720
component and the cluster needs to to

01:06:46.720 --> 01:06:48.319
understand where is the network created

01:06:48.319 --> 01:06:50.160
by the landing zone then it will read

01:06:50.160 --> 01:06:52.000
those outputs from each other. So that's

01:06:52.000 --> 01:06:54.079
through the remote state right so so

01:06:54.079 --> 01:06:55.839
it's a very opinionated way again

01:06:55.839 --> 01:06:58.720
originally from from Chan Zuckerberg but

01:06:58.720 --> 01:07:00.000
I added a lot of features on top of

01:07:00.000 --> 01:07:00.079
that.

01:07:00.079 --> 01:07:00.960
>> That's interesting. That's really

01:07:00.960 --> 01:07:03.039
interesting. Nonetheless, I think I

01:07:03.039 --> 01:07:06.960
think in in my current gig, the

01:07:06.960 --> 01:07:08.640
the different teams are not really

01:07:08.640 --> 01:07:10.240
owning the infrastructure. So, I don't

01:07:10.240 --> 01:07:13.359
need them to do a lot of complexity. I

01:07:13.359 --> 01:07:16.400
just need them to do the data type

01:07:16.400 --> 01:07:18.400
stuff. And I think I can control that

01:07:18.400 --> 01:07:21.359
better not using this. But I don't know.

01:07:21.359 --> 01:07:23.760
This is really interesting. But, okay, I

01:07:23.760 --> 01:07:25.440
got to wind up here because I got to I

01:07:25.440 --> 01:07:27.599
got to go go straight into into work

01:07:27.599 --> 01:07:29.200
mode.

01:07:29.200 --> 01:07:31.760
>> Okay. Great talking with you. Um,

01:07:31.760 --> 01:07:33.119
unfortunately we didn't talk anything

01:07:33.119 --> 01:07:34.960
about AI.

01:07:34.960 --> 01:07:36.880
I don't know, maybe maybe another

01:07:36.880 --> 01:07:38.880
morning we can I can do the same thing.

01:07:38.880 --> 01:07:39.760
Just let me know.

01:07:39.760 --> 01:07:42.640
Actually, I I I found out remember

01:07:42.640 --> 01:07:44.240
yesterday we talked and I said that

01:07:44.240 --> 01:07:46.000
there's um I was doing like a quick

01:07:46.000 --> 01:07:47.680
dashboard because I'm using beats to

01:07:47.680 --> 01:07:49.440
track issues for the LLM.

01:07:49.440 --> 01:07:50.880
>> Yeah, you showed me. That was great.

01:07:50.880 --> 01:07:51.520
Yeah.

01:07:51.520 --> 01:07:53.599
>> But there are actually like six or seven

01:07:53.599 --> 01:07:55.599
people doing the same thing.

01:07:55.599 --> 01:07:57.920
>> That's the beauty of AI, isn't it? It's

01:07:57.920 --> 01:07:58.400
so beautiful.

01:07:58.400 --> 01:08:01.039
>> Yeah. So, so I found some u kind of

01:08:01.039 --> 01:08:02.960
working dashboard and it's pretty neat.

01:08:02.960 --> 01:08:05.200
It gives you like a full overview of

01:08:05.200 --> 01:08:06.559
your large features and your

01:08:06.559 --> 01:08:08.720
>> epics. Let's pick up on that next. Don't

01:08:08.720 --> 01:08:10.319
no more talking about infrastructure

01:08:10.319 --> 01:08:13.359
full AI next talk. Okay.

01:08:13.359 --> 01:08:15.200
>> And uh I'm happy to wake up in the

01:08:15.200 --> 01:08:16.799
morning. Just let me know what day suits

01:08:16.799 --> 01:08:17.600
you.

01:08:17.600 --> 01:08:19.279
>> Yeah, sounds good.

01:08:19.279 --> 01:08:20.799
>> Could be could even be tomorrow. I don't

01:08:20.799 --> 01:08:22.080
I don't mind. See you.

01:08:22.080 --> 01:08:25.520
>> Sounds good. Yep. See you. Bye.

