- Newest
- Most votes
- Most comments
Hello!!
I have installed and configured DynamoDB locally. Now I want to save on dynamoDB the data that I read from another device through AWS SItewise. The acquired data is saved as stream manager, so json format. I want to insert these JSON documents on DB every time I read the new data and I want to do it through a Lambda function. What commands should you use? Is it possible to use the Lambda function also to create tables and to query the DB?
I await your response.
Thank you,
Federica
Hi Federica,
Yes, you can use DynamoDB for an unlimited amount of time without using the DynamoDB table to test and develop your applications.
DynamoDB has a free tier which includes 25 GB of storage, 25 provisioned write capacity units (WCU), and 25 provisioned read capacity units (RCU). Data transfer is also free within the same region. You can use these resources for free for as long as 12 months. [1]
Additionally, there is no practical limit on a table's size in DynamoDB. Tables are unconstrained in terms of the number of items or the number of bytes however the maximum item size in DynamoDB is 400 KB. [2]
I hope I was able to answer question and that the information provided was helpful.
Resources
[1] https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=**all&awsf.Free%20Tier%20Categories=**all
[2] https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html#limits-tables
Hi Monica,
Thank you for your answer. Is there a guide to follow to develop the tables locally? Are the tables built using the AWS Lambda function?
Thank you,
best regards
You can use any of the CLI commands like normal:
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/getting-started-step-1.html
While specifying an endpoint URL:
aws dynamodb create-table \
--table-name UnifiedTable \
--attribute-definitions AttributeName=pk,AttributeType=S AttributeName=sk,AttributeType=S \
--key-schema AttributeName=pk,KeyType=HASH AttributeName=sk,KeyType=RANGE \
--provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5 \
--endpoint-url http://localhost:8000
One of my biggest recommendations though would be to use NoSQL Workbench:
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/workbench.html
You can use it to model DynamoDB Tables, and then deploy it to a locally running DynamoDB instance or a deployed remote instance on your AWS account.
Best,
Justin
Edited by: justinlAWS on Aug 30, 2021 11:58 AM
Relevant content
- asked 2 months ago
- asked 10 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
If you would like to connect with DynamoDB through a lambda function, you will need to use the SDK to connect and add objects to your table. Based on the lambda runtime you choose, you can choose any one of the SDK's here: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GettingStarted.html