Questions tagged [rusoto]
26 questions
1
vote
1 answer
How to wrap a `futures::Stream` into anything that implements `Write`?
Eventually I will need a ByteStream for rusoto. So I thought I can create it from a futures::Stream:
pub fn z_stream(r: impl Read) -> Result {
let outstream = stream::empty();
// TODO, how do I wrap outstream
process(r, &mut…

user2084865
- 625
- 1
- 7
- 18
1
vote
1 answer
How to use select_object_content via rusoto / rust?
The following code tries to select some data from a file stored on S3:
let client = S3Client::new(Region::default());
let source = ... object providing bucket and key ...;
let r = SelectObjectContentRequest {
bucket: source.bucket,
…

Achim
- 15,415
- 15
- 80
- 144
0
votes
1 answer
Unable to compile Rust AWS Lambda using rusoto
Im having some problems compiling a Rust lambda. The problems started after I included the rusoto package, and it is complaining about linker problems (options and libraries).
Im running:
cargo lambda build
Getting:
= note: warning: unsupported…

HelloWorld
- 3,381
- 5
- 32
- 58
0
votes
1 answer
Save body of a streaming future object to disk
I'm using the PollyClient from rusoto, where I'm attemping to handle what I believe is a Future response of some type from the method synthesize_speech().
Here is a snippet of what I have that compiles and runs as-is:
extern crate…

ghukill
- 1,136
- 17
- 42
0
votes
3 answers
Mixing select! and async calls in Rust
I am building a small app that's supposed to schedule two tasks (based on rusoto AWS SDK) at different intervals: every X seconds, run one task, and every Y seconds, run the other.
I found crate crossbeam that offers a tick timer and a select! macro…

Victor
- 13,914
- 19
- 78
- 147
0
votes
0 answers
Why does downloading a file from S3 using Rusoto sometimes return a blank string?
I'm trying to get the body from an existing file in an S3 bucket using rusoto. My body.unwrap returns a blank string and I don't understand why. I don't have any issues or error, and my file is well.
It looks like I sometimes receive empty content…

maathor
- 121
- 1
- 3
- 12
0
votes
1 answer
Tokio core.run can't compile. got error: the trait `futures::future::Future` is not implemented for `impl futures::Future`
I am learning the Rust and Rusoto with this example https://www.rusoto.org/futures.html
And I found many of the code are outdated. So I changed the code like this:
use rusoto_core::{Region, RusotoError};
use rusoto_dynamodb::{
…

vreal
- 797
- 1
- 7
- 16
0
votes
1 answer
How do I put my struct into a PutRecordInput for AWS Kinesis in Rust?
I am very new to Rust and trying to get a bit of code working that can push a record to a kinesis firehose stream.
struct AuditRecord{
user_id : String,
request : Value,
request_id : String,
timestamp_raw : i64,
}
...
let client =…

NSA
- 5,689
- 8
- 37
- 48
0
votes
0 answers
How to save an actix multipart field to s3 using rusoto_s3?
Im completely new to rust, but learning. I am attempting to take a multipart upload using actix_web and actix_multipart and upload it to aws s3 using rusoto_s3. From my basic undersntaing basically i have a stream of one type that i need to convert…

Deep
- 2,988
- 4
- 34
- 44
0
votes
0 answers
Reading Rusoto S3 StreamingBody into something that Brotli can decompress
Version 0.32 of rusuto_s3's StreamingBody, which is returned when requesting a file from AWS S3, does not implement Read anymore.
Up to this version, brotli::BrotliDecompress(&mut &*would_like_to_pass_this, &mut contents); was the way I would get…

manonthemat
- 6,101
- 1
- 24
- 49
-1
votes
1 answer
Insert string into DynamoDB with serde_dynamodb: expected struct `AttributeValue`, found struct `rusoto_dynamodb::generated::AttributeValue`
I'm trying to write a nested JSON string into DynamoDB, using
Here's my string:
json_string =…

Richard
- 62,943
- 126
- 334
- 542