Add Data to a DynamoDB Table with PUT Operation use AWS CDK
lessonDuration 4m 13s
In this quick lesson we're going to create a createTodo AWS Lambda function which will allow us to add new items to our DynamoDB table.
Browse
Find courses, lessons, articles, talks, and podcasts.
7,176 resources
Showing 529–552 · Page 23 of 299
lessonDuration 4m 13s
In this quick lesson we're going to create a createTodo AWS Lambda function which will allow us to add new items to our DynamoDB table.
lessonDuration 3m 46s
At the end of the last lesson we've managed to create a Lambda function which we want to use to get data from DynamoDB table using the scan operation. Unfortunately, after calling the AWS Lambda function we get a following response: ``` "message": "User: arn:aws:sts::696785635119:assumed-role/TodoAppStack-TodoDatabaseTodoHandlerServiceRole991-152UNT6KUIOG2/TodoAppStack-TodoDatabaseTodoHandlerDD6198FE-CPTO6AAJJU5W is not authorized to perform: dynamodb:Scan on resource: arn:aws:dynamodb:eu-central-1:696785635119:table/TodoAppStack-TodoDatabaseTodoTable29EA4913-E6Z09XSAAHF8", ``` In this quick lesson we're going to learn how to allow an AWS Lambda function to access data from a DynamoDB table with grantReadData function (in a single line of code!)
lessonDuration 2m 54s
Now we're getting somewhere 🎉 In this lesson we're going to create a new lambda function that will read data from our new TodoTable.
lessonDuration 3m
Amazon DynamoDB is a fully managed non-relational (NoSQL) database service that provides fast and predictable performance with seamless scalability. In other words - DynamoDB is entirely managed by AWS (so it's scaled for us, even if our startup has millions of users), it's a NoSQL database so we don't have to start by defining a detailed schema like in a relational database and it's used by companies like AirBnB, Lyft and Samsung in production. In this quick lesson we're going to learn how to create a brand new DynamoDB table from scratch with AWS CDK.
lessonDuration 2m 13s
Now that we know a lot about shipping cloud resources with CDK it's time to start creating a serverless backend for our todo application. We could add the database and new AWS Lambda functions to our main stack but after a while it might get difficult to maintain. Instead, in this lesson we're going learn how to create our very own custom CDK construct. Learn more about CDK constructs [here](https://docs.aws.amazon.com/cdk/v2/guide/constructs.html).
lessonDuration 2m 43s
Serverless technologies like AWS Lambda allow us to build our applications out of small, independent functions that can be called based on events such as an API call. By default, it's not possible to call an AWS Lambda function from the Internet - it's safely stored within AWS cloud, following the principle of least privilege. In order to create a REST API to call an AWS Lambda function we need to use API Gateway. Luckily, with AWS CDK, we can create a LambdaRestApi in 3 lines of code and this is exactly what we're going to learn in this quick lesson!
lessonDuration 2m 11s
Every resource we deploy to AWS with CDK has some default values configured for us so that we don't have to configure everything ourselves. This comes in handy because it allows us to focus on building our infrastructure and solving our problems instead of configuring everything. With that being said - CDK allows us to configure various properties of our resources! In this quick lesson we're going to learn how to configure the memory size and timeout of an AWS Lambda function.
lessonDuration 4m 2s
It's time to start building our serverless backend! In this quick lesson we're going to use the `NodejsFunction` construct provided by CDK in order to build, deploy and test a 'Hello World!' AWS Lambda function. You can find out more about what kind of constructs are available in AWS CDK construct library [here](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-construct-library.html)
lessonDuration 1m 17s
In this quick lesson we're going to clear out the SQS Queue and SNS Topic that was created for us when we created a CDK app with cdk init in order for us to be able to start building our app from scratch.
lessonDuration 1m 58s
Now that our initial stack has been deployed it's time to dig into AWS Console to see what exactly did we deploy. Cloud Development Kit is built on top of CloudFormation which is an AWS service that allows you to describe a stack in AWS using a static file (either YAML or JSON). In essence - it's going to convert our code written in TypeScript, to JavaScript, which will be then converted to CloudFormation and CloudFormation will be used to deploy our infrastructure. Sounds complicated, right? Luckily CDK abstracts a lot of things away from us, so we get to focus on solving our problems instead of writing YAML by hand. In this lesson we're going to learn how to review an AWS CDK stack deployment in CloudFormation console.
lessonDuration 4m 14s
Now that our initial AWS CDK project has been created, it's time to deploy it! In this quick lesson we're going to learn: where do we define an AWS CDK stack what is a CDK construct (you can read more about CDK constructs [here](https://docs.aws.amazon.com/cdk/v2/guide/constructs.html)) how to bootstrap a CDK environment with cdk bootstrap how to use `cdk diff` command in order to see the difference between our currently deployed stack and the stack we're about to deploy how to use `cdk deploy` in order to deploy a CDK stack to AWS
lessonDuration 1m 23sFree
All amazing projects have to start somewhere and AWS CDK is no exception. In this quick lesson we're going to learn how to install AWS CDK command line interface with npm as well as how to use cdk init in order to create our very first CDK project :partying_face:
lessonDuration 1m 23s
In this lesson, you'll set up a fresh new Next.js 14 project with the Keystatic CLI. We'll take a quick tour of what's been generated for us, and play around with Keystatic's two-way content editing capabilities!
lessonDuration 1m 22sFree
lessonDuration 5m 28s
lessonDuration 7m 43s
course
Amazon AWS is one of the most popular cloud providers in the world, but it can also be daunting to learn thanks to the alphabet soup of service acronyms. Once you've figured out which subset of services to use, you've got a lot of clicking around to do in order to get things configured. Not anymore! With the AWS Cloud Development Kit (CDK v2), you are able to configure AWS services from your terminal & editor. Even better, you can do your configuration, frontend, and backend all with the same language. In this course, Tomasz Łakomy will guide you through using TypeScript to complete the lifecycle of an application powered by AWS CDK v2. You'll see how to start a project, develop it locally, deploy it globally, and then tear it all down when you're done. The services & development approach Tomasz demonstrates in this course are used by countless companies around the world. Is yours next?
lessonDuration 1m 52s
The more your request handlers resemble the actual production behavior, the more confident you'll get when prototyping and testing with Mock Service Worker. But here's the thing—mocked responses arrive to the client **really quickly**. Learn how to control response timing and server-side latency by using the "delay" function. - [`delay()` API](https://mswjs.io/docs/api/delay)
lessonDuration 2m 2s
When mocking a collection of resources in Mock Service Worker, such as our movies, you will encounter requests that have dynamic parts in their URL, like `/movies/:slug`. In this lesson, learn how to use _path parameters_ to describe dynamic portions of the request's URL, access those parameters, and return a different response based on their values. - [Path parameters](https://mswjs.io/docs/network-behavior/rest#reading-path-parameters)
lessonDuration 2m 19s
Mocking authentication comes down to how it's implemented. With Mock Service Worker, you can mock the "Set-Cookie" response header to emulate a user session, but with Remix you don't even have to. Instead, in this lesson we will intercept only the authorization call to a database, leaving Remix to handle sessions, cookies, and auth state for us.
lessonDuration 1m 55s
Learn how to use the native `URL` and `URLSearchParams` classes to parse the intercepted request's URL and access its query parameters inside your Mock Service Worker handlers. - [Reading and writing request query parameters](https://mswjs.io/docs/recipes/query-parameters)
lessonDuration 1m 50s
Request handlers you write in Mock Service Worker apply for both Node.js and the browser simultaneously. In this lesson, you will handle a client-side request for movie recommendations using the same `http` namespace you already know. We will also take a sneak peek at the browser's Network to see what happens to the requests when we mock them.
lessonDuration 1m 47s
Let's use the "setupServer" API from Mock Service Worker to enable API mocking on the server-side of our Remix application. This way you can intercept and mock server-side requests, like those happening in the "loader" and "action" functions, as well as reuse the same setup for any other Node.js process, like integration tests with tools like Vitest or Jest in the future. - [Node.js integration](https://mswjs.io/docs/integrations/node)
lessonDuration 1m 33s
Error handling is crucial for a great user experience. Learn how to reproduce _any_ error response with Mock Service Worker, be it a 404, 500, or any other HTTP error response. - [Mocking error responses](https://mswjs.io/docs/basics/mocking-responses#mocking-error-responses)