Integrate your REST API with AWS Services using API Gateway Service Proxy
Вставка
- Опубліковано 14 лип 2024
- In this video, learn how to set up an API Gateway endpoint that directly interacts with DynamoDB WITHOUT a Lambda function! Previously, developers would typically set up a API Gatweway with a Lambda function that can would call DynamoDB endpoints. If you have a simple use case to insert/update/delete data, this can now be accomplished WITHOUT a lambda! Learn how it works and how to set it up in this video.
Looking to get hands on experience building on AWS with a REAL project? Check out my course - The AWS Learning Accelerator! courses.beabetterdev.com/cour...
📚 MY RECOMMENDED READING LIST FOR SOFTWARE DEVELOPERS📚
Clean Code - amzn.to/37T7xdP
Clean Architecture - amzn.to/3sCEGCe
Head First Design Patterns - amzn.to/37WXAMy
Domain Driver Design - amzn.to/3aWSW2W
Code Complete - amzn.to/3ksQDrB
The Pragmatic Programmer - amzn.to/3uH4kaQ
Algorithms - amzn.to/3syvyP5
Working Effectively with Legacy Code - amzn.to/3kvMza7
Refactoring - amzn.to/3r6FQ8U
🎙 MY RECORDING EQUIPMENT 🎙
Shure SM58 Microphone - amzn.to/3r5Hrf9
Behringer UM2 Audio Interface - amzn.to/2MuEllM
XLR Cable - amzn.to/3uGyZFx
Acoustic Sound Absorbing Foam Panels - amzn.to/3ktIrY6
Desk Microphone Mount - amzn.to/3qXMVIO
Logitech C920s Webcam - amzn.to/303zGu9
Fujilm XS10 Camera - amzn.to/3uGa30E
Fujifilm XF 35mm F2 Lens - amzn.to/3rentPe
Neewer 2 Piece Studio Lights - amzn.to/3uyoa8p
💻 MY DESKTOP EQUIPMENT 💻
Dell 34 inch Ultrawide Monitor - amzn.to/2NJwph6
Autonomous ErgoChair 2 - bit.ly/2YzomEm
Autonomous SmartDesk 2 Standing Desk - bit.ly/2YzomEm
MX Master 3 Productivity Mouse - amzn.to/3aYwKVZ
Das Keyboard Prime 13 MX Brown Mechanical- amzn.to/3uH6VBF
Veikk A15 Drawing Tablet - amzn.to/3uBRWsN
🌎 Find me here:
Twitter - / beabetterdevv
Instagram - / beabetterdevv
Patreon - Donations help fund additional content - / beabetterdev
#APIGateway
#ServiceProxy
#AWS
#DynamoDB
#AWS
Very well-explained, thorough explanation with just the right speech pace. Thank you so much!
You're very welcome Hamida!
Super detailed and simple explanation. Kudos !! Keep doing the great work !!
you are a life saver! The way you explained is really awesome! Thank you!
Thanks for the clear explanation. Super helpful!
Excellent video explaning the concept in a simple manner and it helped me save so much time Googling. Good on you and I am sure you'll feel satisfied with many of us finding your video very useful!!
Thanks Pradeep! Super glad you enjoyed :)
Thank you so much, Daniel. Hope your channel grows exponentially :)
Thank you so much mr cena!
This is a big help: _complicated_ but can obviously cut out a lot of middleware stuff. Thanks -- I'm hopefully going to be allowed to do this 👍
Hi Greg,
Thanks for the comment. I agree it is more complicated to get this up and running. Also I think this is only applicable in certain cases where direct integration makes sense (where business logic is necessary).
Thanks for watching and take care.
Really terrific, need to watch a few more times.
Thanks Vincent! Glad you enjoyed :)
Amazing vid! I learned a lot, you got a new subscriber
Wow, keep it up another great video!
Your content is awesome man! Keep it up.
Thanks Valery! Glad you enjoyed :)
Awesome content!. True to the core and NO BullSh***. Thanks for the good work!
Brilliant! Thank you.
Useful, thank you for your time and sharing!
Glad you enjoyed it Jonathan!
Thank you so much Daniel!
Great Video man! loved it! would you have a video on the non-service proxy integration with the work flow you demo in the video e.g. Browser -> Rest API -> Lambda -> DynamoDB ? love the content!
Great video man. Keep it up!!
Appreciate it!
Amazing demo. talented and Professional.
Thank you!
am a new sub..... you are doing an awesome job. security made simple
Thanks super helpful
your content is really awesome!
Thanks Christian!
Thank you so much, you are a legend!
Thanks Dmitri! Really appreciate it.
liked your video before watching a sec ! you deserve all the support for this gold you are teaching , and also , i wanna start from scratch in your channel , if you can tell me where to start exactely , the basics i mean , Thank you
Thank you so much Abdou for your kind words. I would suggest starting with my video on the most important AWS services (link below). I'm also going to be coming out with a new video about pet projects you can do to learn AWS. This was inspired by reading this comment, so thank you!
@@BeABetterDev that means a lot to me , thank you i'm the number 1 fan of your channel
This is something I was looking for. Appreciate man. However, I have a question from a security perspective: how would you implement rate limiting? or do you have any video on securing these endpoints? Please share the link here.
excelent explanation.
Glad it was helpful!
Great content. Thank you.
Glad you enjoyed it!
Another great vid!
Thanks Hassan!
Thank you soo much!
You're welcome! Thanks for watching Andriy!
Really useful video for a beginner like me. I am wondering how to do this if I have an EC2 which hosts a spring boot database? How to I identify it and which action names do I use?
Daniel your content is awesome, thanks for taking the time to post all this relevant and often overlooked content domain..
I don't know if I'm the only one that thinks this but your speech pace is really slow.. Using a video speed control extension for Chrome you're comprehensible up to about 3.10x which is a record ;)
Thanks Jonas! I've never been told I speak too slowly before, quite the contrary actually haha. I'll try to keep this in mind for my next videos. Thanks again for watching!
Your videos are so useful, do you have any videos utilizing Opensearch
you are just amazing
Thank you very much!
awesome !
Thanks Prakash!
Dear Daniel, you saved my day! This video fits to my use-case thanks for your effort. But I wish to know how do I send response back to user in json. Answer anticipated.
Hi Nisharth,
I believe the response should be automatically flowing back to you after calling the API endpoint. Are you running into a specific issue?
👏🏻👏🏻👏🏻 amazing
Thanks Raul!
Great video. What are you using to draw your screen please?
Great video - do you have a video for GET requests?
I salute you
Thank you sir!
Great Video - at 10:06 , what would be the difference if you had selected "Proxy Resource" ?
What would be an example mapping template if the http post was in XML and I wanted to pass it through to dynamoDB as json?
How can I do the same but with the GET method? What should I put in the "Action" instead of 'PutItem'?
Wow, this is truly remarkable content. I had the pleasure of reading something similar, and it was an unforgettable experience. "Mastering AWS: A Software Engineers Guide" by Nathan Vale
👏🏻👏🏻👏🏻
Thanks Raul!
Thanks Daniel for another very useful video. Two things maybe worth mentioning: 1. for sure you need to deploy the API after specifying or changing the mapping template; 2. by using the mapping template you can make sure that you pass into the request to DynamoDB table only the parameters you want from the request (I've tested this by adding other key/values in the JSON request and seeing that they don't get added to the table)
Again, thanks for the very useful tutorial.
why do you need to wrap $input.path($.key) in double quotes? doesnt it already return a string?
can u create another video with elasiccache redis
It seems like this isn't supported for serverless v2 backends--how can those be connected to API Gateway?
How postman could access end point..?
When I do the post, I get an error that missing an access token. Any idea why?
Thanks for creating this video. A random id is not getting generated using $context.requestId
Can anyone help me understand why that may be?
I guess this approach is useful if no data validations are required right? Would you recommend doing it directly with lambda if you think you would need validations in the future?
Request validations can also be done in API Gateway itself. The documentation might be thin around that but it's possible.
How would you use an authorizer here?
HI I am conecting RDS service and I am getting an error as AWS ARN for integration contains invalid action. Please can you give me solution>?
Hello, thanks for the video. I'm trying to do this now but I think alot has changed with AWS UI. I can't seen to find DynamoDB under API Gateway Integrations. What do you advise? thanks
I had some trouble with this too. Make sure your API is REST and not HTTP - HTTP doesn't have service proxies
@@JustinSmith-oh5yh thanks
can you make username unique using API Gateway Service Proxy?
Any Idea on the GetItem Template?
From POSTMAN getting "message": "Requested resource not found" not sure what is failing, any idea how to troubleshoot
did you spell the TableName correctly? I accidentally named my table "customers" and not "Customers", which is why postman failed with this error. good luck.
How to use autogenerated timestamp
throwing error "message": "Missing Authentication Token"
please post the code here.
in 23:20,
{
"TableName": "Customers",
"Item": {
"customerId": {
"S": "1"
},
"date": {
"S": "2020"
},
"name": {
"S": "John Doe"
}
}
}
in 28:01,
{
"TableName": "Customers",
"Item": {
"customerId": {
"S": "$context.requestId"
},
"date": {
"S": "$input.path('$.date')"
},
"name": {
"S": "$input.path('$.name')"
}
}
}
in 31:45,
{
"date": "2020",
"name": "Jane Doe"
}
Really nice! Now API is not secured, do we do that in Integration Request part of the path? At ua-cam.com/video/i5NEHwFeeuY/v-deo.html
please do not produce 50% percent of the subject :( do that to end. what about get specific item or query for example i registered users and i want to get a user if username and pass is exist in DB??????