diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-07-24 19:26:45 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-07-24 19:26:45 -0400 |
| commit | e872bcdc978283b45da22a4de5ed195dce613a71 (patch) | |
| tree | 6a7c7813e52e5c546cc6f187e12b5f5bdca42f6e /src/aws_context.rs | |
| parent | 77642df3e17b5272617c48832f37b7ab3dd6f27b (diff) | |
Upgrade AWS libraries.
This comes with some substantial removals, because the AWS libs no longer treat every last field as optional when it's inappropriate to do so. Hooray!
Diffstat (limited to 'src/aws_context.rs')
| -rw-r--r-- | src/aws_context.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/aws_context.rs b/src/aws_context.rs index 2eff941..8f1ae88 100644 --- a/src/aws_context.rs +++ b/src/aws_context.rs @@ -1,7 +1,7 @@ +use aws_config::{BehaviorVersion, SdkConfig}; use aws_sdk_autoscaling as asg; use aws_sdk_ec2 as ec2; use aws_sdk_route53 as route53; -use aws_types::SdkConfig; use crate::autoscaling::AutoScaling; use crate::ec2::Ec2; @@ -15,7 +15,9 @@ pub struct AwsContext { impl AwsContext { pub async fn from_env() -> Self { - let config = aws_config::from_env().load().await; + let config = aws_config::defaults(BehaviorVersion::v2024_03_28()) + .load() + .await; Self::new(&config) } |
