0:00:25
good evening good afternoon good morning
0:00:28
wherever you are in the world and
0:00:30
welcome back to another extension of
0:00:31
buildbreaking fix brought to you by
0:00:33
yours truly yes the raw credits
0:00:38
um yeah you must be observing tory is
0:00:41
back yes we always missed him and fought
0:00:48
few weeks and he's here so
0:00:54
glad to be here thank you
0:00:57
fantastic right so
0:00:59
just to give a bit of a recap um
0:01:02
so yes today what we were working on uh
0:01:05
the integration of uh
0:01:10
websocket um in our sam application um
0:01:15
are doing this the first time especially
0:01:19
tourist still has a
0:01:22
knowledge uh because she has worked
0:01:25
previously with the sockets
0:01:28
as in the websocket uh but because it's
0:01:31
a brand new knowledge for me so
0:01:34
we're just taking it
0:01:39
from the online resourcing and
0:01:42
starting building breaking and fixing at
0:01:48
that's going pretty much very good um
0:01:52
i'll just play the acknowledgement of
0:01:57
that's all right so here goes
0:02:02
i begin today by acknowledging the
0:02:03
traditional custodians of the land on
0:02:06
which we gather today and pay my
0:02:08
respects to the elders past present and
0:02:10
future i extend their respect to
0:02:13
aboriginal and torres strait islander
0:02:19
fantastic so now that is all done how's
0:02:26
sorry what was the question
0:02:28
how's your day been
0:02:31
oh good man like uh
0:02:35
busy day like i'm trying to get out a
0:02:37
bunch of applications um for for jobs
0:02:41
and like i was also like working
0:02:45
with some serverless stuff today and
0:02:47
explaining it to like another developer
0:02:49
i was helping actually so that was
0:02:52
that's fun i always like working with
0:02:57
that's really good as in i always
0:03:01
love and admire your dedication and
0:03:04
commitment as in your
0:03:06
learnings and plus you want to give back
0:03:08
to the community so that is phenomenal
0:03:20
welcome good to have you
0:03:24
he's asking that are you going for a job
0:03:30
interview right cool um so let's get the
0:03:34
ball rolling for action um so just to
0:03:38
give a bit of a really
0:03:40
uh brief overview what so
0:03:44
i haven't actually been working on the
0:03:47
websocket api as in
0:03:50
today um early on so i did
0:03:53
manage to find a really good tutorial
0:03:56
um which i was kind of
0:03:59
getting all the basics and everything in
0:04:02
so i'll just share my screen and show
0:04:04
you what have i actually been up to
0:04:10
so this is the vs code and um
0:04:20
kind of gone up to a point where
0:04:24
you know how we already created the
0:04:29
isn't it yesterday
0:04:34
uh i wasn't on i i didn't see but i
0:04:36
think that's what you were doing
0:04:40
sorry i was confused about the days see
0:04:46
i'm managed to get a really good
0:04:49
tutorial from uh aws and i was following
0:04:53
that so i managed to
0:04:55
make the websocket
0:04:57
as a infrastructure code and then
0:05:06
to this whole brand new
0:05:09
reflection expression
0:05:12
and then also did a test route
0:05:15
and then the websocket response um
0:05:20
and also created this function
0:05:25
so i'll just open up the resource that i
0:05:28
was using maybe might be a bit easier to
0:05:36
what was it um build
0:05:50
okay define defining website
0:05:52
no that wasn't the one
0:05:57
uh amazon yeah this was the one i think
0:06:02
no this wasn't the one
0:06:04
um where was that really good tutorial
0:06:13
no that wasn't the one either
0:06:21
let me just um stop this screenshot
0:06:25
because i need to open up my history as
0:06:28
in browser history so
0:06:30
i'll get the link from
0:06:35
do how to customize no that's not the
0:06:40
to get all the history from there
0:06:51
is is this the one no this isn't the one
0:07:04
building service ah here we go
0:07:09
cool so i'll just share my screen
0:07:18
there we go that's my screen over there
0:07:25
so i don't know when you send me a
0:07:29
message was this the blog that you were
0:07:31
talking about as in you
0:07:40
to learn it when you did the last time
0:07:48
well you can't remember
0:07:53
i think i was following
0:07:55
announcing websocket is an amazon
0:07:57
gateway i think it's different maybe
0:08:00
let me see the screen again
0:08:04
yeah a different different article
0:08:08
right right right yeah so basically what
0:08:22
enable the two-way
0:08:25
communication and that would basically
0:08:38
i saw it i saw it over here
0:08:47
um yeah the response
0:08:50
response which we already have
0:08:57
basically how we would work is that the
0:09:00
overall architecture is that we would
0:09:06
and then you know it would communicate
0:09:11
websocket api and then we'll
0:09:14
that would actually send
0:09:20
api gateway and depending on these key
0:09:24
value pairs um it would
0:09:28
fire up that particular lambda function
0:09:30
so in our case we need
0:09:41
so the first one for before can
0:09:45
or would be for connecting and the
0:09:47
second one would be for disconnecting
0:09:53
website for a particular user
0:10:00
i was in the middle of doing this
0:10:07
creating the functions
0:10:11
but i haven't really tested anything yet
0:10:18
actually let me just keep an eye on the
0:10:28
so i was a bit confused over here
0:10:31
because i was following this blog and
0:10:37
arn the amazon resource number
0:10:41
but i wasn't really sure where is it
0:10:44
bringing this one up from
0:10:50
as it says that is the integration url
0:10:54
and function is subbing
0:10:58
this one so it won't
0:11:02
it's worth knowing that choosing the
0:11:04
integration type of amazon proxy
0:11:09
lambda function responsible for passing
0:11:15
even body sent to the websocket
0:11:19
you're right yeah and also you must
0:11:20
format your response as a json object
0:11:23
that has a body key yeah that would be
0:11:30
so i'm just really curious waited
0:11:37
um so this is basically my lambda
0:11:40
handler function.arn
0:11:54
so basically we need to type this one
0:12:18
is going to be long
0:12:26
i would copy and paste it but it's not
0:12:28
really allowing me to do so
0:12:31
so i don't have any choice but to
0:12:42
and obviously if you're doing this
0:12:45
there's a high chance of me making a
0:12:50
which wouldn't be a good idea
0:13:06
experience still already is it
0:13:11
yeah you're not the only one mate
0:13:15
roots wow this is long
0:13:23
in my case it would be
0:13:41
come on zayn think
0:13:45
do they have a link to the repo
0:13:50
that's actually a really smart one i
0:13:52
haven't checked it but they must have it
0:13:57
maybe control find github or
0:14:08
usually they have a link to the repo
0:14:11
yeah i thought so but apparently they
0:14:27
makes makes copying and pasting
0:14:35
but anyway this was also good for our
0:14:44
it's the hard way but
0:14:54
allows us to practice our patients too
0:15:04
what's new gective um
0:15:07
i have an interview
0:15:09
with shopify on january 12th at 5 00 a.m
0:15:16
that's going to be fun
0:15:20
other than that i don't know not
0:15:23
nothing nothing yet like um
0:15:31
recruiters reached out to me from some
0:15:34
companies in the u.s so i'll get back to
0:15:38
probably like next week because i think
0:15:44
companies are ramping up for next year
0:15:47
today i got a bunch of messages
0:15:50
on linkedin so it seems like a great
0:15:55
and look for a position
0:15:58
no interview for a job back in the
0:16:00
states yeah it's it's remote um
0:16:04
for a front-end position
0:16:14
fully remote that means that
0:16:17
when you get the job um
0:16:20
then you can actually start working from
0:16:24
no no uh you have to well yeah i'm
0:16:27
pretty sure you have to be in the us but
0:16:30
shopify is pretty interesting because
0:16:33
they're remote first and like they they
0:16:36
say work from anywhere
0:16:38
but i think there's limitations to that
0:16:47
uh like what not hq but you know like
0:16:50
which which region you're attached to
0:16:58
first i got to get the job anyways i'm
0:17:00
not like worried about the
0:17:08
you're gonna score it mate i'm pretty
0:17:11
that would be nice um i'll have plenty
0:17:13
of backup plans in the event that that
0:17:20
the funny one today was um
0:17:23
there was a company i forget the name
0:17:25
they reached out to me
0:17:27
um they're actually they're actually a
0:17:29
mattress company in the us from san
0:17:32
francisco i can't remember the name
0:17:34
but like they're looking for uh a front
0:17:37
end like e-commerce dev
0:17:41
and i was like okay like whatever like
0:17:43
it's it sounds pretty interesting um
0:17:47
and then like the perk is like one of
0:17:50
the perks is you get any mattress of
0:17:59
they give you brand new like they're
0:18:00
like we'll give you a brand new macbook
0:18:03
and any mattress of your choice and i'm
0:18:05
like that's actually a pretty sweet deal
0:18:07
i do like like i do appreciate a really
0:18:10
comfortable mattress
0:18:13
oh okay yeah but did they have a
0:18:21
geckdev says i'd like to sleep on a bed
0:18:23
of money so yeah i could tell him that
0:18:26
like can you make the mattress like
0:18:33
money generating mattress
0:18:43
yeah man that'd be really good though
0:18:46
well yeah if they if they let me work
0:18:47
from here that would be a killer deal
0:18:49
because like maybe a company like that
0:18:54
they might let me and actually pacific
0:18:56
time in the us is better than where i'm
0:18:58
from which is eastern standard
0:19:02
hours in the evening here would overlap
0:19:04
a bit more or in the morning
0:19:08
instead of me like completely
0:19:11
starting working at night uh like really
0:19:14
late which is i can't do i'm so bad at
0:19:19
i if they allowed you to work from bali
0:19:22
would you be happy to be
0:19:24
adaptable to work according to us hours
0:19:28
buff but from bali
0:19:30
i would as long as it's as long as it's
0:19:32
not like totally overnight stuff oh yeah
0:19:35
right or like yeah yeah if i got to stay
0:19:39
up till like 2 a.m
0:19:45
in work then it would be tough for me
0:19:47
but it wouldn't be
0:19:50
like yeah i don't know like
0:19:54
starting working at five a.m is fine
0:19:56
four a.m 4 30 maybe but
0:19:59
earlier than that is
0:20:01
it's just gonna be a bad life yeah
0:20:06
true now i i completely
0:20:09
agree though because when i had my
0:20:11
family emergency um
0:20:14
went there but i was still working so
0:20:17
according to australian hours i had to
0:20:20
work from half to in the morning until
0:20:24
half eleven yeah oh wow that's yeah
0:20:32
some people love it but it's not it's
0:20:34
like yeah i'm not an overnight person
0:20:39
yeah that makes sense though
0:20:44
if i was if i was like if i was like 12
0:20:47
or 14 years old again i could do it
0:20:50
but yeah i'm right
0:20:52
i'm 36 now like i go to bed early wake
0:20:57
old all right right yeah
0:21:01
that makes sense to
0:21:07
ah come on i forgot the account id again
0:21:15
you should use uh you should you should
0:21:17
try using a password manager
0:21:21
yes i already have it but i'm kind of
0:21:25
all the details in there
0:21:29
um right how about if we just use a
0:21:37
i'm the opposite now i've been using
0:21:40
password manager for many years that if
0:21:42
i don't have a password manager or
0:21:44
access to my password manager i'm
0:21:46
totally screwed i'm totally oh
0:21:53
like all the passwords are insane too
0:21:56
they're like so random
0:21:59
i see yeah those random generate
0:22:02
passwords isn't it
0:22:10
yeah i'm just trying to as in
0:22:13
open up my slide because the password of
0:22:16
the root account isn't there
0:22:19
which is why i've actually
0:22:22
stopped sharing my screen as well
0:22:31
oh yeah i got my um equipment as in the
0:22:35
laptop uh a screen
0:22:38
and then mouse and a keyboard from my
0:22:48
i can't wait to get some new gear too
0:22:52
yeah it's exciting
0:22:55
what what laptop did they give you
0:22:57
um to be honest i haven't even opened it
0:23:02
yeah i know it's a bit of
0:23:05
it's a bit of a rare thing i should be
0:23:07
really excited and i should get my step
0:23:12
going in there but
0:23:16
i've had important things to deal with
0:23:19
so but i'll let you know though
0:23:30
but i can tell for some reason that
0:23:33
micros microsoft is really trying to
0:23:36
copy apple isn't it
0:23:40
uh i don't know i guess people were
0:23:42
saying that with uh windows 11
0:23:47
i use microsoft go ahead like
0:23:51
rip on me i don't care
0:23:58
and i have windows 10 and i like windows
0:24:00
10 a lot but yeah i don't know people
0:24:03
were saying windows 11 is like like the
0:24:07
ux is like more of a
0:24:15
yeah i won't blame them because um as
0:24:22
actually the first thing that came into
0:24:25
mind as in the keyboard and the mouse is
0:24:31
the nearest copy to
0:24:36
oh is it okay yeah
0:24:41
oh uh thanks thanks geckdev for backing
0:24:44
me up like whenever i say i'm using like
0:24:46
a windows computer people just
0:24:50
you know take a crap on me like like
0:24:53
come on like there's a whole company
0:24:55
there's a whole company called called
0:25:08
can't be that bad although like yeah
0:25:10
older versions of windows like
0:25:12
i i almost hopped the fence man like
0:25:15
some of them were like back in the day
0:25:27
right because i think microsoft
0:25:30
um basically apple kind of takes over
0:25:33
microsoft according to
0:25:36
my opinion but it's not really
0:25:38
as incompatible as in
0:25:41
friendly with terms of compatibility
0:25:47
you know what i mean
0:25:50
uh yeah i think so
0:25:54
you know if um you can't use airdrop
0:25:58
as in if if you have a iphone you should
0:26:01
you can't use airdrop on windows
0:26:05
but you can use your mac
0:26:07
so so they have been really clever
0:26:10
in terms of as in making you dependent
0:26:14
on the apple product
0:26:19
yeah the proprietary stuff yeah that's
0:26:22
that's one of the things i don't like
0:26:26
back in the day when i grew up like sony
0:26:30
stuff was all the rage
0:26:35
had everything was like proprietary for
0:26:37
sony it was really
0:26:39
like expensive and
0:26:43
i mean they just didn't keep up this is
0:26:46
partially what did them in i mean i
0:26:48
don't think apple's going anywhere
0:26:52
i hate it when i'm locked into something
0:26:58
come on man we're devs like i like open
0:27:05
didn't say anything i never said i would
0:27:11
not that windows is open sources at all
0:27:13
but you know like the cool thing about
0:27:16
windows 11 though i heard and i haven't
0:27:17
gotten to use it or i haven't heard
0:27:20
anything about it is like i think you
0:27:24
you can like launch android apps on
0:27:26
there from google oh
0:27:31
and there's and there's an even i don't
0:27:34
know what it's called but
0:27:36
geckdev said like there's wsl on windows
0:27:40
allows you to run uh linux
0:27:46
on your windows um pc
0:27:48
and it's pretty good now and then i
0:27:50
think on windows 11 there's even like a
0:27:52
better version but i'm not sure
0:27:58
yeah and that would
0:28:00
make some sense completely though
0:28:04
me being a.net dev primarily i work on
0:28:08
windows as in only when i have to do
0:28:13
project as in my personal ones then i
0:28:17
i use mac and it's kind of really
0:28:22
to properly shift my mindset from mac to
0:28:26
windows and then windows to mac as an
0:28:31
oh that's yeah that's i mean that's good
0:28:33
though that you can there are definitely
0:28:35
times i wish i'm using a mac for certain
0:28:38
things because it would just be easier
0:28:41
yeah yeah like for sure
0:28:44
like sometimes docker is like super big
0:28:47
pain in the butt on my windows pc just
0:28:51
because there's windows
0:28:53
like i have a little bit of the older
0:28:55
laptop maybe it works better but
0:29:01
yeah yeah official
0:29:09
i think the biggest thing is just yeah
0:29:11
it's just your shell for me like you
0:29:14
a linux like shell
0:29:16
on on mac like it's close to it's cl i
0:29:24
like very close to linux i forget what
0:29:44
i think i think there it's built on top
0:29:46
of it could be wrong and i'm not
0:29:51
linux built off of units yeah
0:29:55
and then mac is built off of unix but
0:29:58
maybe it's also built off of linux
0:30:02
i thought mac was built off unix maybe
0:30:16
but yeah i don't know maybe they are
0:30:17
linux and maybe maybe mac is like yeah
0:30:21
i'm pretty sure it's one of the two but
0:30:24
i could be wrong as well
0:30:26
uh i'm pretty sure gekko wouldn't be
0:30:31
correct me on that as well if i'm wrong
0:30:36
if i don't know something i'm just going
0:30:42
basically the best person to go to the
0:30:45
really knowledgeable
0:30:50
and and kind of i really like how he
0:30:53
becomes sarcastic when it comes
0:30:57
on something i say and i'm like okay
0:31:00
here's the gap there actually the actual
0:31:03
jack them coming along now
0:31:11
he's being way too nice tonight
0:31:26
make a comment he would shred me into
0:31:29
pieces and i'm like okay i would just
0:31:37
it's good man it's good to have somebody
0:31:39
like pushing you you know exactly
0:31:58
it's in rock um complete
0:32:02
oh sasha wrote back
0:32:23
yeah um i think that also reminds me a
0:32:37
you know port isn't it
0:32:43
these are the two guys that
0:32:48
really push me in the way i love
0:32:57
yeah yeah paul's like
0:33:03
crazy knowledgeable
0:33:09
all right where am i
0:33:13
i'm doing every everything is asking me
0:33:20
looking for a resource
0:33:37
no don't tell me that
0:33:40
i kind of connect to aws
0:34:08
change your creative successfully okay
0:34:13
nothing has been replaced so i can do
0:34:15
deploy the chain set
0:34:19
let's see where did i mess up this time
0:34:23
yeah i did mess up actually
0:34:26
one validation value it with lambda full
0:34:31
policy in the field to satisfy
0:34:32
constraint remember myself then greater
0:34:41
remember full access
0:34:43
where am i messing up
0:34:48
edwards slam the full axis
0:35:08
air policy errand failed to satisfy
0:35:12
member must have length
0:35:15
greater than or equal to
0:35:20
one two three four five six seven eight
0:35:24
eleven twelve thirteen fourteen fifteen
0:35:26
sixteen seventeen eighteen nineteen
0:35:28
twenty he does have it
0:35:31
so what's what is it complaining for
0:35:36
have i got any other ones
0:35:42
that's for the web socket
0:35:54
websocket handler function role
0:36:01
resource creation cancelled
0:36:06
what did i do for hello world there
0:36:14
dynamodb full access
0:36:18
lambda full access
0:36:21
let me check how is this done in
0:36:26
yeah i'm checking out the resource
0:36:28
policies for that okay cool
0:36:34
like i said i'm not much help with these
0:36:37
because i'm bad at the templates
0:36:42
we all land mate there's
0:36:47
good at everything i'm not bad at
0:36:50
looking at looking stuff up on google
0:36:52
and in the documentation
0:37:00
there's aws lambda full access
0:37:11
is this spelled in exactly this way
0:37:16
yeah aws lambda so why is he saying that
0:37:20
that's a manager that's a managed policy
0:37:26
it does say that it's being it
0:37:28
it has been depreciated on march 1st
0:37:35
uh there's a new one where it's aws
0:37:40
underscore full access
0:37:49
yeah or yeah or it could be wrong
0:37:54
you can you can run you can run the you
0:37:56
can run the sam validate that yaml
0:38:00
and that will tell you if it's wrong i
0:38:03
yeah why didn't i do that before
0:38:17
i use this same value they help
0:38:21
call unexpected watch
0:38:23
okay so if i do some
0:38:32
things that it takes
0:38:37
template file you just need the t flag
0:38:46
of course let's try that
0:39:05
loading policy from
0:39:07
around like finished
0:39:10
region was not found please configure ah
0:39:15
for pro ah okay that's my bad
0:39:22
send it the region
0:39:27
it says it's a valid
0:39:32
try it with the underscore
0:39:37
uh um after lambda
0:39:46
if you can that'd be fantastic
0:40:06
what are you doing for new year's
0:40:11
um just basically stay up on my balcony
0:40:15
and watch the fireworks
0:40:17
oh you can see fireworks from your
0:40:19
balcony that's nice uh i'm hoping i
0:40:22
can oh okay yeah i'm not entirely sure
0:40:26
they they're going to be in this
0:40:30
just hoping if not then just
0:40:42
yeah because i don't really want to go
0:40:48
if you know what i mean
0:40:52
um i would like the yeah the situation
0:40:57
yeah because david at please
0:41:01
in uh the cases have been really bumped
0:41:05
up and then from two grand to five grand
0:41:09
you're talking to the guy in the uh like
0:41:12
i'm from the u.s man you guys got
0:41:17
we did we did we almost did half a
0:41:22
yeah it's gone it's at an all-time high
0:41:25
i think it's at an all-time high for you
0:41:27
guys as well right
0:41:30
yeah no no signs of slowing either like
0:41:33
the if you look at the graph it's still
0:41:37
straight up like straight up yeah crazy
0:41:43
this is really interesting so apparently
0:41:45
leave that both those policies are
0:41:48
working as in underscore one and
0:41:54
all right i'm gonna maybe we're on the
0:41:58
yeah and then see where it takes us
0:42:01
i shared in in the in the chat where i
0:42:03
got that link or i mean where i got that
0:42:05
from okay cool that's useful
0:42:08
that'd be really helpful
0:42:18
i'm really hungry now
0:42:20
off to this i'm gonna straight away
0:42:24
go into the kitchen and become a pig
0:42:29
me too man i'm i'm wait i'm gonna eat
0:42:44
i'm saying that chris um
0:42:53
must be this underscore that it doesn't
0:43:05
all right let's do it again
0:43:19
yeah this would deploy now but it will
0:43:30
that's what we're feeling about
0:43:32
all right let me let me
0:43:35
try to find something here
0:43:42
okay cool so now what we can do is
0:43:48
copy and paste the siren to google
0:43:51
because google has all the answers
0:43:56
sometimes i really
0:43:58
wonder if i should call myself a google
0:44:06
it's part of it it's part of the job
0:44:12
like uh my my i know a guy who works at
0:44:16
t-mobile and in the in in the interview
0:44:18
process at t-mobile t-mobile if you're
0:44:21
not familiar with the telecom company in
0:44:23
the us it's really big
0:44:25
right and like in the interview process
0:44:31
for uh engineers um
0:44:34
like part of it is like they want to see
0:44:36
how you google stuff
0:44:39
if you if you're not certain of you know
0:44:41
the answer like to even write that down
0:44:44
you want to see what resources you use
0:44:58
actually a requirement of a skills as
0:45:01
well which i'm actually gonna start to
0:45:04
focus on the different skill as in
0:45:07
effective searching on google now
0:45:14
yeah if there's a there's a good channel
0:45:16
called fireship fireshipbio on youtube
0:45:18
and he has a he has a pretty like short
0:45:21
he does a lot of short videos and one of
0:45:22
them is about how to master
0:45:25
like google searches
0:45:28
it's worth a watch
0:45:30
okay yeah i'll definitely have a look at
0:45:35
lambda for nexus at policy aaron
0:45:44
one two three four five six seven eight
0:45:48
is it this one lambda value
0:45:51
at constant filter test five months
0:45:54
remember must have the length greater
0:45:57
than or equal to 20
0:46:03
one two three four five six seven
0:46:07
ten eleven twelve thirteen fourteen
0:46:09
fifteen screen seventeen eighteen
0:46:17
this has to be at least
0:46:24
since when did that requirement come in
0:46:47
it does exist because i'm looking at sam
0:46:50
templates from the docs
0:46:54
so i think i think the other one is
0:46:58
but i guess that's not the problem
0:47:06
try and save him build and then deploy
0:47:12
if that isn't the problem then it should
0:47:17
not show that error anymore but show
0:47:19
other arrows still
0:47:22
so let's see if that happens
0:47:24
i i sent it in the chat exactly i'm just
0:47:27
copying it i don't know if there happens
0:47:29
to be a tiny typo we don't see
0:47:34
it looks the same to me
0:47:41
do this and it shouldn't yeah
0:47:43
same okay something else then
0:47:49
and see what does this have installed
0:48:03
okay yeah it doesn't do it with the
0:48:06
underscore because it's saying actually
0:48:09
i'm gonna delete the stack
0:48:18
delete in progress come on delete call
0:48:24
actually i've already built it so i
0:48:26
don't need to do that again
0:48:28
just need to deploy
0:48:43
what'd you reckon tory
0:48:46
will it work this time
0:48:52
uh sure i don't know
0:48:57
sure sure yes it's gonna work it's gonna
0:49:01
it's gonna work man i have faith
0:49:06
it's looking promising as in it's taking
0:49:09
it's taking longer now
0:49:29
create complaint apparently it did work
0:49:33
so that old that old uh
0:49:36
policy is depreciated i guess yeah yeah
0:49:42
well it's not only depreciated it's gone
0:49:47
you can't use it yeah yeah
0:49:54
you'll get cloud formation shouting at
0:50:00
so that's a good sign um
0:50:04
the error isn't more helpful though yeah
0:50:07
yeah true it would be cool if they just
0:50:10
told you it's depreciated but
0:50:13
i guess i'm asking a lot
0:50:16
well you're being fair
0:50:21
all right so these are the resources
0:50:25
cool so now what do we need to do as in
0:50:28
how do we need to test it that's what i
0:50:34
okay that one not that one
0:50:38
ah i lost the link did i
0:50:44
what is it okay so what did you deploy
0:50:47
was was this was this
0:50:50
all the web socket like with api gateway
0:50:56
basically what i did was i deployed a
0:50:59
web socket the roots which are connected
0:51:04
and disconnect and then i also deployed
0:51:13
do the work of connecting and disk
0:51:16
disconnecting yeah i didn't do anything
0:51:20
big all i did was copy and paste but
0:51:27
try to understand it
0:51:29
from the blog and doing that way
0:51:33
you can um you can i sent you a link to
0:51:37
something called pie socket which is
0:51:39
just like a browser thing you can try
0:51:43
in the browser with that
0:51:46
let me just go in that one
0:51:52
okay don't need this i learned that from
0:51:54
one of the videos i watched there's also
0:51:58
like command line websocket thing too
0:52:04
i would definitely look at that
0:52:07
so where's our websocket url
0:52:15
didn't give you one
0:52:17
supposed to give me a url for websocket
0:52:21
well it should it'll be in the api
0:52:27
connect uh so this is our rookie
0:52:32
and this is our okay right
0:52:35
always okay these are uh i need to
0:53:03
where your api will be deployed
0:53:05
for example test but you know we'll be
0:53:08
deploying that test named beta
0:53:10
so how do we deploy this
0:53:15
create the stage yeah i want to create
0:53:21
it's not giving us any option
0:53:36
i need to give it the
0:53:55
what were you about to say tory
0:53:57
oh i was i was gonna say yeah looks like
0:54:00
i was gonna ask you in the template it's
0:54:02
yeah yeah okay yeah here we go so
0:54:25
so that's the stage name was this then
0:54:29
scrum blue websocket anyway
0:54:33
let's try it and see if this gives us
0:54:36
what we want to see
0:54:48
you have the api gateway
0:54:52
web protocol type websocket
0:54:58
route selection expression
0:55:20
this was oh okay now mine i'll send you
0:55:27
link as in after the stream
0:55:33
i actually got the
0:55:35
code and where it does all the
0:55:38
uh explanation as well
0:55:53
i'm pretty sure i'm messed up here
0:55:58
the following resource is filled to
0:56:01
okay i probably need to unsupported
0:56:04
properties in stage ah so this
0:56:07
doesn't apply to websocket apparently
0:56:14
interesting so what applies to web so
0:56:24
stage in web socket api
0:56:41
okay defining yeah that would be it
0:56:50
no i don't want it from the console i
0:56:52
need it from uh here we go
0:57:15
uh well i'm reading like a different
0:57:18
tutorial from aws like it's probably
0:57:20
like very similar yours
0:57:22
okay but do you do you have like do you
0:57:26
deployment in the template where it's
0:57:32
an api gateway deployment
0:57:36
um no i don't have any of that
0:57:39
okay maybe that that's what i'm missing
0:57:47
it depends oh yeah wait but you is this
0:57:51
no no oh okay yeah see it
0:57:54
depends on the the test route
0:57:57
with the properties of
0:58:00
now okay so i'm missing that pod
0:58:04
that was a good pick mate
0:58:06
i think i think underneath too you need
0:58:14
so i would probably do that one around
0:58:21
where this one ends
0:58:25
and do a deployment
0:58:28
that's integration actually
0:58:31
no hair i'll follow his convention
0:58:49
okay and then deployment
0:58:52
would be over here i guess
0:58:56
yeah on the second line
0:59:09
right oh this is going to be long
0:59:18
do you have that vs code extension on
0:59:20
does it like the snippet i have
0:59:22
yeah i've got that but it's not it's not
0:59:28
this one apparently
0:59:30
too bad here we go
0:59:33
so all right what do i need deployments
0:59:37
ah i need you back
0:59:42
uh deployment and then it depends on
0:59:56
what else do i need ah i forgot this one
1:00:09
test ram and properties
1:00:14
oops i haven't done this right
1:00:18
see this is what don
1:00:24
it's really flexible when it comes to
1:00:27
spacing and tapping
1:00:31
properties oh my my loving it
1:00:38
you know by any kind does ref mean
1:00:45
you're asking the wrong person but i
1:00:47
believe that is what it is i forget
1:00:50
though but i think it is a reference
1:00:53
because i was just talking from my
1:00:58
might be wrong again
1:01:00
let's see cloud formation ref
1:01:04
rest api wait hang on that's not a rest
1:01:09
so why is it coming up as rest api no i
1:01:16
okay the staging part
1:01:20
um all right i'm getting really hungry
1:01:23
now so we'll take a leave we have this
1:01:26
and i'll probably work on it in my free
1:01:29
time a bit oh so so close man yeah i was
1:01:33
like i want to see it work
1:01:44
don't need that one all right i'll come
1:01:48
screen and stop sharing
1:02:00
yeah when websockets work it's it's like
1:02:03
i don't know to me it's so cool when you
1:02:06
can have multiple people like
1:02:08
just doing something in real time on an
1:02:10
on an app oh yeah yeah
1:02:13
it's just some kind of like
1:02:15
cool magic going on there like the
1:02:18
interactivity i guess it's just like
1:02:25
agree with you but the
1:02:27
as in a bit more often
1:02:30
exciting part is yet to come where we um
1:02:39
for the external users but
1:02:44
functionality and then
1:02:46
you can be able to
1:02:49
create notes and everything
1:02:52
so we can test we will be testing this
1:03:04
if that makes sense
1:03:07
what's your do you have a plan to
1:03:10
like what you're gonna do with the
1:03:11
websockets like what's gonna trigger
1:03:14
events do you know
1:03:17
because there's like a lot of different
1:03:18
ways you could do it like i sometimes
1:03:21
there's applications where you can see
1:03:24
everybody's cursor for instance which is
1:03:28
yeah yeah and that um so we wouldn't be
1:03:33
able to see everyone's
1:03:35
cursor but just what's happening on the
1:03:40
and how i guess it would probably happen
1:03:44
that one person creates the board and
1:03:50
url and then all the others
1:03:53
as soon as they access that page they
1:03:56
will have an ability to
1:04:00
say attempt username
1:04:06
and with that using name will be
1:04:10
connection id as well
1:04:15
that's how i'm thinking initially that
1:04:23
i haven't really given much
1:04:26
after hair as in your thoughts as well
1:04:30
would you think that it should be
1:04:35
yeah i was i was actually thinking about
1:04:37
it the other day because i was like
1:04:39
there's so many different ways you could
1:04:43
um work with the websockets to keep
1:04:49
you know like real time like yeah
1:04:52
i don't think you need to go as far as
1:04:54
like if someone's dragging
1:04:56
a note then somebody else needs to see
1:05:02
yeah it's like yeah yeah that's a bit
1:05:04
much like it's not like a multiplayer
1:05:06
game where like you need to see what the
1:05:08
other person is doing like every
1:05:13
like i was yeah probably what you'll you
1:05:16
would do is like every time somebody
1:05:19
saves a note or moves a note like in the
1:05:23
how it's organized
1:05:26
that's probably when you'd like
1:05:33
ah see i see yeah so basically whenever
1:05:40
movement of that soul happens we fire up
1:05:43
the event so everyone can who's actually
1:05:48
can see it yeah the only the only the
1:05:52
only weird part might be is like say if
1:05:55
say if say if two people are just
1:05:57
connected to the board and then somebody
1:06:05
like moves it from the bottom of the
1:06:07
board to the top of the board
1:06:10
like you might want to have like
1:06:13
an animation like a small one
1:06:16
when it moves because otherwise like it
1:06:18
would be like insane
1:06:23
you're the user you're like what the
1:06:27
yeah sure true and
1:06:30
that's exactly what we're going to do um
1:06:38
from the user's perspective to actually
1:06:41
make all the changes
1:06:44
visible in a way that it stands out but
1:06:47
it's not really too much for the user to
1:06:50
see on the screen as well
1:06:54
cool man i'll let you go eat
1:06:57
perfect man yeah i'm really hungry and
1:07:00
i'm sure you are too i am um so yeah
1:07:04
thanks guys for tuning in um
1:07:09
means a lot and always enjoy
1:07:11
learnings on the stream
1:07:14
yeah continue we won't be streaming
1:07:17
tomorrow because it's new year's eve
1:07:19
and um we will come back on sunday now
1:07:24
and i can't wait to
1:07:27
forward for this um function now see we
1:07:30
are that close that close
1:07:33
all right guys um have a good uh
1:07:38
afternoon and now wherever you are in
1:07:45
a very happy new year from the raw
1:07:48
coders in advance um hope you guys have
1:07:54
celebrations lined up and we'll see you
1:08:03
that's the one baby all right so
1:08:11
same time same place and
1:08:14
same task that's the one all right guys
1:08:18
have a good night cheers have a good