0:00:25
what is going on guys welcome back to
0:00:28
another session of bill breaking fix
0:00:31
multiplied the two of the raw coders tnz
0:00:35
how are we doing today
0:00:39
um yeah feeling pumped for today
0:00:42
um yeah really good
0:00:44
fantastic really good to hear i'm pumped
0:00:48
as well we really can't wait to get the
0:00:51
next task working so um just before we
0:00:55
before we start all that uh
0:00:58
that's to the acknowledgement of the
0:00:59
country and we can take it from there
0:01:05
i begin today by acknowledging the
0:01:07
traditional custodians of the land on
0:01:09
which we gather today and pay my
0:01:11
respects to the elders past present and
0:01:13
future i extend their respect to
0:01:16
aboriginal and torres strait islander
0:01:23
cool that was brilliantly done um
0:01:27
so just to give a bit of a um background
0:01:33
today with the legendary tory
0:01:36
we basically moved on to the next task
0:01:43
um getting the connection id
0:01:49
and upon connection it would be stored
0:01:58
yeah yeah okay makes sense does that
0:02:00
make sense cool and
0:02:02
just to re iterate when the user will
0:02:06
connect to the websocket then this will
0:02:16
so i'm just wondering saying
0:02:19
the other issue we just
0:02:21
we're just leaving it for the time being
0:02:23
and then moving on to this
0:02:26
yes that is correct because um i think
0:02:34
personally i think that it's not that
0:02:36
big of an issue that's holding us back
0:02:41
when we do the other big stuff which we
0:02:44
are about about to do then we can um
0:02:47
come back to this one and i'm pretty
0:02:50
sure that yeah that she just
0:02:55
probably half an hour to
0:02:59
which i will be doing this weekend
0:03:02
and hopefully get their
0:03:07
in my free time as well
0:03:16
hey cue jesse welcome and be being kind
0:03:20
welcome and good to have you you're
0:03:23
really being kind to us here
0:03:30
all right um so i'll share my screen and
0:03:33
we can take it from there
0:03:38
oh no no no no no no this was causing a
0:03:42
problem yes today as well
0:03:45
because of which tori was doing the
0:03:50
my screen is kind of stuck to
0:03:53
this kind of an image
0:03:58
where and why is it coming up
0:04:05
i can't even see my as in
0:04:10
uh the menu here and you can check that
0:04:14
that screen is all
0:04:20
if you try different browser see
0:04:28
do you reckon i should go for that one
0:04:32
yeah i think could be with a shot
0:04:35
it's cool yeah um in that case i'd have
0:04:53
it's moosa right uh that's my um
0:05:07
good to have you mate did you tell him
0:05:18
um kind of starting off his journey in
0:05:22
development as well
0:05:25
so really really good to see man though
0:05:30
all right um so okay so what i'm gonna
0:05:41
try in a different browser and see if
0:05:43
that works in that way all right yep
0:05:45
okay so that's good
0:05:53
please tell me i've got five points when
0:06:06
safari okay cool i'm gonna open that one
0:06:14
so you might see two of me
0:06:17
i don't know if that's gonna happen
0:06:23
your brother doesn't support
0:06:25
wow so safari doesn't support streamyos
0:06:30
interesting and they're they've actually
0:06:32
recommended chrome
0:06:41
i'm still gonna force it
0:06:43
oh i would have to download firefox
0:06:47
no that's gonna take uh extra time and
0:06:51
how about if uh i'll try for five more
0:06:54
more minutes and if you work some my
0:06:58
well that's fantastic
0:07:00
but if it doesn't you won't want to just
0:07:03
change your screen then instead
0:07:06
yeah yeah can do um i'm still a little
0:07:10
um a lot of the stuff but you know happy
0:07:12
to share and then that's alright man
0:07:15
you'll learn by doing
0:07:18
all hit or hit to learn
0:07:21
all right so i will
0:07:23
try once more and see
0:07:27
why why does it do it i'm still curious
0:07:31
he shouldn't i shouldn't do that yeah
0:07:38
in that way i need tori to come because
0:07:41
he's a window champion
0:07:54
i don't want operator
0:07:57
do you firefox say you don't want
0:07:59
firefox i don't have
0:08:02
do i have any other browser except
0:08:20
all these technical glitches are really
0:08:22
interesting isn't it
0:08:24
yeah it is i wonder what happens
0:08:48
can you see my base code
0:08:52
it was loading and now it's just blank
0:09:03
this is really interesting honestly i
0:09:07
wasn't expecting this to happen
0:09:11
okay this is stream yard
0:09:15
yeah fine and how about if i move this
0:09:20
ah okay so it's just
0:09:22
it's yeah it's just window based
0:09:25
yeah it's window based so how about if i
0:09:28
open up exactly in the same same way
0:09:42
my vs code doesn't even appear
0:09:50
and i'm just opening my repository
0:09:59
okay let's try now
0:10:03
wow this is extremely interesting
0:10:14
um she will probably have
0:10:18
oh yeah it's stuck again
0:10:20
yeah yeah it's the same thing i'll
0:10:22
probably have to work on it um
0:10:24
afterwards do you want to share your
0:10:27
screen and we can just um
0:10:29
continue from there
0:10:46
terminal and curl commands
0:10:50
you don't need a browser
0:10:54
nonstop and can't go past that
0:11:01
uh totally makes me laugh
0:11:05
okay i'm sharing your screen now
0:11:08
cool i'll just just change
0:11:17
do you know how to open it from terminal
0:11:21
uh yeah just cd into and then code right
0:11:25
yeah yeah i mean that i think is uh a
0:11:32
50 million miles clicks honestly yeah
0:11:37
okay so do you want to do a git pull
0:11:45
yeah that's fine check which branch are
0:11:47
you on at the moment
0:11:51
websocket yeah perfect
0:11:53
so you are on websocket integration
0:12:05
do you wanna basically deploy
0:12:11
i can but i don't have the cli stuff set
0:12:18
do you wanna quickly install oh so you
0:12:27
cli i i have uh the command and all that
0:12:30
but i don't have the config setup i mean
0:12:34
config set don't i need to get the oh
0:12:37
okay yes so you will probably have to do
0:12:40
what i did with tori the
0:12:42
other day um set up the access key and
0:12:45
secret access in the credentials file
0:12:56
what are you looking for
0:12:59
is it um do i do i have to do that
0:13:23
okay that's a good thing you have uh
0:13:27
installed actually
0:13:31
i just i don't know if i can deploy it
0:13:36
um okay we can find out do sam
0:13:42
actually uh no no no hang on
0:13:45
do you already have the credentials in
0:13:54
the credentials file
0:13:58
which credentials why
0:14:06
is a hidden folder in your
0:14:09
okay so if you want to bring your
0:14:13
i'll guide you to it
0:14:30
and then do cd space
0:14:42
yeah okay and do ls okay hang on a
0:14:52
i need you to stop sharing the screen
0:14:55
and then open up your credentials file
0:15:04
and i just want you to check
0:15:08
if you have two pairs of
0:15:17
four keys or two keys
0:15:21
um aws access key id default aws secret
0:15:26
access key default as well
0:15:32
yes yep okay in that case i'll um have
0:15:35
you got your secrets and access key that
0:15:46
um i don't actually have that on me
0:15:49
i need to i need to have a look um
0:16:00
failed to make me laugh honestly
0:16:10
i tried but they said that was too slow
0:16:13
so this sucks me on my first day
0:16:18
i can't even drive properly see
0:16:28
so okay um i will send you if you
0:16:48
to do that's my account
0:17:11
oh um it should just be on slack
0:17:14
because i remember i sent you
0:17:25
yeah i did send you can you probably
0:17:28
actually i want to make sure if that's
0:17:31
still the right one under your user i
0:17:34
think that's the old one saying
0:17:36
oh you must be right
0:17:39
just checking give me a few minutes
0:17:44
now no yeah there's the one that's one
0:17:48
that's the one so exactly how is it
0:17:51
appearing on those
0:17:54
two lines you want to
0:18:05
as in above these two you want to give
0:18:08
it a profound name as well
0:18:12
so i'll just hang on i will private chat
0:18:15
you um how the format should be you can
0:19:40
you know where i've done access key and
0:19:48
so all of these should appear exactly um
0:19:53
like the one you have at the moment
0:20:00
the actual keys should change
0:20:04
yeah that's my point
0:20:10
we have seen them all profile um just
0:20:13
name it appropriately appropriately and
0:20:16
the purpose of that would be to
0:20:18
differentiate between the accounts
0:21:21
how we doing so far
0:21:23
all right i think it's good um
0:21:27
you don't need to put it in in
0:21:28
quotations right see
0:21:32
no no i don't think so you do
0:21:35
all right all right that's done
0:21:38
so now um if you want to share your
0:21:55
okay i have to give you access to stream
0:22:04
okay cool yeah so if you want to go back
0:22:30
yeah and if you want to do sam space
0:22:44
minus minus profile
0:22:48
and then whatever you
0:22:52
fi of the profile in
0:23:01
without the square brackets i meant
0:23:06
okay yeah that should work
0:23:12
there we go uh press enter
0:23:27
fine to it doesn't complain either way
0:23:43
so now what he's doing is deploying the
0:23:51
the key here is to if if you want your
0:23:56
name to be different
0:23:57
then you need to specify that on the
0:24:00
first line as in you know
0:24:03
where it says stack name
0:24:13
in this case it would just override the
0:24:16
existing one because the name is the
0:24:41
deploying the chainsaw that's all
0:24:46
so basically what we're trying to do now
0:24:54
they're coming to catch me
0:24:58
uh i'm just kidding uh yes and now what
0:25:02
we tend to do is when we connect
0:25:06
through by socket as in there's a web
0:25:10
testing web socket urls
0:25:14
we are expecting the connection id
0:25:19
to be inserted in dynamodb
0:25:26
now if you want to open up your aws
0:25:30
as in on the console
0:25:49
actually don't remember my password so
0:25:52
i'm not sure we're doing this but i'm
0:25:53
not loving this thing that's fine
0:26:02
yeah you should get that one password
0:26:05
manager is really handy
0:26:08
yeah i need to do that
0:26:15
let's check the password
0:26:28
can i send you the password
0:26:32
because i think i've got your password
0:26:36
yeah just bear with me let's send it to
0:26:39
you because i just want to make sure we
0:26:42
have good practices
0:26:49
i think i changed the password
0:27:03
is that api you might want to do this
0:27:05
off screen because um
0:27:08
your security credentials file
0:27:11
um security credential access key will
0:27:13
appear no you won't pay no no it won't
0:27:21
carry on doing this
0:27:26
um is it api gateway
0:27:36
go through transformation
0:27:54
uh the first one yeah
0:27:57
and go to resources
0:28:05
from it it will be somewhere down yeah
0:28:11
uh actually flash can you um
0:28:15
do the password first because
0:28:20
want to be touching the
0:28:23
root user of for these kind of purposes
0:28:31
yeah i think i need to reset my password
0:28:34
because i mean let me try because i've
0:28:39
well you could basically um uh
0:28:42
stop showing this the screen generate uh
0:28:45
as you re set the password
0:28:50
user now as in it's
0:28:54
okay all right let me do that
0:29:00
because the root user should only be
0:29:06
tracking the billing purposes and to
0:29:13
yeah okay make sense
0:29:18
to really fill the rest
0:29:22
yeah i i need to implement some more
0:29:26
security jan story i'll be doing that um
0:29:32
this weekend it just
0:29:36
yeah and i need to really work on my
0:29:38
time management and
0:29:42
your guys help as well to kind of help
0:29:49
running i'll be short in time
0:29:54
yes okay everything can be done after
0:30:01
even the project can be done after the
0:30:03
mvp how about that
0:30:14
how we're doing finish
0:30:15
uh pretty good so let's reset the
0:30:18
password i'll just test it out now
0:30:28
thank you touring fuel filled yeah
0:30:30
that's really really kind of here and i
0:30:34
really appreciate it
0:30:43
yeah all right we're good
0:30:49
okay they want to kick me out
0:30:54
and open and kebab shops so he can get
0:31:00
every day isn't it active
0:31:03
loved kebabs i think they are really
0:31:05
tasty to be honest
0:31:23
username yeah brilliant
0:31:42
now if you go to stages
0:31:51
copy the first url at the top
0:31:55
yeah the first one
0:32:04
website called high socket
0:32:13
i think it's the first one
0:32:15
nicely not this one
0:32:20
live yeah yeah this one
0:32:31
yeah connect okay that's connected which
0:32:34
is looking really good
0:32:40
now check if we can see anything in the
0:32:45
in the dynamodb table
0:33:04
probably checking now right
0:33:06
for the connection
0:33:09
correct so go to your table
0:33:15
i know the item okay um
0:33:19
to the cloud watch
0:33:22
i want to see the if it's given any
0:33:33
one it should okay that's fine
0:33:41
no no don't worry about i was thinking
0:33:44
that if we are actually targeting the
0:33:46
right lambda function but
0:33:54
anyway let's just see cloud watch
0:34:15
let's check if the okay here that is the
0:34:26
and check the time
0:34:34
13th it didn't it didn't do anything
0:34:41
can you go to the blog
0:34:46
is it the correct time because utc
0:34:51
the date has to be
0:34:53
right isn't it but the date is wrong as
0:35:17
but the date is the same
0:35:26
okay since it's been connected to that
0:35:30
one fine um can you
0:35:34
oh no no no no no no
0:35:37
sorry that's i think i'm messed up
0:35:42
go to the sam template
0:35:48
same template in ps4
0:35:58
yeah uh can you possibly zoom in a bit
0:36:00
because i can hardly see
0:36:04
um toy littlefield um
0:36:26
you know where we have got
0:37:04
and can you put on line 66 as well
0:37:23
all right that one's on that one's on
0:37:25
and can you go to the test lambda
0:37:40
copy it and paste it in the
0:37:47
just the word itself
0:37:54
over here we need to change
0:37:57
the function is pointing to in in the
0:38:08
where it says default lambda function
0:38:14
across the right yeah there
0:38:17
we need to put in um
0:38:19
go up a bit please
0:38:37
see the one it says online
0:38:42
we need that function uh replace it with
0:38:46
the default lambda on
0:38:48
a integration thing
0:39:02
we just leave here
0:39:04
yes yes just leave that one
0:39:08
all right and if you go to websocket um
0:39:15
i just want to make sure we have
0:39:20
yeah that looks kind of good to me
0:39:34
they say that our project is too small
0:39:38
for those kind of credits
0:39:44
we need to build up
0:39:49
and prove them wrong no it will have an
0:39:52
impact on millions of lives we need the
0:39:56
we are making a huge difference
0:40:10
to fight for everything right there
0:40:14
yes uh except the last two
0:40:35
welcome to the real
0:40:37
software development industrial world
0:40:49
how did they define science
0:40:57
it's just my way of putting your really
0:41:00
politely to tory i did i don't wanna be
0:41:03
mean or harsh yeah they just
0:41:09
polite version of no
0:41:38
i just want to see
0:41:40
the statement where you are deploying it
0:41:45
as in the command for deploy
0:41:51
uh same deployment
0:41:55
yeah that seems to be all right
0:42:01
what does this say as in what does it
0:42:08
messed up in something
0:42:10
actually you need to fix issues okay
0:42:21
field korea's there
0:42:25
rating countered a terminal failure for
0:42:29
expression stacks stat status
0:42:33
the following resource field to update
0:42:39
rollback succeeding
0:42:43
can you go a little bit up
0:42:48
okay so currently only defaults but okay
0:42:58
response of this sam template
0:43:11
to the root response
0:43:21
you know where we set
0:43:23
default to connect then that needs to be
0:43:26
changed back to default
0:43:33
apparently this was a problem because
0:43:35
currently only this is
0:43:40
do a build and then deploy
0:44:30
we didn't get a t-shirt out for tori
0:44:39
i'll probably have to post him
0:44:44
waiting for change set to be created
0:44:46
there are no changes to deploy
0:44:49
it's like scrambling
0:44:51
did you do a build first
0:45:02
if you did a build because we
0:45:31
i did the build here oh did i do a bill
0:45:40
yeah build succeeded yeah
0:45:43
that's interesting
0:45:58
um and did you change the second
0:46:02
connected default as well or not
0:46:05
i just changed this one
0:46:07
okay yeah that was
0:46:10
the only thing then it should work
0:46:14
did you save the template first
0:46:21
maybe try again it
0:46:41
i think i think we should add background
0:46:53
and then decide on a kind of a
0:46:56
background music and just stop
0:46:59
playing it because it's jam
0:47:02
it keeps the enter and entertaining part
0:47:07
yeah yeah for sure
0:47:19
not tomorrow from sunday you'll see
0:47:24
some background music
0:47:34
okay let's see what this has in store
0:47:45
come on come on show me some lovin
0:47:50
fine already exist okay error no change
0:47:56
okay um just in that way just go to um
0:48:06
that if the root key it has
0:48:22
um update failed right
0:48:35
resources or successful provision
0:48:51
uh robex is seated for the field
0:48:57
do you know one maybe just uh delete the
0:49:00
stack and create it
0:49:12
okay yes yes you can
0:49:17
what are you gonna say
0:49:20
i was gonna send try to
0:49:24
use everything in a terminal but it's
0:49:27
fine you can do this as well
0:49:30
okay i wasn't i wasn't too sure yeah
0:49:44
yeah man i just i don't know
0:49:47
why i've got a thing for doing
0:49:52
as in it's just a lot faster and
0:49:57
you just avoid too many hand hand
0:50:03
it takes everything
0:50:07
it's kind of being a keyboard warrior
0:50:17
more comfortable with it i think
0:50:27
for me if i can do something in a
0:50:30
terminal i try to avoid console
0:50:41
all right do i refresh
0:50:51
they feel you tell them
0:51:01
so it's gone i'll try to
0:51:07
just deploy straight away
0:51:13
it's already enter and
0:51:17
you know the drill
0:51:25
i'm thinking that it might be that my
0:51:28
chrome needs updating
0:51:34
but needs updating
0:52:01
okay says you should get cute jesse on
0:52:09
love to have her on
0:52:12
the show if she's willing as in it would
0:52:15
be a really good experience getting to
0:52:19
and her background and everything
0:52:25
you don't you didn't you do you know who
0:52:29
just someone who comes in
0:52:33
someone who comes probably
0:52:58
too shy oops all right
0:53:02
no problem but i would
0:53:05
when you feel comfortable
0:53:30
yeah okay cool so that is done again
0:53:34
now if you if you want to do that
0:53:57
um is that coming up can you go back to
0:54:03
just want to check
0:54:05
if the that particular route is actually
0:54:08
okay yeah that is if you go to the root
0:54:11
and then the connect root
0:54:16
okay so this is not gonna work if you go
0:54:21
integration request
0:54:25
oh yeah we need to proxy it yeah
0:54:29
and if you take use the
0:54:32
lambda process proxy integration
0:54:35
yeah and click save
0:54:53
oh and do you want to also activate the
0:55:01
so if you go to stages
0:55:19
now if you go back to the roots
0:56:01
they had there was one other step that
0:56:11
what did this say it went
0:56:15
no no no there was one other step
0:56:19
that was needed to be done
0:56:22
hang on i'll check the blog because we
0:56:25
are making the uh updates
0:56:29
after we get things working as well so
0:56:39
we enable them to want to protect those
0:57:10
all right do you want to go back to the
0:57:23
in the code please
0:57:35
yes in the handler
0:57:40
yeah you want to go in the
0:57:42
in the function itself
0:57:58
so at the moment it's not
0:58:02
okay um do you know
0:58:06
i need you to open up a
0:58:08
blog which was done by aws and it's a
0:58:16
because we got this code from there
0:58:21
so aws websocket chat system
0:58:25
whatever that is here
0:58:42
was it this one no it wasn't this one
0:58:47
real check up is this third no no it's
0:58:51
not the third one either
0:58:59
uh create yeah that one
0:59:16
right go down go down
0:59:19
you're looking for an on connect method
0:59:34
um by the way it was the all um
1:00:02
system yeah probably
1:00:18
i think it's the second one
1:00:22
no sorry the first one
1:00:26
you were right first
1:00:34
look for the method on connect
1:00:41
oh here the on connect function yeah
1:00:44
so basically this is
1:00:46
this is what we have done there
1:00:58
i think go up i'm just
1:01:01
trying to put the pieces together
1:01:06
and then the functions
1:01:08
so this one just sends a
1:01:13
oh i think we are missing
1:01:18
yeah because in this one is actually
1:01:20
interrupt interacting with
1:01:22
api gateway as well and we are not
1:01:26
interacting with api gateway
1:01:29
in that in that on
1:01:31
lambda so we would probably
1:01:34
um some code emitted for bravity
1:01:39
yeah i think what we can do is um
1:01:43
combine the connect and this method
1:02:04
let's come back to problems sunday i'm
1:02:16
was it working yesterday soon at all
1:02:21
we have actually changed
1:02:26
what happened here was we
1:02:29
yes today we were pointing at the
1:02:37
and then expecting to
1:02:41
trigger the lambda we would want it to
1:02:44
trigger which is not going to happen
1:02:46
because we are not even trying that to
1:02:52
oh okay okay yeah make sense
1:02:58
um so do you want to do the closing yeah
1:03:04
um cool so thanks for joining us on
1:03:06
another episode of buildbreaking fix
1:03:10
we spent a lot of time setting up my
1:03:14
in obvious environment but we also tried
1:03:19
um the template to cloud formation a
1:03:23
um unfortunately we
1:03:26
we couldn't get it working but
1:03:28
yeah i think um after reading the blog
1:03:31
we've got something of substance that we
1:03:33
can work off and uh
1:03:35
in the upcoming stream so yeah we'll
1:03:37
catch you there and uh hopefully we get
1:03:43
something oh thank
1:03:45
that's a fairly good um
1:03:51
yeah we have this we are kind of one
1:03:56
once i'm closer to get them working but
1:04:00
each yeah i will be spending a bit
1:04:04
on it as in by myself by myself
1:04:07
so yeah hopefully we'll get this working
1:04:11
by sunday fingers crossed and
1:04:14
we'll see you guys back here on sunday
1:04:17
same time same place and
1:04:21
and a different task hopefully
1:04:27
thanks guys have a good night cheers