-
Notifications
You must be signed in to change notification settings - Fork 510
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
Update sources to use AWS SDK Rust #2300
Conversation
I've verified that the sundog/pluto proxy testing from #2227 still works as expected. |
@@ -1,10 +1,10 @@ | |||
use std::str::FromStr; | |||
|
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.
nit: extra line
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.
🫕
@@ -57,6 +46,11 @@ pub(super) async fn get_cluster_network_config( | |||
.find(|env_var| *env_var != Err(env::VarError::NotPresent)) | |||
.and_then(|s| s.ok()); | |||
|
|||
let config = aws_config::from_env() | |||
.region(Region::new(region.to_owned())) |
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'm a little weirded out by the fact that aws_sdk_rust
doesn't attempt to do validation on the input string. We also don't do any validation on settings.aws.regions
. I'm assuming this just takes whatever is given here and generates API endpoints. Just something to keep in mind.
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.
We could probably make some guesses surrounding what a region name looked like, but, I feel like we open ourselves to being broken every time a new region is released by doing so.
Issue number:
1968
Description of changes:
Updates pluto and cfsignal in sources to use AWS SDK Rust.
Testing done:
Unit testing and built image locally.
Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.