Use DynamoDB with .NET 6 and CloudFormation
Vložit
- čas přidán 28. 06. 2024
- In this series, we're building a serverless web API using .NET 6 on AWS! We'll build our project from an AWS Serverless template created from the .NET CLI, and manage the stack using CloudFormation from within our IDE (running the AWS Toolkit)If you're following along, it will be useful to have the AWS CLI, SAM CLI, and the AWS Toolkit installed.
This video is sponsored by AWS.
In this video, we'll launce a DynamoDB table to serve as a data store for our temperature data.
🤝 Support the Channel on Patreon! Patreon supporters get access to source code! Link: / productivedev
👋 Get in Touch!
► Facebook bit.ly/productive-dev-fb
► LinkedIn bit.ly/wesd-linkedin
► Twitter bit.ly/wesd-twitter
👋 Timestamps
0:00 Intro
2:30 Exploring the CloudFormation template
3:19 Add a new IAM Policy for DynamoDB
5:20 DynamoDB CloudFormation resource
5:46 DynamoDB CloudFormation BillingMode
7:19 DynamoDB CloudFormation KeySchema
7:41 DynamoDB vs RDBMS
11:12 DynamoDB fundamental concepts
12:41 Some SQL vs NoSQL tradeoffs
17:16 Code: Controllers
18:43 Code: Using Dynamo DB with .NET (Data Access)
20:12 Code: Adding an item to DynamoDB
21:56 Code: DynamoDB Table Scan
26:43 Code: DynamoDB Query with Partition Key and Timestamp Sort Key
29:54 Deploy to AWS using CloudFormation
30:54 AWS Console: CloudFormation
31:34 AWS Console: DynamoDB Table
31:54 AWS Console: Lambda Function
32:17 AWS Console: CloudWatch Logs
32:40 Making HTTP requests to the URL
33:49 GET Temperature History
34:00 POST Temperature Observation
35:02 Bug Hunting a 500 response
36:09 Viewing items in DynamoDB table in AWS
36:40 Fixing the bug
37:23 GET Request Temperature History (Working)
37:50 GET Request Latest Temperature from Device
39:40 Deleting a CloudFormation Stack
📚 Topics Covered in This Series
► .NET 6
► Serverless
► AWS CloudFormation
► AWS Toolkit for Rider
► dotnet CLI
► DynamoDB - Věda a technologie
Thank you for the content Wes!
Excellent!!!! Any new videos coming soon??
Wonderful
Hey Wes, thank you so much for the new content. Amazing as always. I'm having issues with VS and the YAML template file. Do you have any resource (video, text, or other) that might shine a little light on this issue? Is it a VS common issue with YAML? Thank you so much for the awesome content as always!
I grabbed a template from AWS for the json template and fixed mine. (I used json instead of yaml). Great tutorial. Thanks for sharing your knowledge with others!
I had a similar issue in VS. If I get it working, I’ll post! Thanks for watching.
@@WesDoyle I got the template working last night :) I'm trying to resolve a permissions issue now. I'm getting a AmazonDynamoDBException: [Role] is not authorized to perform: dynamodb:DescribeTable on resource: [resource arn] because no identity-based policy allows the dynamodb:DescribeTable action. This is my first exposure to AWS so no idea what to do, I'll keep digging, but if you know and reply I'll be eternally grateful 😊
@@KennyomarGarcia you need to make sure your Lambda function has this permission to work with DynamoDB. Note this is covered in this video! 😄
Solved. For anyone having the same issue. In Postman I was sending the POST request with text body instead of Json.
Hey Wes! Thanks a lot for your videos. Could you add the source code too?