diff --git a/spring-cloud-config-server/src/test/java/org/springframework/cloud/config/server/AwsS3IntegrationTests.java b/spring-cloud-config-server/src/test/java/org/springframework/cloud/config/server/AwsS3IntegrationTests.java index b945edf7..b7b08d17 100644 --- a/spring-cloud-config-server/src/test/java/org/springframework/cloud/config/server/AwsS3IntegrationTests.java +++ b/spring-cloud-config-server/src/test/java/org/springframework/cloud/config/server/AwsS3IntegrationTests.java @@ -80,8 +80,6 @@ public class AwsS3IntegrationTests { "--spring.cloud.config.server.awss3.region=" + localstack.getRegion(), "--spring.cloud.aws.endpoint=" + localstack.getEndpointOverride(LocalStackContainer.Service.S3).toString(), - "--spring.cloud.aws.credentials.access-key=" + localstack.getAccessKey(), - "--spring.cloud.aws.credentials.secret-key=" + localstack.getSecretKey(), "--spring.cloud.aws.region.static=" + localstack.getRegion(), "--logging.level.org.springframework.cloud.config.server.environment=DEBUG", "--debug=true"}); @@ -142,8 +140,6 @@ public class AwsS3IntegrationTests { @Bean S3Client s3Client() { return S3Client.builder() - .credentialsProvider( - () -> AwsBasicCredentials.create(localstack.getAccessKey(), localstack.getSecretKey())) .region(Region.of(localstack.getRegion())) .endpointOverride(localstack.getEndpointOverride(LocalStackContainer.Service.S3)).build(); }