diff --git a/src/main/java/com/aws/greengrass/util/S3SdkClientFactory.java b/src/main/java/com/aws/greengrass/util/S3SdkClientFactory.java index 2afeae65b6..f99a03f65b 100644 --- a/src/main/java/com/aws/greengrass/util/S3SdkClientFactory.java +++ b/src/main/java/com/aws/greengrass/util/S3SdkClientFactory.java @@ -37,7 +37,7 @@ public class S3SdkClientFactory { public S3SdkClientFactory(DeviceConfiguration deviceConfiguration, LazyCredentialProvider credentialsProvider) { this.credentialsProvider = credentialsProvider; this.deviceConfiguration = deviceConfiguration; - this.deviceConfiguration.getAWSRegion().subscribe((what, node) -> handleRegionUpdate()); + this.deviceConfiguration.onAnyChange((what, node) -> handleRegionUpdate()); } protected void handleRegionUpdate() {