-
Notifications
You must be signed in to change notification settings - Fork 521
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
infrasys: update to AWS SDK Rust #2414
Conversation
Opening draft on @rpkelly's behalf. We'll want to merge around the same time that we transition pubsys. |
tools/Cargo.lock
Outdated
@@ -46,9 +46,9 @@ dependencies = [ | |||
|
|||
[[package]] | |||
name = "anyhow" | |||
version = "1.0.58" |
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.
Do we want the updated packages in a separate commit?
e1f3202
to
167da43
Compare
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.
With this change, we should be able to remove L66-67 in tools/deny.toml
.
tools/infrasys/src/shared.rs
Outdated
@@ -32,23 +32,27 @@ pub async fn get_stack_outputs( | |||
cfn_client: &CloudFormationClient, | |||
stack_name: &str, | |||
region: &str, | |||
) -> Result<Vec<rusoto_cloudformation::Output>> { | |||
) -> Result<Vec<aws_sdk_cloudformation::model::Output>> { |
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: Same here re: imports
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.
What we probably want is something like
use aws_sdk_cloudformation::output::DescribeStacksOutput;
and then have
Result<Vec<DescribeStacksOutput>>
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.
imported outputs at the top. Outputs is actually the type we want to return here.
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.
Ah, I see it changes from DescribeStacksOutput
when you get to the .stacks
.
Output
seems very non-descriptive though and could conflict with something else down the road. Would it be better to do use aws_sdk_cloudformation::model::{Output as CfnOutput, Parameter}
?
e7c6955
to
a04c80d
Compare
Co-authored-by: Patrick J.P. Culp <jpculp@amazon.com>
a04c80d
to
19fb48c
Compare
Issue number:
#1968
Description of changes:
Replaces rusoto with aws-sdk-for-rust in infrasys.
Testing done:
Coming soon!
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.