|
|
|
@ -8,7 +8,10 @@ import software.amazon.awssdk.auth.credentials.StaticCredentialsProvider;
|
|
|
|
import software.amazon.awssdk.regions.Region;
|
|
|
|
import software.amazon.awssdk.regions.Region;
|
|
|
|
import software.amazon.awssdk.services.s3.S3Client;
|
|
|
|
import software.amazon.awssdk.services.s3.S3Client;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
|
|
|
|
|
|
|
|
|
|
|
@Configuration
|
|
|
|
@Configuration
|
|
|
|
|
|
|
|
@ConditionalOnProperty(name = "storage.provider", havingValue = "s3")
|
|
|
|
public class AwsConfig {
|
|
|
|
public class AwsConfig {
|
|
|
|
|
|
|
|
|
|
|
|
@Value("${cloud.aws.credentials.access-key}")
|
|
|
|
@Value("${cloud.aws.credentials.access-key}")
|
|
|
|
|