File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
s3/src/main/java/com/instaclustr/kafka/connect/s3 Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ public static AmazonS3ClientBuilder getS3ClientBuilderWithRegionAndCredentials(f
4242 AWSStaticCredentialsProvider awsStaticCredentialsProvider = new AWSStaticCredentialsProvider (new BasicAWSCredentials (accessKey , secret ));
4343 AWSCredentialsProvider awsCredentialsProvider ;
4444
45- if (roleArn == null || StringUtils .isBlank (roleArn )) {
45+ if (StringUtils .isBlank (roleArn )) {
4646 // when IAM user has direct access to the S3 bucket
4747 awsCredentialsProvider = awsStaticCredentialsProvider ;
4848 } else {
@@ -58,7 +58,6 @@ public static AmazonS3ClientBuilder getS3ClientBuilderWithRegionAndCredentials(f
5858
5959 awsCredentialsProvider = assumeRoleBuilder
6060 .withStsClient (awsSecurityTokenService )
61- .withRoleSessionDurationSeconds ((int ) TimeUnit .HOURS .toSeconds (1 ))
6261 .build ();
6362 }
6463
You can’t perform that action at this time.
0 commit comments