-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache AWS credentials in the snapshot uploader #2771
Conversation
let runtime_components = RuntimeComponentsBuilder::for_tests() | ||
.with_time_source(Some(aws_smithy_async::time::SystemTimeSource::new())) | ||
.with_sleep_impl(Some(aws_smithy_async::rt::sleep::TokioSleep::new())) | ||
.build() | ||
.context("Could not build AWS runtime components")?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oof! At what point should we just use the S3 SDK 😆 Thank you for figuring this out!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think it doesnt help us really, unless you implement the object store trait on it :/. i can see why they didnt want to import the sdk, but its hurting us in this case tbh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for fixing this, @jackkleeman! Can confirm it works exactly as intended. Tested with the following configurations:
- explicit env creds
- AWS SSO profile w/ S3
- AWS SDK profile w/ minio
- explicit Restate config w/ minio
It's probably worthwhile adding integration tests for these scenarios - not 100% what's the best place for them atm.
I took the liberty of pushing a trivial Clippy fix that was blocking merging. 😊
Unfortunately there is still a Rust SDK integration error which seems related to the test-services image being incompatible with Rust 2024.
No description provided.