Skip to content
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

Merged
merged 1 commit into from
Jul 26, 2022

Conversation

rpkelly
Copy link
Contributor

@rpkelly rpkelly commented Jul 26, 2022

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.

@rpkelly rpkelly marked this pull request as ready for review July 26, 2022 06:18
@etungsten
Copy link
Contributor

I've verified that the sundog/pluto proxy testing from #2227 still works as expected.

@@ -1,10 +1,10 @@
use std::str::FromStr;

Copy link
Contributor

@etungsten etungsten Jul 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: extra line

sources/api/pluto/src/eks.rs Show resolved Hide resolved
Copy link
Contributor

@zmrow zmrow left a 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()))
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@rpkelly rpkelly merged commit cd48374 into bottlerocket-os:develop Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants