amazon-timestream-tools
amazon-timestream-tools copied to clipboard
Add Sample Timestream Rust Application
Add the AWS SDK for Rust sample applications
-
The
sample_apps/rust
directory has been created with sample applications demonstrating common uses of the AWS SDK for Rust. -
The following sample applications have been added:
- The
ingestion_csv_sample
application allows users to ingest sample CSV data into Timestream for LiveAnalytics. - The
query_sample
application allows users to execute queries, varying from basic to complex. - The
cleanup_sample
application allows users to delete Timestream for LiveAnalytics resources.
- The
-
A README has been added to guide users through using the sample applications.
How to test:
Execute the following under the amazon-timestream-tools/sample_apps/rust
directory.
-
cargo run --example ingestion_csv_sample
- Note - This will create a database and table in us-east-1, and ingest ~63K records.
- To use a different region -
cargo run --example ingestion_csv_sample -- --region=us-west-2
-
cargo run --example query_sample
- Note - This will query the newly created table and records
-
cargo run --example cleanup_sample
- Note - This will delete the database and table