AWS SDK for the Rust Programming Language
Questions tagged [aws-sdk-rust]
22 questions
0
votes
0 answers
Formatting DynamoDB data to normal JSON in AWS Lambda in Rust
How can I convert a DynamoDB view JSON to a normal JSON in Rust?
For example, I want to convert:
{
"id": {
"N": "123"
},
"name": {
"S": "some name"
}
}
to this:
{
"id": 123,
"name": "some name"
}
I've found this question Formatting…

rherrmannr
- 88
- 6
0
votes
2 answers
How do I serialize an AWS HTTP request in a lambda using Rust
I'm following this AWS Tutorial to access a DynamoDB using https requests. Using the provided JavaScript example does work, so the API Gateway configuration seems to work. I can send requests using curl and get the items of the table:
curl -v…

rherrmannr
- 88
- 6
0
votes
1 answer
How to have a connection with lazy static to S3 from Rust?
I am trying to replicate one of our Python lambda function to Rust and got stuck at the beginning with having a client to S3.
In Python it is simple, during the Lambda initialisation I declare a variable. However, when using Rust it is a bit more…

Istvan
- 7,500
- 9
- 59
- 109
0
votes
1 answer
How do I un-gzip a file without saving it?
I am new to rust and I am trying to port golang code that I had written previosuly. The go code basically downloaded files from s3 and directly (without writing to disk) ungziped the files and parsed them.
Currently the only solution I found is to…

Abdiis
- 1
0
votes
1 answer
Rust AWS SDK: create keys with IAM role on the fly?
I'm trying to create temporary(?) credentials using an IAM role. From what I learned in the package's GitHub issues, they implemented the feature for Rust but I just can't figure where it is.
The equivalent code in NodeJS is:
import * as aws from…

Dipsy Shrimp
- 41
- 4
0
votes
0 answers
AWS lambda rust - how to make a function to return outer closure?
I am using rust-aws-lambda project. My use case is with Lambda as an API Gateway Proxy. Additionally I am using closures as explained in this example, as I want to use shared resources such as clients and secret value (retrieved from AWS Secrets…

rv.kvetch
- 9,940
- 3
- 24
- 53
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