Skip to content

Commit

Permalink
feat : AWS S3 upload
Browse files Browse the repository at this point in the history
  • Loading branch information
minjoon-98 committed Jul 9, 2024
1 parent 7ad4c0d commit 67eb76c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/java/ongjong/namanmoo/service/AwsS3Service.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ public class AwsS3Service {
private final String bucket;

public AwsS3Service(
@Value("${aws.accessKeyId}") String accessKeyId,
@Value("${aws.secretKey}") String secretKey,

@Value("${cloud.aws.credentials.access-key}") String accessKeyId,
@Value("${cloud.aws.credentials.secret-key}") String secretKey,
@Value("${cloud.aws.s3.bucket}") String bucket,
@Value("${aws.region}") String region) {
@Value("${cloud.aws.region.static}") String region) {

BasicAWSCredentials awsCreds = new BasicAWSCredentials(accessKeyId, secretKey);
this.amazonS3Client = AmazonS3ClientBuilder.standard()
.withRegion(region)
Expand Down

0 comments on commit 67eb76c

Please sign in to comment.