diff --git a/changelog/unreleased/pr-24155.toml b/changelog/unreleased/pr-24155.toml new file mode 100644 index 0000000000..d1c6a67870 --- /dev/null +++ b/changelog/unreleased/pr-24155.toml @@ -0,0 +1,4 @@ +type = "fixed" +message = "Fixed issue that could cause some AWS inputs to fail when used with used with temporary STS credentials." + +pulls = ["24155"] diff --git a/graylog2-server/src/main/java/org/graylog/integrations/aws/AWSAuthFactory.java b/graylog2-server/src/main/java/org/graylog/integrations/aws/AWSAuthFactory.java index 604800b5de..d11e742a92 100644 --- a/graylog2-server/src/main/java/org/graylog/integrations/aws/AWSAuthFactory.java +++ b/graylog2-server/src/main/java/org/graylog/integrations/aws/AWSAuthFactory.java @@ -69,7 +69,7 @@ public class AWSAuthFactory { awsCredentials = getKeySecretCredentialsProvider(accessKey, secretKey); } else { LOG.debug("Using default authorization provider chain."); - awsCredentials = DefaultCredentialsProvider.create(); + awsCredentials = DefaultCredentialsProvider.builder().build(); } return awsCredentials; }