-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to put together a couple of examples. Need help. #1910
Comments
👋 The The best reference is the integration tests for DynamoDB but it only does table level interactions. My recommendation is to use dynomite for DynamoDB interaction. I'm not sure if it's updated to use the latest Rusoto release, so that's something to check. For an example of using dynomite with previous releases of Rusoto and dynomite, check out refeed-rampage for upsert, fetch and delete via dynomite. |
Thanks for the reply. I had seen the integration tests but, as you mentioned, it leaves out too many details. I had not come across the dynomite yet as the rusoto is all that comes back on searches. |
So I guess this raises a follow-up question in my mind. Is Rusoto a dead-end at this point or is it just the DynamoDb section that is outdated? I ask because I have been working heavily with AWS for the past couple of years (using Python and boto3) and was hoping to leverage some of the AWS experience to help me get into Rust. If Rusoto is not the boto3 of Rust is there something else I should be looking at? It appears there is a relatively complete set of AWS services covered in Rusoto and I only started with the DynamoDb part because that was what was in the example on the Rusoto home page at: https://www.rusoto.org/usage-and-example.html |
It may help to think of Rusoto as botocore instead of boto3. The Rusoto works with DynamoDB and Rusoto is in maintenance mode. While much functionality is present and working, due to lack of financial and time support, not a lot of work is being done right now. About a year ago Amazon posted multiple job openings for Rust SDK development but we've seen nothing yet aside from comments such as Even with the rough edges present in Rusoto, it's been used in production for years by many AWS customers. As for other projects available, there's mostly S3 interactions available in other crates like https://github.com/paolobarbolini/rusty-s3 and https://github.com/durch/rust-s3. |
Perhaps this presentation/livestream by an AWS employee using Rusoto with DynamoDB could help. Reference: https://twitter.com/paulmaddox/status/1290986918725943297 . |
Thanks for the help! In spite of the issues I was able to have success with DynamoDb get_item, put_item, and query. |
First of all, Rust noob here so that may be a part of the problem. I'm trying to branch off from the "Hello world" track and do something with Rusoto and DynamoDb. I didn't have too much trouble with the simple snippet on the docs.rs page:
https://docs.rs/rusoto_dynamodb/0.46.0/rusoto_dynamodb/
But things went downhill quickly when I tried to actually do something else. I turned to the "tests" at:
https://github.com/rusoto/rusoto/blob/master/helpers/tests/dynamodb.rs
and I found some material there that helped a lot but there are some things that don't work and I'm at a loss to understand why. Here are my issues and thanks in advance for any advice...
I worked around this by using a HashMap<String, AttributeValue> in its p[lace but I'm like to understand what's going on here.
Key appears here again but it's the val! that is confusing me. What is val! and how do I use it? I find the string val! noplace in the Rusoto source but here. I used the following code to work around this but it baffles me:
The text was updated successfully, but these errors were encountered: