From e872bcdc978283b45da22a4de5ed195dce613a71 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Wed, 24 Jul 2024 19:26:45 -0400 Subject: 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! --- src/aws_context.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/aws_context.rs') 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) } -- cgit v1.2.3