boarzVideosClipsStatistics

🎬Backup career

⏪
🎦
⏩
Featured in#️⃣EP 040 - Build - Break - Fix
AllClipsEpisodesHas Blog PostZainThaneshKartikTorey
🎬
Krunchmaster Kartik
Build, Break & Fix
ZainboarKartikboar
🎬
Killing it
Special Edition: We don't stop until we get our code working
ZainboarKartikboar
🎬
Schooling in brown countries
Build,Break & Fix // Weekend two hour special
ZainboarKartikboar
🎬
Unprofessional Kartik
Build,Break & Fix // Weekend two hour special
ZainboarKartikboar
🎬
Brain Refresh
Build, Break & Fix // Setting a blog using Hugo and AWS Amplify
ZainboarKartikboar
🎬
Finger driven architecture
Build, Break & Fix // Working out Software design
ZainboarKartikboar
🎬
Fast food driven architecture
Build, Break & Fix // Working out Software design
ZainboarKartikboar
🎬
Can't be ashamed if there's never a first version
Build, Break & Fix
ZainboarKartikboar
🎬
Not a uni student
Build, Break & Fix
ZainboarKartikboar
🎬
Can't work, deploying
30 mins of deployment 😠 || 30 mins of coding 🥲
ZainboarKartikboar
🎬
Two points of contact
Today's Broadcast
ZainboarKartikboar
🎬
CORS exclusive lovin'
Today's Broadcast
ZainboarKartikboar
🎬
Sensible policy
Today's Stream
ZainboarKartikboar
🎬
Shoes in mouth
Today's Stream
ZainboarKartikboar
🎬
The code always wins
Buidl Break Fix
ZainboarKartikboar
🎬
Chicken curry in the brown way
Buidl Break Fix
ZainboarKartikboar
🎬
Finger memory practice
Build Break Fix
ZainboarKartikboar
🎬
See you later Kartik
Build Break Fix
ZainboarKartikboar
🎬
Keep your code looking sexy
Today's Broadcast
ZainboarKartikboar
🎬
Echo chamber Zain
Today's Broadcast
ZainboarKartikboar
🎬
And Kartik never got a job again...
Today's Broadcast
ZainboarKartikboar
🎬
Pilot? What even iz dat kind of fing
Today's Broascast
ZainboarKartikboar
🎬
Fish and Chips
Build - Break - Fix
ZainboarKartikboar
▶️
Backup career
Build - Break - Fix
ZainboarKartikboar
🎬
Professional background? Wat even iz dat?
Today's Broadcast
ZainboarKartikboar
🎬
Private mentorship group
Today's Broadcast
ZainboarKartikboar
🎬
Actually good job advice from Zain
Today's Stream
ZainboarKartikboar
🎬
What a classic!
Today's Stream
ZainboarKartikboar
🎬
Uber driver in training
Today's Stream
ZainboarKartikboar
🎬
Viewer burn
Today's Broadcast
ZainboarKartikboar
🎬
Time for a nap
Today's Broadcast
ZainboarKartikboar
🎬
A sniffer of a line
Today's Broadcast
ZainboarKartikboar
🎬
Slow Zain
Today's Broadcast
ZainboarKartikboar
🎬
No single point of failure
Today's Broadcast
ZainboarKartikboar
🎬
Gambling on bad logic
Today's Broadcast
ZainboarKartikboar
🎬
Estimated Time of New-Careers
Today's Broadcast
ZainboarKartikboar
🎬
Fake Nod
Today's Broadcast
ZainboarKartikboar
🎬
Investing in 'the brand'
NEW SETUP!!
ZainboarKartikboar
🎬
Hitting a brick
NEW SETUP!!
ZainboarKartikboar
🎬
Master of the green screen
NEW SETUP!!
ZainboarKartikboar
🎬
Logiclesstech
NEW SETUP!!
ZainboarKartikboar
🎬
Get him to the greenscreen
Today's Stream
ZainboarKartikboar
🎬
Change the digit to a number
Today's Stream
ZainboarKartikboar
🎬
The benefits of pair programming
Today's Broadcast
ZainboarKartikboar
🎬
Xs, the healthy choice
Today's Stream
ZainboarKartikboar
🎬
Xs vs mother
Today's Stream
ZainboarKartikboar
🎬
The beginning of the end of productivity
Today's Stream
ZainboarKartikboar
🎬
Unprofessional Zain
Today's Stream
ZainboarKartikboar
🎬
Blazing fast
Today's Stream
ZainboarKartikboar
🎬
Premature celebratory dance
Today's Stream
ZainboarKartikboar
🎬
Timeline slippage
Today's Stream
ZainboarKartikboar
🎬
Speed coding
Today's Stream
ZainboarKartikboar
🎬
Sorry I dont know that voice
Today's Broadcast
ZainboarKartikboar
🎬
Definition of done
Today's Broadcast
ZainboarKartikboar
🎬
Amway bites
Today's Broadcast
ZainboarKartikboar
🎬
A cool stream
Today's Broadcast
ZainboarKartikboar
🎬
Spooky Kartik
Today's Broadcast
ZainboarKartikboar
🎬
Water physics 101
Today's Stream
ZainboarKartikboar
🎬
Scrum master Zain
Today's Stream
ZainboarKartikboar
🎬
Zain applying his scrum master skills
Today's Stream
ZainboarKartikboar
🎬
Zain the blunderer
Today's Stream
ZainboarKartikboar
🎬
Healthier than other traditional drinks
Today's Stream
ZainboarKartikboar
🎬
Real headscratcha
Today's Stream
ZainboarKartikboar
🎬
Bracket blues
Today's Stream
ZainboarKartikboar
🎬
If statements are not good practice
Today's Stream
ZainboarKartikboar
🎬
Kappa Quality Code
Today's Stream
ZainboarKartikboar
🎬
Exciting switch statements
Today's Stream
ZainboarKartikboar
🎬
Switched-on hat
Today's Broadcast
ZainboarKartikboar
🎬
Functions, one of the big coding challenges
Today's Broadcast
ZainboarKartikboar
🎬
Break fast
Today's Broadcast
ZainboarKartikboar
🎬
Blood and breath pumping up
Today's Broadcast
ZainboarKartikboar
🎬
Wrong since day 1
Today's Broadcast
ZainboarKartikboar
🎬
Electronic waves
test
ZainboarKartikboar
🎬
RAWR coders
test
ZainboarKartikboar
🎬
Transit in Japawn
test
ZainboarKartikboar
🎬
Xs sponsorship
test
ZainboarKartikboar
🎬
Lame roars
test
ZainboarKartikboar
🎬
Setting up a suppository in Diagon Alley
test
ZainboarKartikboar
🎬
Background Diagon Alley
test
ZainboarKartikboar
🎬
Half speed zain
test
ZainboarKartikboar
🎬
One second penetration
test
ZainboarKartikboar
🎬
Top loading switches
test
ZainboarKartikboar
🎬
Making it rain with CodeBuild
test
ZainboarKartikboar
🎬
What is a sea cable?
Today's Stream
ZainboarKartikboarToreyboar
🎬
If statements are bad practice
Today's Broadcast
ZainboarKartikboar
🎬
Tomato fan
Today's Broadcast
ZainboarKartikboar
🎬
Strong intro
Today's Stream
ZainboarKartikboar
🎬
Impossible URL
Today's Stream
ZainboarKartikboar
🎬
Clever devs
Today's Stream
ZainboarKartikboar
🎬
Always CORS related problems
Today's Stream
ZainboarKartikboar
🎬
CORS headscratcha
Today's Stream
ZainboarKartikboar
🎬
Torres Strait Icelander people
Today's Stream
ZainboarKartikboarThaneshboar
🎬
Icelander or Islander?
Today's Stream
ZainboarKartikboarThaneshboar
🎬
Best Practices
101/200 Episodes
ZainboarThaneshboar
🎬
ROAR coders
105/200
ZainboarThaneshboar
🎬
Diagon Alley? What is that kind of fing?
112/200
ZainboarKartikboar
🎬
C.O.D.I.N.G
113/200
Zainboar
🎬
What's testing
115/200
ZainboarThaneshboar
🎬
CORS coders
115/200
ZainboarThaneshboar
🎬
Complimenting the wrong person
Today's Stream
ZainboarThaneshboar
🎬
Alt+F4 Zain
Today's Stream
ZainboarThaneshboar
🎬
Fixing and failing
Today's Stream
ZainboarThaneshboar
🎬
Brown is always better than white
AWS Websocket + DyanmoDb + Lambda
ZainboarThaneshboar
🎬
Wild street dogs
Today's Stream
ZainboarToreyboar
🎬
The more you know
How to Host Web App Using AWS S3, CloudFront and Route53
ZainboarThaneshboar
🎬
Inactive brain
How To Host Web App In AWS S3 with Custom Domain Using Route 53
ZainboarThaneshboar
🎬
No electricity in Bali
Today's Stream
ZainboarToreyboar
🎬
Francesco
Today's Stream
ZainboarToreyboar
🎬
Indian givers
Compare Hashed Passwords Using Bcryptjs
ZainboarToreyboar
🎬
Cold coffee, cold tea
Today's Stream
ZainboarToreyboar
🎬
Tough questions
Verify Passcode Saving Information to DynamoDB with NodeJs
ZainboarThaneshboar
🎬
Tandoor? Wat even iz dat kind of fing
Today's Stream
ZainboarThaneshboar
🎬
This is why you don't click ops
Today's Stream
ZainboarToreyboar
🎬
Bish Bash Bosh
Get Board Columns from Frontend to Backend NodeJS
ZainboarThaneshboarToreyboar
🎬
Zip first developer
Today's Stream
ZainboarThaneshboar
🎬
Busted again
Today's Stream
Zainboar
🎬
Torey the stinker
Beta Testing Fixes Part 2
ZainboarToreyboar
🎬
Torcoders which are roarers
Beta Testing Fixes Part 3
ZainboarThaneshboar
🎬
Delusional Zain
Beta Testing Fixes Part 3
ZainboarThaneshboar
🎬
Hey guys, torey here
Beta Testing Fixes Part 3
ZainboarThaneshboar
🎬
Zain's going platinum
Today's Stream
ZainboarThaneshboar
🎬
Doggy dog
Today's Stream
ZainboarThaneshboar
🎬
Fartik
How To Test Prevention XSS Attack
ZainboarKartikboar
🎬
Second Favourite
Today's Stream
Zainboar
🎬
Disco Zain
Today's Stream
Zainboar
🎬
Keyboard allergies
Hook Up AWS Websocket
Zainboar
🎬
As you been poopin?
Hook Up Board Columns to Websockets Nodejs + AWS Websockets
Zainboar

Subtitles

0:00:02
[Music]
0:00:24
all right welcome back everyone another
0:00:27
day another episode of the
0:00:29
fix
0:00:30
um as you guys know it's okay and so
0:00:32
we'll be streaming till 11 pm aesthetic
0:00:36
so if you guys are new here we are uh
0:00:38
reporters um that means
0:00:41
developers from help
0:00:45
which um
0:00:46
really is to add persistent storage to
0:00:48
the current open source project calls
0:00:51
here
0:00:52
um cool
0:00:54
so yesterday we worked on
0:00:59
a bit better
0:01:00
um then would you
0:01:03
not mind and kind of
0:01:04
turn off your mic for a second
0:01:06
i can hear the
0:01:10
breathing and background
0:01:11
sorry about that
0:01:13
cool thank you
0:01:15
yeah so yesterday we um
0:01:18
worked on
0:01:20
stuff relating to the back end which
0:01:21
meant that
0:01:22
we made our packet compatible to the
0:01:25
board ids
0:01:27
and all the ids correlating to it
0:01:30
um contrary to our
0:01:32
implementing approach which we were
0:01:34
trying to do it with the names of the
0:01:36
board
0:01:37
um
0:01:38
yeah and we got the um post post board
0:01:42
name to respond with the board id as
0:01:44
well
0:01:44
so today we're gonna
0:01:46
jump to the middleware
0:01:48
sorry about that
0:01:49
um
0:01:50
oh actually we did stuff in the middle
0:01:52
there as well yesterday um
0:01:54
we received the board id in the
0:01:56
middleware
0:01:57
so today we will be working on
0:01:59
appending the board id to the current
0:02:01
controllers and see how they work with
0:02:03
it
0:02:04
cool so how are you feeling to design
0:02:09
that's brilliant thanks for uh the
0:02:14
introduction my both screens have gone
0:02:17
blank so i'm not entirely sure what's
0:02:20
happening
0:02:21
oh give me a moment
0:02:23
um
0:02:25
actually bother the screens have gone
0:02:27
blank and now they're back on cool
0:02:30
all right perfect um
0:02:43
okay perfect
0:02:45
so what we
0:02:46
um
0:02:47
so yes today we experi i don't know if
0:02:50
you can remember or not but we
0:02:52
experienced
0:02:53
cause
0:02:54
error
0:02:56
again and we said that
0:03:00
yeah
0:03:02
good and we said that we
0:03:06
we might just
0:03:07
go ahead and redeploy the api from
0:03:10
scratch which would mean that
0:03:13
um
0:03:13
[Music]
0:03:14
deleting the stack from the cloud
0:03:17
formation and uh
0:03:19
doing it again and then adding chords
0:03:21
manually
0:03:24
but before doing that i would want to
0:03:27
check here one last
0:03:30
time that if you works or not now and
0:03:32
then um if you if you if it magically
0:03:36
doesn't
0:03:37
if if magically works then
0:03:40
we don't need to go
0:03:42
ahead and re-redeploy
0:03:45
anymore yeah how about that
0:03:47
yeah that makes sense
0:03:49
that's cool so so do you want to open
0:03:51
your middleware
0:03:53
because
0:03:55
you would do the test in the middle of
0:03:57
from the front end
0:03:59
and then we can have a look at that
0:04:02
right and i've got my dynamodb opened up
0:04:05
as well
0:04:11
and we already should have done yeah go
0:04:14
for it all right item minus audio
0:04:18
simple
0:04:21
http server
0:04:26
ready
0:04:33
console
0:04:42
[Music]
0:04:43
okay cool we definitely have to redeploy
0:04:46
it right
0:04:47
yeah
0:04:48
cool let's do that then
0:04:51
um i'll just share my screen now and
0:04:55
uh so
0:04:56
yeah
0:04:57
just share
0:04:59
share my screen and
0:05:01
you can take it from there
0:05:03
all righty
0:05:05
cool
0:05:07
uh
0:05:08
dude
0:05:17
okay so this is that
0:05:21
it's gonna make sure everything is on
0:05:23
point before i even try and do that oh
0:05:26
base uh
0:05:28
i think we would have to
0:05:30
deploy twice so first
0:05:33
the api itself and then it would change
0:05:36
the api url so we and the db1 as well so
0:05:40
we need to
0:05:42
change this in the
0:05:44
app.js which in this file
0:05:47
this whole
0:05:48
table and the api
0:05:51
endpoint
0:05:53
now can we just
0:05:55
see
0:05:57
so can we not use the
0:05:59
uh like environment variable
0:06:02
sorry
0:06:03
no like the current
0:06:07
so
0:06:08
um i don't think we can because we're
0:06:11
gonna delete the stack and that will
0:06:13
firstly delete
0:06:15
all the resources that were
0:06:18
created from that stack
0:06:22
so that's right
0:06:24
you'd be no
0:06:26
but like
0:06:27
look at it from like
0:06:30
a general app or um any companies
0:06:33
they don't delete the whole database if
0:06:35
they have to refresh your api like there
0:06:37
must be some way we're just not i guess
0:06:39
we're just not there yet
0:06:40
so okay so this is not the database
0:06:43
itself this is just a table
0:06:47
right yeah yeah yeah yeah
0:06:50
am i missing
0:06:52
what you're trying to tell me
0:06:54
i mean is this the thing right like even
0:06:56
if there's like a big company they won't
0:06:58
lose a table
0:07:00
um just because they have to refresh the
0:07:01
api
0:07:02
so there must be some way to retain it
0:07:04
um i guess but it's fine we don't need
0:07:06
to worry about that
0:07:08
yeah i know where you're coming from and
0:07:11
yeah that approach is the good approach
0:07:14
but i'm not entirely sure how to do that
0:07:17
yeah no it's fine
0:07:19
because at this stage
0:07:21
table as well so
0:07:23
um
0:07:25
of course
0:07:26
i don't think that the cause would apply
0:07:28
to the table as well
0:07:30
but um
0:07:31
yeah i could be wrong here as well i
0:07:34
don't really know
0:07:35
too much
0:07:37
about the cause but yeah let's just
0:07:41
see
0:07:42
um uh
0:07:45
let's just redeploy it i guess um
0:07:50
i'm just thinking that
0:07:58
is there any other way
0:08:02
please stack without
0:08:07
oh hang on so
0:08:10
yeah
0:08:13
would there be a way to just deploy the
0:08:16
api itself and not
0:08:18
the entire stack
0:08:20
i mean you are only deploying the api
0:08:22
only technically
0:08:25
while you're trying andre is asking what
0:08:28
you're trying to do
0:08:30
so
0:08:32
go ahead
0:08:33
sorry andre um we are receiving the
0:08:36
cause error again and um the last time
0:08:39
how we
0:08:41
fixed it was we
0:08:42
redeployed the api and then added cores
0:08:46
manually in the api gateway
0:08:49
and then it just worked
0:08:51
so now we are trying to do this
0:08:54
same thing again but kartik has actually
0:08:58
raised a really good point
0:09:00
that
0:09:01
would there should be a way that if um
0:09:05
we can just
0:09:07
um update the
0:09:11
api itself without
0:09:15
deleting the database table
0:09:19
mri k
0:09:20
yeah is that what you mean right yeah
0:09:22
yeah and we'll have to create a new
0:09:23
table and then
0:09:25
yeah
0:09:26
and we don't really want to do that
0:09:28
because in the real world scenario there
0:09:31
might be a lot of
0:09:33
records as an important layer and
0:09:36
they
0:09:37
wouldn't just
0:09:40
delete the table
0:09:43
and do that
0:09:50
okay you
0:09:52
googling it
0:09:55
yep
0:09:57
[Music]
0:10:04
api while not changing
0:10:12
name
0:10:35
um andre the error which we are getting
0:10:37
is that um
0:10:39
uh what do you call it
0:10:41
um the origin has been blocked by course
0:10:44
policy and response to prefect request
0:10:47
doesn't pass access control check
0:10:52
and
0:10:54
actually i'm gonna just
0:10:56
make sure everything is okay in api
0:11:00
there you go itself
0:11:02
yeah um
0:11:04
yeah this is the error um and
0:11:08
we started facing it when we made
0:11:10
changes to the course stuff
0:11:13
um
0:11:15
so i guess only like we have resolved is
0:11:18
very deploying all this
0:11:22
it says she you don't have okay stairs
0:11:26
well we apparently have okay status in
0:11:30
the api because we've followed um the
0:11:34
aws official video
0:11:40
like there's it's certainly not
0:11:41
something in the code because the code
0:11:43
was working just fine
0:11:45
show request in network
0:11:48
tab he's asking requests
0:12:00
i'm just trying to make this bigger
0:12:10
request
0:12:13
next one is 500
0:12:17
sorry
0:12:19
he's saying next one is
0:12:24
500
0:12:25
in options
0:12:27
second request
0:12:33
stricture
0:12:40
part options part bro i'm just gonna
0:12:44
go and
0:12:45
double check what's in the options
0:12:49
part
0:12:50
yep sure
0:12:58
um okay
0:13:00
i think
0:13:02
you know how we used to do this before
0:13:06
and then we
0:13:07
we enable cause by
0:13:10
making some more changes and then we
0:13:14
we
0:13:15
received the warning there do you want
0:13:18
to override the existing course policy
0:13:20
changing
0:13:22
and
0:13:23
by doing
0:13:24
by doing that we didn't get the ad
0:13:28
200 response status is added as a
0:13:32
checklist yeah let's do that
0:13:36
so
0:13:38
that might be the problem because oh
0:13:40
i did the changes today and that exact
0:13:43
thing appeared and i just said
0:13:46
yes do that
0:13:51
okay so
0:13:53
i guess what i'm
0:13:54
trying to say is that the damage
0:13:58
that we know what might be the problem
0:14:00
has already been done
0:14:04
in what
0:14:05
sense
0:14:06
okay so
0:14:08
you know say for example you have
0:14:10
created a brand new
0:14:12
api okay yeah
0:14:14
and you want to enable
0:14:16
calls on that api
0:14:19
as a first step okay so you know how
0:14:22
those check
0:14:23
check list comes as in um do this on the
0:14:27
post method do this on the options
0:14:30
method and then add
0:14:32
200 status as well
0:14:36
isn't it
0:14:37
yeah yeah
0:14:39
so
0:14:41
when i applied the changes by adding a
0:14:44
localhost and then and then putting it
0:14:47
back
0:14:48
to the original changes
0:14:51
and i said yes override existing
0:14:55
policy
0:14:56
then when it was applying all the
0:14:59
changes in the check list the option
0:15:02
which says add 200 http code that didn't
0:15:06
come up
0:15:07
right
0:15:09
and what you mean um so i guess um
0:15:14
like obviously the last result is to
0:15:16
redeploy but
0:15:17
um a good approach would be
0:15:20
if we can revert the
0:15:22
course
0:15:23
um
0:15:24
policy like if we can delete it somehow
0:15:28
not um even an option
0:15:31
delete resource i'm gonna have to check
0:15:34
that
0:15:34
cream enable course policy
0:15:43
actually won't gonna do any record or
0:15:45
replace
0:15:48
no it's not see how this is coming the
0:15:51
200
0:15:52
isn't coming up anymore
0:15:54
and that happened
0:15:57
is there any way to like delete a course
0:15:59
policy when applied i mean
0:16:01
i know like there is to other
0:16:03
uh resources i'm not sure about apis
0:16:08
articulate of course actually let me
0:16:10
google that how to delete
0:16:14
leads and exist because the problem is
0:16:17
essentially in the course
0:16:19
not not the code or the api or the table
0:16:22
exactly
0:16:24
like logically redeploying these
0:16:25
resources a waste of um yeah just
0:16:28
capacity so great
0:16:31
configuring hardware troubleshooter uh
0:16:36
oh i need to close mine as well
0:16:40
how do i disable course policy or do you
0:16:42
resolve
0:16:44
how do you delete adding
0:16:47
a delete course policy api gateway
0:17:02
i don't troubleshoot because from apa
0:17:05
get away that one
0:17:06
isn't completely okay the resolution
0:17:10
example
0:17:11
uh
0:17:12
plus integration network was possible
0:17:18
that's not the one
0:17:19
check the private dns no
0:17:22
don't need that
0:17:25
computer close performance no
0:17:28
don't need that one either
0:17:36
uh delete reso if i did delete now i
0:17:40
can't delete resource
0:17:43
no that will just delete the resource
0:17:46
um
0:17:47
hang on a minute why might do
0:17:50
you can try to delete method for option
0:17:52
and um
0:17:54
you know what i mean and then enable
0:17:56
cores again
0:17:58
make the options metal appear again
0:18:02
that's
0:18:03
that would be a really wise
0:18:06
choice let's do that
0:18:10
come on may api get away show me
0:18:12
something i mean we can play around
0:18:14
right it's not working yeah of course of
0:18:16
course
0:18:20
okay i'm gonna delete this method
0:18:22
actually
0:18:24
no no i'm not gonna delete this method
0:18:26
now
0:18:27
i'm going to just make sure
0:18:30
that this method has everything we need
0:18:33
200 https i think
0:18:36
my result deleted as well i guess what
0:18:38
do you say then
0:18:40
actually well you're happy right
0:18:44
oh i was about to deliver hours and go
0:18:55
cool
0:18:56
so
0:18:57
now i will do
0:18:59
enable uh
0:19:03
create method first
0:19:07
post
0:19:10
okay and now we can go back to that one
0:19:15
and oh
0:19:16
is the model already done right
0:19:19
should be
0:19:20
done
0:19:23
okay go back to proxy and enable cause
0:19:27
yep
0:19:30
there we go
0:19:34
ah you're right i like
0:19:36
cool so that does come up in that way
0:19:39
hey
0:19:40
there we go oops
0:19:45
uh
0:19:47
do we need this oh yeah
0:19:50
integration
0:19:56
i'm gonna have to
0:19:58
delete that again
0:19:59
yeah
0:20:00
and doing that way
0:20:03
okay so
0:20:04
that's i think a really good solution
0:20:07
that we didn't really have to go through
0:20:10
everything
0:20:12
again
0:20:13
yep
0:20:15
so from the next time we can just delete
0:20:16
the methods and good one man yeah
0:20:20
exactly
0:20:24
um if you can also keep an eye on the
0:20:27
chat um because i'm not able to at the
0:20:30
moment
0:20:31
yeah so that
0:20:33
dad what's that his hair
0:20:35
yay what's happening was that dad
0:20:40
i love his name though honestly
0:20:43
it's a pretty cool one
0:20:45
that's actually a good discord name not
0:20:48
mercury
0:20:49
right right i see
0:20:51
okay so create a method
0:20:55
post and
0:20:58
do that one and then go into post
0:21:05
um
0:21:06
okay
0:21:08
okay okay okay i need to do i need to
0:21:10
get the lambda function now all right
0:21:14
then asking ask us about water today
0:21:19
i think he might trust us now that we
0:21:22
all yeah we would always have water but
0:21:26
andre
0:21:28
that cheers
0:21:30
see you
0:21:36
okay cool
0:21:38
i've never asked you um dad for that um
0:21:41
that what's that do you work in software
0:21:44
dev environment as well or like do you
0:21:46
do software diverse
0:21:49
[Music]
0:22:08
[Music]
0:22:10
um which one was this yeah it's this one
0:22:14
i think yeah tta zzz
0:22:18
cool
0:22:20
um i don't know if you realized that
0:22:24
you know how i've got a bit of a stammer
0:22:27
yeah
0:22:28
i think
0:22:30
the more i'm doing these streams and the
0:22:32
more i'm talking and doing conversations
0:22:35
it's actually improving
0:22:37
that's so good
0:22:38
nice um yeah i guess if this will help
0:22:42
it that's really good um because
0:22:45
it's really helping your improvisation
0:22:46
skills as well
0:22:48
exactly
0:22:49
just to see what's on the screen and
0:22:51
read it like proceed yeah
0:22:54
exactly exactly i couldn't agree more
0:22:57
with that yeah
0:23:00
and like i i kind of know what you mean
0:23:03
even in my interviews for like trying to
0:23:06
apply for internships and stuff
0:23:08
i i really feel the difference um
0:23:11
like
0:23:12
even if i don't know something i know
0:23:14
how to talk now
0:23:16
i see
0:23:17
yeah as in the kind of approach
0:23:21
you would take if you don't know but you
0:23:23
wanna as in
0:23:25
tell them you're keen to learn
0:23:27
yeah exactly yeah
0:23:29
that's
0:23:30
that's brilliant man yeah like
0:23:32
i remember like this one time someone
0:23:35
asked me about if i wrote a typescript
0:23:37
or some stuff like that
0:23:38
no
0:23:39
i just kept on talking about how um
0:23:42
i've been working with like js and stuff
0:23:44
and how it's pretty similar and just
0:23:46
like object oriented js and
0:23:48
then i mentioned this
0:23:51
wow
0:23:52
that's it i have never heard that script
0:23:54
like ever
0:23:56
yeah yeah true
0:23:58
sure
0:23:59
um
0:24:01
can you remember where did we have to
0:24:03
add that
0:24:05
because i i can't remember now
0:24:08
logan post
0:24:09
it was in the post method yeah but i
0:24:12
think it was an inter integration
0:24:14
response but i can't see oh no yeah
0:24:17
anybody's there's an integration request
0:24:19
no i don't know
0:24:21
it was method uh
0:24:23
response is it this one
0:24:25
yeah go ahead and
0:24:28
add headers here
0:24:30
and add all of them i guess allow or
0:24:34
control
0:24:36
yeah origin
0:24:37
cool so that yes
0:24:39
says
0:24:41
i'm not sure you copied it right
0:24:43
uh but i overwrote the copy with
0:24:46
something else
0:24:48
do you want to see the video
0:24:52
actually
0:24:55
that would
0:24:56
take a lot more time than
0:24:58
than this so i'll just
0:25:01
enable closing there yeah
0:25:03
that says that he knows a little bit of
0:25:05
css that's pretty cool
0:25:08
how to implement a linked list and just
0:25:10
nice can you reverse a linked list
0:25:14
that's like the ultimate
0:25:16
yeah
0:25:17
okay
0:25:22
the integration response had a mapping
0:25:24
okay
0:25:25
integration response header mapping
0:25:33
it's a
0:25:34
creation response center mapping
0:25:39
aha
0:25:42
so it's saying they should be in there
0:25:45
but this is appearing as disabled proxy
0:25:48
integration cannot be configured
0:25:51
to transform responses
0:25:55
hang on a minute what's this doing here
0:26:02
caching
0:26:03
um
0:26:04
http
0:26:06
no don't need that no don't need any of
0:26:10
these
0:26:12
he can't
0:26:15
come on
0:26:16
i mean even like people who have
0:26:19
were computer science graduates even
0:26:21
they probably some of them can't so
0:26:25
if you even know like implementation of
0:26:27
linked list that's pretty good
0:26:29
and i'm gonna try and do
0:26:32
yes
0:26:33
sorry about that i i should just
0:26:36
keep keep quiet because um
0:26:39
that was then you guys are talking so
0:26:42
continue yeah
0:26:46
no no
0:26:48
no i didn't
0:26:49
i mean like you're one of the regular
0:26:51
viewers now so
0:26:53
you pass the interview right there
0:26:57
absolutely
0:27:00
method and controls
0:27:06
cool
0:27:06
so that's done i
0:27:09
i'm gonna just
0:27:11
deploy the api now and hopefully it
0:27:14
should work
0:27:15
did you get the options method can you
0:27:16
shoot that yes
0:27:17
yes it's
0:27:18
there
0:27:20
right yeah that makes sense
0:27:23
cool pride there we go
0:27:28
[Music]
0:27:31
okay if you wanna
0:27:32
[Music]
0:27:33
yeah give that a quick squeeze
0:27:36
ready
0:27:38
maybe you can talk to them that that
0:27:40
would start to live
0:27:47
vocals um
0:27:49
how did you
0:27:50
fulfill their
0:27:52
bro code is
0:27:54
into
0:27:55
you did pretty good
0:27:57
i asked him if he converts a link list
0:28:07
oh okay
0:28:10
well um you haven't really
0:28:13
failed it because
0:28:14
everyone code is if you have a will to
0:28:17
learn which i'm sure you do
0:28:21
we really value that so con
0:28:23
congratulations
0:28:24
don't worry about failing this note such
0:28:28
term is failing in raw coders
0:28:34
we always learn
0:28:37
huh
0:28:38
all right
0:28:40
doesn't seem too good
0:28:44
have you
0:28:45
cleared the cash out
0:28:48
oh boy
0:28:50
[Music]
0:28:54
there's a reason why
0:28:55
i said that already hesitated voice
0:29:04
[Music]
0:29:06
what the
0:29:06
what is this
0:29:08
okay
0:29:10
i really what
0:29:14
i don't know how it's using the old
0:29:16
board
0:29:24
that does not make sense
0:29:28
it's fine um i think i need to clear
0:29:30
safari's cache as well
0:29:33
yeah do that
0:29:36
yeah
0:29:37
that's right there was that um
0:29:41
yeah just keep on doing what you're
0:29:43
doing doing mate
0:29:46
shooting pretty good
0:29:50
so how long have you been as in
0:29:53
learning css
0:29:56
and
0:29:58
js
0:30:04
come on safari show me some loving there
0:30:08
no
0:30:09
no
0:30:11
you probably wanna
0:30:12
uh
0:30:14
i don't know why it's just directly
0:30:16
opening the oh here we go
0:30:18
yeah
0:30:19
on the whole thing is we can't see the
0:30:22
thing
0:30:23
um
0:30:27
there must be somewhere we can
0:30:30
oh let me see safari have a console
0:30:36
guess
0:30:37
if it's
0:30:38
the worst
0:30:45
so preferences
0:30:49
um there was that i'm not really good at
0:30:52
the
0:30:53
intellect slang acronym so you might
0:30:57
want to explain me what's
0:30:59
swe
0:31:03
what's the slang again sorry
0:31:05
s w e
0:31:08
as in it
0:31:09
seems kind of a
0:31:11
acronym of
0:31:12
something because then
0:31:14
it's an all uppercase
0:31:17
swee take over
0:31:20
for some
0:31:23
all right
0:31:30
and advance your football
0:31:33
reading list just looking at how to get
0:31:35
it
0:31:37
uh go to
0:31:38
safari
0:31:40
preferences
0:31:42
did you do that
0:31:44
yeah one second um
0:31:48
preferences advanced
0:31:50
all right
0:31:55
all right
0:31:57
and now go to dev menu
0:32:03
uh i saw your mail id with four digits
0:32:09
gmail.com and now i'm going to create a
0:32:12
script to send you scam
0:32:16
so we're gonna be scammed um spam
0:32:20
scammed
0:32:22
by
0:32:23
that for that as well
0:32:25
i mean you can pretty much write a good
0:32:27
script for that yeah yeah
0:32:30
then that's
0:32:32
what he said that he's gonna create a
0:32:36
script to send you s scam mails
0:32:41
looking forward to that
0:32:43
yeah
0:32:45
all right
0:32:50
interesting
0:32:52
no it doesn't work then
0:33:00
[Music]
0:33:08
region has been blocked but
0:33:11
[Music]
0:33:12
so it does not have enough hdp stairs
0:33:17
very interesting
0:33:19
huh okay
0:33:21
um so seems like that didn't that
0:33:25
approach didn't work at all
0:33:28
yes uh what if we delete the resource
0:33:33
on
0:33:33
[Music]
0:33:36
this one you mean
0:33:39
oh it's already confused
0:33:43
so
0:33:45
this whole thing
0:33:46
you're saying we shouldn't delete it
0:33:48
no if you
0:33:51
right click on
0:33:53
oh yeah actually right click on it on go
0:33:55
on action sorry
0:33:57
sorry my bad
0:34:00
so if we delete the whole resource then
0:34:02
what's gonna happen
0:34:04
like what does it mean do you have any
0:34:05
idea
0:34:07
it means that the whole resource will
0:34:08
get deleted and we
0:34:10
won't have
0:34:12
the proxy endpoint
0:34:14
okay then how about we do that to post
0:34:17
our options
0:34:19
what's the difference between deleting
0:34:21
the resource and deleting the whole api
0:34:24
so
0:34:25
this is the whole
0:34:27
api and this is the resource
0:34:30
so if we delete the
0:34:33
api as in everything is gone but if you
0:34:35
just
0:34:36
delete the resource i think api would
0:34:39
still be there but the and this end
0:34:41
point will just
0:34:43
not be there
0:34:45
do you not try doing that uh to like
0:34:47
options or post
0:34:50
so
0:34:51
just in
0:34:53
delete the the methods then
0:34:57
these are the methods yeah let's try
0:34:59
doing the resource only
0:35:03
this one
0:35:05
on options like would it make a
0:35:06
difference if we do it on options
0:35:09
okay so
0:35:11
this is the api itself
0:35:13
this is the resource and these are the
0:35:15
options
0:35:17
um these are the methods
0:35:19
so if you said delete the resource i
0:35:22
would understand that you want
0:35:24
me to delete this yeah just go on
0:35:27
actions now if on options click on
0:35:29
options first
0:35:31
okay
0:35:32
and
0:35:33
if we go on options now do we get
0:35:35
deleted resource still
0:35:42
yeah
0:35:43
because that act that method is actually
0:35:46
attached to the resource
0:35:48
let's try clicking on the little thing
0:35:53
this little there under this okay cool
0:35:56
let's do that
0:35:59
cool there we go
0:36:05
if we do
0:36:07
create a resource now resource
0:36:10
name um
0:36:13
[Music]
0:36:14
hang on a minute now
0:36:16
i need to go back in my sam template
0:36:20
uh
0:36:22
huh
0:36:23
there you go on line 31
0:36:27
this is the part this is not the name
0:36:30
all right
0:36:33
actually i'll give them both the same
0:36:37
thing
0:36:45
ah okay cool that's fine
0:36:48
because what happens is if you give it
0:36:50
back it will probably
0:36:52
live this by itself
0:36:54
is it
0:36:57
yeah
0:36:58
um except the resource part already has
0:37:01
a forward slash
0:37:04
so we should own it with
0:37:06
this yeah
0:37:10
enable api
0:37:12
ah aha
0:37:13
enable api gateway cause yes
0:37:18
configure proxy
0:37:20
resource i don't really know what this
0:37:22
means but
0:37:23
let's
0:37:24
leave that out
0:37:30
okay so we already have the options
0:37:33
method here
0:37:34
right now we want to create
0:37:37
the post method
0:37:43
like the god is in there is it
0:37:47
the code what code
0:37:50
like i didn't care what you mean
0:37:54
um
0:37:56
yes andre we did try calling the end
0:37:58
point
0:37:59
um and it was trying the same error
0:38:04
okay now go there
0:38:06
i'm gonna go and get my lambda
0:38:10
oh now i know what he means so dad
0:38:12
what's that says he's already a software
0:38:14
engineer
0:38:15
he's just messing with us oh
0:38:20
i like his humor
0:38:22
[Music]
0:38:25
um andre says that is if the response
0:38:28
was 5xx
0:38:30
there's a problem with your code have
0:38:32
you looked at cloud watch logs
0:38:39
uh
0:38:40
not really but that's a very good point
0:38:44
he highlighted i'm gonna do that as well
0:38:47
but
0:38:49
let me just do this
0:38:54
and
0:39:02
come on come on post post post
0:39:06
show me some loving api get way come on
0:39:10
you know you love us
0:39:12
we see you every day
0:39:16
there we go it listens
0:39:21
we were disclosed about making the
0:39:23
stream pg-13
0:39:24
[Laughter]
0:39:31
that's so true
0:39:36
i'm curious that you work in melbourne
0:39:38
or like
0:39:40
do you work
0:39:41
in australia
0:39:42
[Music]
0:39:45
now
0:39:46
cross
0:39:51
keep on forgetting the spa
0:39:58
of course also we might want to look at
0:40:00
cloud watch log after this yes yeah yeah
0:40:03
we will
0:40:06
that won't work because i don't see any
0:40:08
200th thing there
0:40:13
control allow origin
0:40:27
yay
0:40:28
is listening to us it's being a
0:40:30
good boy now
0:40:35
nice
0:40:40
all right cool so
0:40:42
let's do this
0:40:50
no
0:40:52
all right
0:40:53
that's just um
0:40:55
right
0:40:56
uh try that but
0:40:59
yeah try that in the meanwhile i'll open
0:41:01
up
0:41:02
cloud watch
0:41:04
let's try
0:41:08
yeah
0:41:09
we just
0:41:10
want to check the error
0:41:13
same
0:41:15
of course i'll go to cloud watch
0:41:18
and see what's happening over there
0:41:21
alrighty
0:41:27
ah come on
0:41:34
it's going to be monday already
0:41:36
trust me mate
0:41:38
when you come in the
0:41:40
workforce you will not realize how fast
0:41:45
monday comes and friday goes
0:41:48
yeah
0:41:51
all right logs are i'm becoming hungry a
0:41:54
bit as well now i've got my hsp that's
0:41:57
way for me
0:42:09
oh i miss him i said
0:42:12
he's been busy
0:42:14
yeah yeah i talked to i texted him like
0:42:17
dude
0:42:17
[Music]
0:42:22
all right what do we get
0:42:26
let's check
0:42:28
come on lambda you know you love us
0:42:32
actually i was actually thinking what if
0:42:34
we try doing a post with postmen would
0:42:37
it work
0:42:40
it would work because postman doesn't
0:42:43
touch the middleware
0:42:46
already
0:42:47
[Music]
0:42:48
yeah
0:42:49
so
0:42:50
postman will only be handy if you only
0:42:53
want to test the
0:42:54
backhand
0:42:55
[Music]
0:42:57
okay so it doesn't show any error so one
0:43:00
can actually do is
0:43:04
delete these again
0:43:07
all right
0:43:15
delete method
0:43:19
oh man i really
0:43:22
i need a haircut badly
0:43:24
yeah me too
0:43:27
i'm gonna ask my partner to cut it
0:43:29
tonight oh okay
0:43:34
no
0:43:35
it's gonna
0:43:37
[Music]
0:43:39
um andre says there's no error why would
0:43:41
you delete and recreate it so
0:43:44
we are not um
0:43:45
so andre when we are enabling course
0:43:48
there is a particular
0:43:50
um
0:43:52
check check which we are looking for
0:43:53
which is like
0:43:55
200 okay check
0:43:57
which is not coming in
0:43:59
and
0:44:00
essentially that only comes in when we
0:44:02
delete and
0:44:04
make the methods again
0:44:08
do you think there's any uh better
0:44:10
approach to do it um
0:44:13
like the whole point of this exercise is
0:44:15
that
0:44:16
we don't wanna like redeploy like
0:44:18
because
0:44:19
the core is all right like
0:44:22
it's something with the course and it
0:44:23
should be resolved in aws and even if we
0:44:26
have to redeploy we shouldn't be
0:44:27
creating new tables every time
0:44:29
yeah
0:44:30
sure
0:44:39
i mean uh like obviously we're gonna
0:44:41
really deploy but
0:44:42
by redeploying we i mean like we don't
0:44:45
we don't want to create new stacks every
0:44:46
time
0:44:47
we have to enable
0:44:48
course
0:44:50
is there any like way around it
0:44:58
so i'm going to create a new method
0:45:02
create method
0:45:06
called
0:45:07
post
0:45:11
call
0:45:20
and then basically what i'm gonna do why
0:45:22
does this say
0:45:25
oh um i think i might know the reason
0:45:30
[Music]
0:45:32
huh
0:45:34
please enlighten us
0:45:36
just bear with me i just want to make
0:45:38
sure if that
0:45:40
is what i'm thinking is
0:45:48
come on api get away come on mate come
0:45:51
on i'll buy you fish and chips yeah i
0:45:54
listened
0:45:56
when you asked me to buy american fish
0:45:58
and chips
0:46:00
[Music]
0:46:06
[Music]
0:46:08
okay in this way how about um
0:46:11
if we
0:46:12
get the cause arrow
0:46:15
working i'll
0:46:16
just both fish and chips all right let's
0:46:19
just redeploy and get it get disordered
0:46:25
yeah sure
0:46:26
ah there we go
0:46:35
where is the best fish in chip shop
0:46:38
no
0:46:40
no
0:46:43
[Music]
0:46:54
never heard of it really
0:46:56
trust me it's the best
0:46:59
one that i've had so far as in
0:47:02
i'm a huge fan of fish and chips
0:47:07
okay so crystal
0:47:10
um
0:47:11
i've never had fish
0:47:13
you're missing out man you're missing
0:47:15
out so there's a reason i don't um
0:47:19
back back in my home i used to have an
0:47:21
aquarium
0:47:22
so
0:47:24
yeah we had like a lot of fish like 15
0:47:26
20 fishes
0:47:28
and
0:47:28
you know like when you have like a
0:47:30
particular pet you wouldn't just feel
0:47:32
like eating it
0:47:34
all right i say yeah that's a valid
0:47:37
point
0:47:38
to be honest
0:47:39
that's that i would respect that
0:47:42
yes that's why i've never had fish
0:47:45
okay so
0:47:46
this is for andre um the error that
0:47:50
we're seeing in the course i think is
0:47:53
coming because of this part that is not
0:47:56
yeah api isn't sending the 200 method
0:48:01
response
0:48:03
that's why
0:48:04
and every time
0:48:06
why do we
0:48:07
delete and
0:48:09
create these methods again is just to
0:48:14
make this option appear
0:48:18
so i'm gonna go ahead and see if this
0:48:21
works
0:48:23
please do
0:48:25
please do
0:48:27
boom all right
0:48:29
so this is done and now what we need to
0:48:33
do is
0:48:34
option com
0:48:37
i'm just gonna wait for options to
0:48:38
arrive
0:48:41
right just give me one second then i'll
0:48:42
call
0:48:53
all right so the option hasn't arrived
0:48:56
that's a bit weird
0:49:12
uh okay option has actually arrived so
0:49:15
i'm not really gonna care about that
0:49:17
i'll just
0:49:18
apply
0:49:26
i'll just deploy the api and see how
0:49:29
this goes
0:49:35
okay the api has been deployed
0:49:37
cool
0:49:38
let's check it out if our
0:49:42
thing works and for that i'll have to
0:49:45
go into my other project which is in
0:49:48
which k was
0:49:50
so i'll just do that and
0:49:59
okay and then open that up
0:50:29
okay cool so
0:50:31
now the front the middleware is up
0:50:35
i
0:50:36
will
0:50:38
um do a get paul to get the latest
0:50:43
version
0:50:45
and hopefully is already on the
0:50:47
latest version perfect and now do
0:50:50
start this in the
0:50:52
local server
0:50:55
simple h
0:50:57
ttp
0:50:59
server core
0:51:03
oh
0:51:04
you
0:51:05
won't do it because i need to
0:51:07
open it through another folder there we
0:51:10
go
0:51:16
and
0:51:18
[Music]
0:51:21
let's go ahead and open that one
0:51:29
sorry about that
0:51:31
that's all right i had to
0:51:33
take a small call it was important from
0:51:35
my north day friend
0:51:38
there was an assignment
0:51:41
oh
0:51:42
right right i see
0:51:45
oh sorry yeah i can hear you
0:51:48
all right cool so i'm just gonna test
0:51:52
this one and see how we go over here
0:51:55
yep
0:51:57
what what happened in the meantime well
0:52:00
um i just
0:52:02
deployed the api that's already
0:52:04
oh yeah
0:52:06
what's what then uh can you keep an eye
0:52:09
on the chat because uh
0:52:12
i was just gonna reply but i didn't want
0:52:13
to interrupt you okay cool
0:52:16
cool so
0:52:18
what's for dinner um
0:52:20
i'm having
0:52:22
uh lentil soup with rice
0:52:28
i guess zen is having hsp as you
0:52:30
mentioned and yes that was that i'm a
0:52:34
student i studied computer science
0:52:37
and zen is uh soft to death
0:52:40
uh in melbourne
0:52:42
as well
0:52:43
so yeah what do you have for dinner
0:52:45
laundry
0:52:48
i mean i know you have dinner like
0:52:50
really early times so what did you
0:52:52
already have what's it
0:52:59
yes oh yeah that's true zen is a tech
0:53:01
lead
0:53:02
he's not a software dev
0:53:06
i
0:53:06
did it
0:53:07
so let's do that one
0:53:10
and
0:53:12
okay
0:53:13
let's see if that comes up
0:53:16
yeah
0:53:17
which one did we post i think it was z14
0:53:21
nope yeah all right cool
0:53:23
so cause there is still pairing
0:53:26
apparently right
0:53:30
um i did redeploy and
0:53:34
um you went to this screen
0:53:42
i'm just thinking that
0:53:45
oh hang on a minute i better do in this
0:53:48
way
0:53:51
i think i need to
0:53:53
comment out all the parts that we know
0:53:56
using to actually see the
0:53:59
yeah yeah
0:54:02
thing
0:54:04
um i just tested it again it's still
0:54:06
showing the quarter
0:54:08
okay um in that case
0:54:14
actually i'm gonna minute i really don't
0:54:17
wanna keep on re deploying
0:54:21
[Music]
0:54:22
them uh
0:54:27
well what
0:54:28
does it exactly say
0:54:31
can you tell me
0:54:32
yeah um
0:54:34
so
0:54:35
it means that
0:54:37
fetch when it was accessing the fetch
0:54:39
function
0:54:41
are you seeing my screen what do you
0:54:42
want me to show you
0:54:43
i'm not seeing your screen but now i
0:54:46
will okay cool
0:54:49
right so it just basically says that at
0:54:52
the fetch function
0:54:54
um
0:54:55
from the origin of
0:54:56
um
0:54:57
our local host
0:54:59
um it's been blocked by course like
0:55:02
this origin can't access the local host
0:55:04
um response to please preflight um
0:55:08
request doesn't pass access control
0:55:10
checklist
0:55:12
which means all the three headers i
0:55:13
believe
0:55:14
it does not have http okay status
0:55:17
and the post method
0:55:19
as a net error field
0:55:23
andres saying ignore the course for now
0:55:28
but we won't be able to test how can we
0:55:31
yeah
0:55:32
our leaked stuff
0:55:34
fixed the response is not defined
0:55:40
right okay so you're saying first the
0:55:43
response is
0:55:44
not defined
0:55:46
i think is
0:55:47
this one is causing the issue as well
0:55:51
that you mentioned
0:55:53
what i'm heading down
0:55:56
this one is
0:55:59
a seeing my screen oh no no i am
0:56:02
if you see the
0:56:04
response is
0:56:06
not defined it's definitely coming from
0:56:09
this one i'm pretty sure if you go back
0:56:11
to your thing
0:56:13
or you can delete and recreate the stack
0:56:15
again my work this time so we wanted to
0:56:18
do that before but we are very
0:56:22
re
0:56:25
reframing oh
0:56:27
what was that
0:56:28
work mean that's refraining from it yeah
0:56:32
yeah
0:56:33
um
0:56:34
yeah i guess so
0:56:35
that's actually the first solution which
0:56:37
we have always done and like we know how
0:56:39
to resolve it but yeah that's probably
0:56:41
not the ideal way
0:56:43
because
0:56:45
i'm not sure how it works but
0:56:47
we shouldn't be recreating stacks just
0:56:50
to resolve course right like
0:56:55
um
0:57:01
okay so now all i'm gonna do is
0:57:05
go to my
0:57:07
thing i'm just gonna check one more
0:57:09
thing
0:57:10
[Music]
0:57:12
in the api itself
0:57:16
so this doesn't it
0:57:20
proxy
0:57:22
yeah
0:57:23
that's fine any
0:57:28
i'm just gonna make sure that
0:57:32
the headers they was talking about are
0:57:34
there
0:57:36
yeah
0:57:37
yeah
0:57:38
oh hang on a minute
0:57:41
this doesn't have anything in there
0:57:45
should he have anything
0:57:48
any
0:57:49
hasn't go anything there
0:57:52
it should already come automatically
0:57:54
when you uh apply the course policy you
0:57:56
don't need to
0:57:58
add it
0:57:59
that's on the post method isn't it
0:58:03
only
0:58:05
isn't that on the options method oh wait
0:58:07
which method are we talking about
0:58:10
i was talking about the actions math
0:58:13
any method because
0:58:15
this part is isn't in
0:58:18
any method i think this might be why is
0:58:22
taking it can you go into the um
0:58:27
network tab again
0:58:29
yeah
0:58:32
i
0:58:33
don't think so it's coming from
0:58:35
any but um so there are two
0:58:39
um which one is the latest one
0:58:44
you can check the time
0:58:48
so it's coming from options
0:58:52
yeah
0:58:53
right so we need to check in the options
0:58:56
method
0:58:57
what do we have there
0:59:03
let's give it like five more minutes and
0:59:05
let's recreate stacks
0:59:08
that's exactly what i was thinking as
0:59:10
well
0:59:11
okay it's not there we don't need that
0:59:15
this is there 200
0:59:18
yeah
0:59:19
origin codes and everything yeah so this
0:59:22
that are located automatically when you
0:59:24
enable course
0:59:29
header mapping
0:59:43
yeah that might be a really good
0:59:45
question to ask them
0:59:47
[Music]
0:59:54
lambda proxy
0:59:56
yeah this is our lambda which is fine
1:00:05
method request post
1:00:10
proxy
1:00:22
all right i
1:00:24
am not entirely sure
1:00:27
where are we
1:00:28
going wrong now
1:00:30
um
1:00:31
um
1:00:32
let's see the boys then i guess um
1:00:38
i'm thinking so as well because days i
1:00:41
will say the quickest way now
1:00:45
yeah um what i'll do is i'll ask this
1:00:48
question on stack overflow
1:00:50
obviously you're not leaving this um
1:00:53
yeah
1:00:54
of course no yeah when
1:00:58
we kind of need a more solidified
1:01:01
solution
1:01:02
for this
1:01:03
as in i don't really
1:01:05
want to keep coming back
1:01:07
to
1:01:08
this part as in every now and again
1:01:11
yeah
1:01:12
that's just a waste of time
1:01:16
all right i'm gonna delete this
1:01:18
stack
1:01:21
delete the stack
1:01:31
right um
1:01:33
come on go go
1:01:51
i'll just fill my water bottle one
1:01:53
second
1:01:54
cool
1:01:55
i think you've already had
1:01:58
dinners in it
1:02:01
that's kind of like a snack do you know
1:02:03
what a burak is
1:02:07
barack from victoria market
1:02:10
yeah yeah exactly yeah yeah
1:02:13
have you had it
1:02:14
i like that
1:02:15
yeah i love those
1:02:18
dudes so good
1:02:19
yeah
1:02:20
and it's really affordable prices as
1:02:23
well yeah
1:02:25
and like the best part is like you just
1:02:26
go there and grab it there's like yeah
1:02:32
oh okay i'm gonna
1:02:34
go okay
1:02:36
so now what i'm gonna have to do is
1:02:39
just
1:02:40
redeploy it
1:02:42
yeah i'll get some water yeah
1:02:55
uh which one was this scrambler
1:02:58
app
1:02:59
there we go and then time build
1:03:04
do that one
1:03:06
just
1:03:07
building the same template now see how
1:03:10
that goes
1:03:14
and i kind of have to delete this file
1:03:16
because i don't know why that was there
1:03:18
in the first place
1:03:48
okay so we will deploy this
1:03:52
by a guided
1:03:54
deployment
1:03:56
so
1:03:59
minus
1:04:00
b it means a guided
1:04:03
so i'll just do that
1:04:05
so yeah in that one
1:04:08
yes yes
1:04:10
yes
1:04:11
yes
1:04:16
that is fine
1:04:34
all right
1:04:37
hopefully that will be done really soon
1:04:40
all right i'm back for the chainsaw
1:04:44
oh
1:04:50
how'd you go
1:05:01
it's just creating the
1:05:04
thing
1:05:06
yeah
1:05:07
good
1:05:09
what plans do you have for monday then
1:05:12
monday i've got a um
1:05:17
of course i
1:05:20
i've gone so early in the morning i'm
1:05:23
going to do some meditation
1:05:26
listen to an audio and then read a book
1:05:30
and then start work
1:05:32
and then after that i've called a
1:05:35
meeting
1:05:37
after work and
1:05:39
then i
1:05:41
will be
1:05:44
as in coming online review uh but
1:05:48
before that i'm going to do my workout
1:05:51
and yeah
1:05:52
yes but to be honest so far
1:05:55
how about yourself
1:05:56
perfect
1:05:58
sunday monday to me
1:06:01
yeah man
1:06:03
we have to make
1:06:05
the most of every single day
1:06:07
yeah for sure
1:06:10
uh
1:06:12
so i'm gonna
1:06:14
go i think we might need to
1:06:17
deploy the
1:06:19
app um the sam again
1:06:22
because the functions have already
1:06:25
obviously changed
1:06:27
yes and the table name as well
1:06:30
yeah
1:06:37
so recently like there's a thing which
1:06:39
has been happening with me so i'm not
1:06:41
sleeping at night i sleep during the day
1:06:43
now
1:06:44
so
1:06:45
wow okay yeah it's it's just because of
1:06:47
logan right so here's the deal like
1:06:50
even if i slip sleeve at like 6 p.m
1:06:52
i'll just wake up automatically at like
1:06:54
9 15.
1:06:58
even if i don't set an alarm yeah it
1:07:00
happened like to me like three four
1:07:02
times like i just slept abruptly
1:07:04
and then i was wake up i woke up i'm
1:07:06
like oh my god like
1:07:09
i i do have to stream and i just woke up
1:07:12
wow
1:07:12
wow as in
1:07:14
see how your
1:07:16
body is actually becoming used to that
1:07:19
stream time now
1:07:21
yeah unconsciously
1:07:23
yeah so it's like in my body alarm clock
1:07:25
that i just wake up automatically or
1:07:28
online
1:07:29
yeah yeah true true
1:07:32
ah
1:07:33
that's really good man as in
1:07:37
your body
1:07:38
clock has adapted this stream timing now
1:07:43
i wish i was able to sleep at night
1:07:46
that you're exactly that what that say
1:07:48
that
1:07:49
where in the world softer death sleep in
1:07:51
the night
1:07:53
yeah true
1:07:57
okay so i'm just gonna do all the things
1:08:02
that we need to do here
1:08:07
create a model
1:08:09
empty model
1:08:11
empty
1:08:13
content type that
1:08:16
application.json and then
1:08:19
one
1:08:20
we should be looking forward to bringing
1:08:22
someone this week as well
1:08:24
yes
1:08:27
let's spread our hands out from that
1:08:31
we need to do that as well yeah you're
1:08:33
right
1:08:35
i think i might already have someone in
1:08:37
mind but i'm not going to be hardly sure
1:08:39
at the moment
1:08:40
right yeah we can try it give it a go
1:08:44
i'm actually really like one of my uni
1:08:46
professors so
1:08:48
ah okay cool vincent
1:08:51
that'd be great though
1:08:53
if they can come along yeah we'll get a
1:08:55
lot of university
1:09:04
okay so
1:09:07
now we need to
1:09:08
i can just grab the lambda from here
1:09:12
it should be fine and i need to give you
1:09:15
the new url as well
1:09:18
just that in mind
1:09:36
right so this is
1:09:39
so what i've just done is i have
1:09:43
assigned the post method to use the
1:09:47
lambda function that
1:09:50
sam has just created
1:09:52
you'll assign yeah that makes sense yeah
1:09:56
okay and now let's go and enable calls
1:09:59
and see what happens now
1:10:04
did i do that
1:10:08
yeah
1:10:10
portals appearing
1:10:11
yep call
1:10:13
that one
1:10:15
yeah lego
1:10:17
there we go
1:10:24
cool
1:10:25
and now i'm gonna deploy it
1:10:29
yeah
1:10:30
that's pretty good
1:10:34
let me know when you're done i'll share
1:10:35
my screen
1:10:36
cool and i need to give you the api
1:10:40
url first
1:10:41
yeah that's
1:10:42
true um
1:10:45
i'll miss the 54b1
1:10:46
[Music]
1:10:52
there you go
1:10:53
all right
1:10:55
i'm going back are you from
1:11:00
attack um
1:11:03
okay
1:11:04
that was that is asking that are you
1:11:06
from
1:11:08
kern attacker
1:11:10
no i'm not from karnataka um oh
1:11:14
karnataka all right
1:11:16
i did pronounce it really weirdly to be
1:11:18
honest
1:11:22
karnataka all right cool
1:11:24
um change to end point
1:11:28
right right right
1:11:31
can you share your screen
1:11:33
yeah
1:11:34
oh hang on i'm gonna hang on don't do it
1:11:36
at the moment because it won't work um i
1:11:39
still have to
1:11:41
deploy that
1:11:43
build
1:11:44
um
1:11:46
update
1:11:47
table
1:11:48
yeah
1:11:52
i think with that there was that is in
1:11:54
india
1:11:55
i think so
1:11:57
like yeah that's a particular state
1:12:00
yeah he's just like blues and stuff
1:12:10
i really don't like how he's playing
1:12:12
mysterious game
1:12:14
yeah
1:12:16
why do you think so i'm from karnataka
1:12:18
though
1:12:19
oh
1:12:21
there we go
1:12:22
we've got a real mysterious
1:12:26
game from both sides going now
1:12:30
yeah
1:12:32
for all you know i'm not from i'm not
1:12:34
even from india you might not even know
1:12:38
exactly
1:12:43
right
1:12:44
deploy that
1:12:55
come on sam deploy come on man put some
1:12:59
fuel in yourself
1:13:00
there we go it did
1:13:13
i'm really interested
1:13:15
to hear what that for that is all about
1:13:19
because youtube playing this in serious
1:13:23
game and and i'm reading
1:13:26
finding it
1:13:28
intriguing at the moment
1:13:30
so he says um i don't know i guessed it
1:13:32
by your accent
1:13:34
okay yeah that's fair enough yeah
1:13:36
fair enough yeah you got me there ah
1:13:38
okay
1:13:39
all right cole you're right but
1:13:44
he doesn't love one
1:13:46
yeah
1:13:52
uh
1:13:53
all right so do you want to go ahead and
1:13:56
hang on
1:13:57
and not yet it's been too early
1:14:02
i need to be
1:14:04
how would you find us though like they
1:14:06
were just looking around on twitch
1:14:15
i think he doesn't like who gets good
1:14:21
i could tell
1:14:23
i am tapping oh my god vs code
1:14:35
which id to use
1:14:37
that was that
1:14:42
okay um
1:14:44
do you want to have a go now
1:14:49
i really hope this works now
1:14:54
bim
1:14:57
yeah he uses
1:14:59
oh bim right
1:15:02
so he's
1:15:03
the next person
1:15:05
yeah yeah i saw this meme um yeah like
1:15:10
people should name their gym whim so
1:15:12
that people can't exist
1:15:14
ah right right yeah
1:15:18
no this is this is just no no i am
1:15:22
i'm actually changing my career now i've
1:15:25
had enough of software development
1:15:27
i need to change my career
1:15:32
i'll be an accountant from
1:15:39
okay so it says post um just expand that
1:15:47
you're gonna find no chord
1:15:57
can we
1:15:59
let's try commenting responsible status
1:16:01
for now
1:16:06
uh andre says can always
1:16:10
drive an uber
1:16:13
actually
1:16:14
i might do to be honest
1:16:18
just seeing
1:16:20
all um
1:16:21
awesome rich guys who in
1:16:24
international lamborghini and then i can
1:16:28
do uber in that one or
1:16:31
i'll pick up many girls though
1:16:44
all right um
1:16:46
no
1:16:50
um
1:16:51
[Music]
1:16:53
can you clean your cash again
1:16:59
on safari probably i just cleared my
1:17:02
case that's way easier
1:17:04
[Music]
1:17:09
have you changed the
1:17:11
url
1:17:12
yeah you have one yes you have yeah
1:17:15
have you tried
1:17:17
yes we just
1:17:19
did that andre
1:17:22
we
1:17:23
deleted our cloud information stack and
1:17:26
then we created it from scratch
1:17:30
did you uh do it the right way then um
1:17:34
enabling course do you think like are
1:17:36
you pretty sure
1:17:37
i'm pretty sure
1:17:40
because all those options came up and
1:17:43
they were all ticked
1:17:47
right interesting
1:17:50
let me just try no course
1:17:58
um
1:18:03
okay
1:18:05
interesting
1:18:08
i'm pretty sure no cause would work but
1:18:11
you won't insert the
1:18:13
board name in there
1:18:20
boy
1:18:22
so post has
1:18:26
https um
1:18:33
i'm
1:18:34
just thinking what else could have um
1:18:38
how if you watch that video again
1:18:41
yeah yeah i'm just gonna do that just
1:18:43
one second yeah
1:18:44
i need to
1:18:46
mock
1:18:51
any
1:19:01
yeah
1:19:02
watch the video again
1:19:05
oh i need to figure out where the video
1:19:07
is then
1:19:10
um
1:19:11
just
1:19:12
go to our blog
1:19:15
really is it on there oh yeah
1:19:34
there we go
1:19:35
yeah
1:19:39
all right
1:19:41
cool do that
1:19:43
it's not opening from here
1:19:47
it's not opening
1:19:48
one second i'll just
1:19:50
see what the link is
1:19:52
that's interesting
1:19:54
it's fine
1:19:55
get it from here
1:19:58
but we need to do something about it we
1:20:00
need to fix that as well
1:20:16
are you guys with me yeah
1:20:20
play that
1:20:22
dude
1:20:26
[Music]
1:20:28
i'll just skip the cute stuff
1:20:30
yeah
1:20:34
[Music]
1:20:40
[Music]
1:20:45
right so your api
1:20:48
is present on the requested state api
1:20:49
headers the http methods that put post
1:20:53
etc associated with the resource are
1:20:56
also returning the required course
1:20:57
headers in case of both proxy and
1:21:00
non-proxy integrations
1:21:01
let's see how we can configure course or
1:21:03
rest api from the api gateway console
1:21:06
for this setup i've already created an
1:21:08
api gateway with a resource called test
1:21:10
to enable course on this resource select
1:21:12
this resource and choose actions
1:21:14
select enable course
1:21:16
now while enabling course also select
1:21:18
these check boxes for adding course
1:21:20
headers for gateway responses for
1:21:22
example select default 4x6 and default
1:21:25
5x so that the api gateway sends the
1:21:27
required headers even if the request
1:21:29
doesn't make it to the end point so that
1:21:31
a gateway response is sort
1:21:33
for example in case of missing
1:21:34
authentication token error when the
1:21:36
resource path entered is invalid we use
1:21:38
the gateway response
1:21:40
you can also select the http methods
1:21:42
configured with this resource where you
1:21:43
want to enable the course headers
1:21:45
after we enable course on an http method
1:21:48
in api gateway an options method is
1:21:51
added to the resource
1:21:52
does ours look like this
1:21:54
yes it does it is not already there
1:21:57
also the 200 response of the options
1:22:00
method is automatically configured to
1:22:02
return the three access control allow
1:22:04
star headers to fulfill the pre-flight
1:22:06
handshakes
1:22:08
we can see an options method is covered
1:22:09
for this resource with mock integration
1:22:12
also if you select the integration
1:22:14
response section of this method you can
1:22:16
see that the course headers are already
1:22:17
added similarly the course headers
1:22:22
you yeah we already have that
1:22:26
all right let's continue
1:22:28
go to header mappings
1:22:30
oh i mean
1:22:32
yeah
1:22:33
let's
1:22:37
methods go for this resource
1:22:39
note that if you are using a proxy
1:22:41
integration with your http method you
1:22:43
must send the required course headers
1:22:45
from the backend itself
1:22:47
after you enable these settings and send
1:22:48
the required course headers you can
1:22:50
resolve the error while accessing your
1:22:52
api
1:22:53
thanks for watching and happy cloud
1:22:54
computing
1:22:58
right
1:23:00
that was literally like do what you did
1:23:04
huh that video was just like do what you
1:23:08
already did
1:23:08
[Laughter]
1:23:12
um
1:23:13
so she didn't have
1:23:16
any method isn't it
1:23:21
but
1:23:22
we need the post method right
1:23:24
i know
1:23:26
but she didn't have any as in the any
1:23:29
method yeah
1:23:31
yeah yeah that's true
1:23:35
um
1:23:37
okay hang on a minute now
1:23:39
this is the options
1:23:41
method which is fun okay what i'm gonna
1:23:44
do probably delete this
1:23:46
all right and then do that again
1:23:49
yeah yeah
1:23:54
all thanks to that certain someone
1:24:10
there we go
1:24:12
[Music]
1:24:14
method i think i'm like if this doesn't
1:24:17
work today
1:24:18
i might call an uber and see what the
1:24:21
requirements are
1:24:28
um all right so
1:24:30
create method
1:24:32
[Music]
1:24:34
right
1:24:36
some hydration
1:24:37
[Music]
1:24:38
okay there we go
1:24:40
all right
1:24:48
okay
1:24:51
post right this one is there
1:24:55
okay and now
1:24:57
go to that one
1:25:04
um
1:25:04
[Music]
1:25:07
you didn't have a left
1:25:09
why are we assigning a lambda which i
1:25:11
don't think so do we need to do that
1:25:14
oh yeah how else it will use the code
1:25:18
yeah we don't assign a
1:25:20
lambda function
1:25:22
i thought we already assigned it
1:25:24
sorry oh no no because um
1:25:28
so as soon as you do
1:25:30
as soon as you delete the method
1:25:33
everything just
1:25:34
goes away
1:25:35
yeah off the method
1:25:38
time the function proxy
1:25:53
[Music]
1:25:55
[Applause]
1:25:57
okay if this
1:25:58
doesn't work we really have to post that
1:26:02
post this on stack of
1:26:06
vlogs i really wanna know how
1:26:09
can we always avoid this in the first
1:26:12
place yeah
1:26:15
ah no no no no no no
1:26:17
not that one
1:26:19
in that and you might redeploy again
1:26:22
by deleting the stacks
1:26:25
yeah true
1:26:26
okay that one's there that one's there
1:26:29
it will cause
1:26:31
see all that is there
1:26:34
so yeah replace existing values
1:26:38
everything comes fine your code has been
1:26:41
configured if you see everything
1:26:43
resulting output but please check the
1:26:44
error message if
1:26:47
necessary attempt to execute the failed
1:26:50
stepped
1:26:51
menu method editor
1:26:54
all right
1:26:55
um hang on
1:26:57
i might not
1:26:59
deploy the api now if you want to check
1:27:02
if if it's working
1:27:05
do you wanna you only check now
1:27:07
yes
1:27:08
because i just wanna check is it i mean
1:27:12
it must be important to deploy but
1:27:15
i just wanna check if you works without
1:27:18
deploying it
1:27:21
all right
1:27:23
and yeah again
1:27:25
i might be i might be totally wrong in
1:27:27
this
1:27:29
no it's good but i feel like it wouldn't
1:27:32
work like i mean it only makes sense
1:27:34
that it doesn't work
1:27:35
yeah yeah of course
1:27:43
[Laughter]
1:27:47
um
1:27:48
showing it's not giving us the error now
1:27:52
one second oh all right never mind okay
1:27:56
you made me really happy that i wanted
1:27:59
to go for skydiver right now from a
1:28:03
balcony
1:28:06
all right cool
1:28:07
okay now i'm gonna
1:28:09
deploy that
1:28:13
deploy api
1:28:33
okay he
1:28:35
hang on a minute not now
1:28:37
yeah i'm just not yet listening in the
1:28:39
bus man
1:28:40
cool because i just enabled
1:28:44
cloud watch for the
1:28:46
api as well so we can have a look
1:28:49
coding garden fan is back remember
1:28:52
huh
1:28:53
coding guarding fan
1:28:55
i don't know if you remember them or not
1:28:58
there was like one
1:29:01
coding watch
1:29:02
coding garden fan
1:29:06
no
1:29:07
yeah
1:29:08
yeah
1:29:14
yeah this person used to come like two
1:29:16
weeks ago two or three weeks ago yeah he
1:29:19
did he did
1:29:20
have you been welcome back
1:29:23
test fail
1:29:24
i know that feeling
1:29:28
which has like some really good emojis
1:29:31
yeah yeah it does um
1:29:34
all right i'm gonna just deploy the
1:29:38
app
1:29:39
i'm not at the api again
1:29:45
because i want to check
1:29:50
one f all right you you can continue
1:29:53
with your one
1:29:54
i'm going to go back
1:29:56
in the api logs
1:29:58
all right
1:30:00
watch and see what's happening
1:30:04
yep
1:30:06
by the way if this
1:30:07
doesn't work
1:30:09
call it a day
1:30:12
tomorrow's monday anyway
1:30:14
yeah
1:30:15
one f
1:30:16
one
1:30:18
f doesn't
1:30:22
no
1:30:27
api api
1:30:30
i guess it's fine and we can always come
1:30:31
back tomorrow
1:30:33
yeah
1:30:35
i just
1:30:37
leave it
1:30:38
on
1:30:40
tomorrow then
1:30:41
yeah that's all good
1:30:43
cool um i guess i won't say this was a
1:30:46
failed session of course
1:30:48
um we played around a lot in the aws
1:30:51
console and
1:30:52
like i'm really certain that i know a
1:30:55
lot better about the api gateways
1:30:58
rather than you know what this says
1:31:01
yeah learning
1:31:04
oh yes all right
1:31:06
that's a pretty good yeah nice
1:31:10
good timing
1:31:11
yeah
1:31:14
but now cool yeah i guess um i know like
1:31:17
we know a lot more about api
1:31:20
um
1:31:21
[Music]
1:31:22
what does it say
1:31:24
it says refactor code
1:31:33
i also want to know where did you get
1:31:34
your emojis from
1:31:38
that's a pretty cool one man
1:31:42
coding garden fan all right guys um
1:31:46
thanks for tuning in been a pleasure
1:31:49
having you and also some
1:31:51
guidance from
1:31:53
yak dev and all these cool emojis from
1:31:57
coding garden fan plus a really humorous
1:32:01
mysterious
1:32:02
game chat from that was there
1:32:05
look forward to having you again
1:32:07
tomorrow if you can make it
1:32:10
um it would be
1:32:13
yeah i'll leave my tag
1:32:16
i'll leave my tag line
1:32:18
for the end um do you want to add
1:32:21
something to that k
1:32:23
no i guess um coding garden fan is
1:32:26
asking so what time tomorrow um so we
1:32:28
stream every night from 9 30 aest which
1:32:31
is melbourne time
1:32:33
so
1:32:34
just
1:32:35
set your clocks according to that
1:32:37
even andre is following the
1:32:40
yeah
1:32:42
emoji culture
1:32:44
yeah we'll create an emoji gang and you
1:32:46
guys can yeah memes on us or something
1:32:50
but yeah i guess um let's come back
1:32:53
tomorrow and pretty sure we can resolve
1:32:54
it tomorrow sandy one yeah finish with
1:32:57
your tagline
1:32:58
perfect guys so
1:33:00
me and kev
1:33:02
feels you tomorrow's
1:33:04
same time same place
1:33:06
and this same task so
1:33:10
yeah tune in and see you then
1:33:13
cheers bye
1:33:15
cheers
Other clips featured in this episode