From 66987565b5b38a6f060eee959bff91bf2182a8e6 Mon Sep 17 00:00:00 2001 From: Jens Reimann Date: Wed, 31 Jan 2024 09:23:25 +0100 Subject: [PATCH] fix: set a default behavior version --- event-bus/src/sqs.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/event-bus/src/sqs.rs b/event-bus/src/sqs.rs index b0ba7eaf2..d2ced7b14 100644 --- a/event-bus/src/sqs.rs +++ b/event-bus/src/sqs.rs @@ -1,5 +1,5 @@ use crate::Event; -use aws_config::SdkConfig; +use aws_config::{BehaviorVersion, SdkConfig}; use aws_credential_types::credential_fn::provide_credentials_fn; use aws_credential_types::provider::SharedCredentialsProvider; use aws_sdk_sqs::config::Region; @@ -32,6 +32,7 @@ impl SqsEventBus { let region = Region::new(region.into()); let config = SdkConfig::builder() .region(region) + .behavior_version(BehaviorVersion::latest()) .credentials_provider(SharedCredentialsProvider::new(provide_credentials_fn(move || { let creds = creds.clone(); async { Ok(creds) }