Skip to content

Commit

Permalink
Rust: 5864 Cloudwatch logs Large Query Scenario (#6021)
Browse files Browse the repository at this point in the history
Closes #5864
  • Loading branch information
DavidSouther authored Feb 8, 2024
1 parent e2e70e4 commit 563a671
Show file tree
Hide file tree
Showing 5 changed files with 499 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ Use the following steps to create the necessary resources in AWS CloudFormation
1. In your local terminal, change directories to [resources](../../../../../workflows/cloudwatch_logs_large_query/resources/).
1. Run `aws cloudformation deploy --template-file stack.yaml --stack-name CloudWatchLargeQuery`
1. Run `./make-log-files.sh`. This will output two timestamps for use in the following step.
1. Run `export QUERY_START_DATE=<QUERY_START_DATE>`. Replace `<QUERY_START_DATE>` with the output from the previous step. Repeat this for `QUERY_END_DATE`.
1. Run `./put-log-events.sh`.
1. Wait five minutes for logs to settle and to make sure you're not querying for logs that exist in the future.
1. Copy and run the `export QUERY_START_DATE=<...>` and `export QUERY_END_DATE=<...>` from the `make-log-files.sh` output.
3. Run `./put-log-events.sh`.
4. Wait five minutes for logs to settle and to make sure you're not querying for logs that exist in the future.

### Run the scenario

Expand Down
12 changes: 11 additions & 1 deletion rustv1/examples/cloudwatchlogs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,18 @@ edition = "2021"

[dependencies]
aws-config = { version = "1.0.1", features = ["behavior-version-latest"] }
aws-sdk-cloudwatchlogs = { version = "1.3.0" }
aws-sdk-cloudwatchlogs = { version = "1.3.0", features = ["test-util"]}
aws-types = { version = "1.0.1" }
tokio = { version = "1.20.1", features = ["full"] }
clap = { version = "~4.4", features = ["derive"] }
tracing-subscriber = { version = "0.3.15", features = ["env-filter"] }
chrono = "0.4.32"
tracing = "0.1.40"
async-recursion = "1.0.5"

sdk-examples-test-utils = { path = "../../test-utils" }
futures = "0.3.30"

[dev-dependencies]
aws-smithy-mocks-experimental = "0.1.0"
# aws-smithy-runtime = { version="1", features = ["test-util"] }
Loading

0 comments on commit 563a671

Please sign in to comment.