You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warning: use of deprecated associated function `aws_config::BehaviorVersion::v2023_11_09`: Superceded by v2024_03_28, which enabled stalled stream protection for uploads (request bodies) by default.
--> examples/localstack.rs:22:56
|
22 | let config = aws_config::defaults(BehaviorVersion::v2023_11_09())
| ^^^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
To Reproduce
Run from repo root:
cargo run --example localstack --features="localstack"
Version information:
❯❯❯ uname -a
Darwin Neils-Air.lan 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:41 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T8103 arm64
❯❯❯ rustc --version
rustc 1.77.2 (25ef9e3d8 2024-04-09)
❯❯❯ cargo --version
cargo 1.77.2 (e52e36006 2024-03-26)
❯❯❯ docker --version
Docker version 24.0.6, build ed223bc
Expected behavior
Successful run of example.
The text was updated successfully, but these errors were encountered:
#132)
Closes#131, where I discovered the `localstack` example is broken when
running:
```
cargo run --example localstack --features="localstack"
```
Some research brought me to
[awslabs/aws-sdk-rust#1138](awslabs/aws-sdk-rust#1138),
which uncovered that `create_bucket` is broken here because `localstack`
uses the soon-to-be-deprecated
["path-style"](https://aws.amazon.com/blogs/aws/amazon-s3-path-deprecation-plan-the-rest-of-the-story/)
address style rather than the newer "virutal-hosted" style.
I reworked the configuration in the example to set
`force_path_style(true)`, which fixes `create_bucket`. The example now
runs successfully.
I also updated the `BehaviorVersion`, because the currently referenced
one is now deprecated and was causing a warning.
Describe the bug
Running the
localstack
example throws an error:As well as a warning:
To Reproduce
Run from repo root:
cargo run --example localstack --features="localstack"
Version information:
Expected behavior
Successful run of example.
The text was updated successfully, but these errors were encountered: