Thanks Jalal, The next video is on creating an API which works with your DynamoDB table. I could also add videos on adding other API Gateway features such mock responses, http proxy and security. They sound good?
Hello Sam, Thanks for a great tutorial with well presnted content. I tried to check the serverless page and follow your tutorial, which was great but sometime some fo the code you presnting has changed. It would be useful if you provide an update to these voideos with any update serverless has presented. It might sounds a lot of work for you but you are presnting a great tutorial. Thanks again for this great tutorial...
The serverless.yml would be exactly the same with Python. With the lambda code it should be relatively simple to 'translate' the code. You'll just use Boto3 instead of 'aws-sdk'
So far I'm loving your content... What about a tutorial of how use instead of DynamoDB a Relational DB with AWS Aurora DB? Because I'm concerned about the cost of having a LOT of data using DynamoDB, that's my only concern.
I've chosen Dynamo as it is far cheaper until you get to a pretty large scale. Doing a video on Aurora is going to be more expensive to follow along and try yourself. You would have to be storing a huge amount of data for dynamo to become prohibitively expensive. I have a table that has 28 million writes a month and it costs a total of about $16/month. If you are storing years worth of data then the storage costs could build up as the storage is $0.306/GB/month. The cheapest Aurora DB is $0.048/hr = $34.56/month for a db.t3.small.
Hello Sam, still enjoying your easy to understand videos. Thank you once again. Just a quick question. In this video you show how to set up the primary key for your dynamo db table under resources in your yaml file. I note that the primary key is also the partion key. My question is; is there a way to set up sort key as well?
Yes there is. This leads onto a very interesting topic of table design. You can do some really cool stuff with sort keys that would work well for your multi game question in the other video. I'll be putting out a video soon but you can Google for dynamo table key design if you're interested
Please make a full blown web app using Amplify, AppSync, GraphQL (usage of Query - Mutations-Subscriptions etc), customize Resolver with some special features like sending SMS, Email and uploading files in S3. Also, It would be very helpful if you can make a front-end using Angular.
Hi there, love your videos and channel!!!! Could u make a video about sis architecture and patterns ? Or how to create an qa/prod environments in a project ? tsk
I have one video on a sls architecture here ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-tOmmh-EFxQY.html I'll hopefully be doing more of these in the future. I can definitely do some videos about environment management with Serverless projects. That's a great topic.
Can you explain how to add already existing subdomain to apiendpoint .I tried by using serverless as explained by serveless website but invain as it throws exception and then i add manually using aws console by adding custom domain option
Great question. If you have your domain in Route 53 then you can use BasePathMapping in your serverless file. This allows you to forward all requests to a certain domain or subsdomain to your API Gateway endpoint. This could be api.freeserverlesscourse.com points to your API. It's a bit complex to teach in a comment so I'll add it to the video list.
@@CompleteCoding Thanks a ton if you could teach us how to add existing subdomain but remember the subdomain is in one account and the parent domain (main domain) is in other account e.g I have production account where i have main domain in route53 and dev account where i want to create subdomain for devapi's
You can have "Outputs" in resources too. I'm not sure why they have to be nested in "resources", you'd have to ask someone from the serverless framework team
Hi Sir, thank you for your videos they are so informative and to the point. I see that at 1:35 you used serverless-webpack, I would like to know how and why you used it? Secondly I tried to install serverless-webpack and got this error The webpack plugin could not find the configuration file at: C:\Users\devgoel\myServerlessProject\webpack.config.js I used this command to install webpack => npm install serverless-webpack --save-dev
At the time of creating the video, serverless webpack was the best way to bundle your code. This meant that instead of all of your src folder being uploaded to every lambda, webpack took just the files it needed. Packaging saves loads of upload data and also reduces cold starts. Now I use serverless-esbuild. It comes by default whenever you use a serverless template now. sls create --template aws-nodejs-typescript --path YOURPROJECTNAME
This video is part of a series. I created the repo and the serverless.yml in a previous video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-sku9Rrci-tE.html
I copied code from github and get error: can not read a block mapping entry; a multiline key may not be an implicit key in "D:\Projects\HDVE\HDVEServerless\serverless.yml" (46:20) Does anyone know how to fix it?
Is your serverless yml file the same as this one? github.com/SamWSoftware/ServerlessRU-vidSeries/blob/lesson5-dynamo/serverless.yml with Yml files, the indentation really matters. It might be something like that?