diff --git a/src/main/java/com/example/fiurinee/S3Controller.java b/src/main/java/com/example/fiurinee/S3Controller.java index c6c6127..5212e70 100644 --- a/src/main/java/com/example/fiurinee/S3Controller.java +++ b/src/main/java/com/example/fiurinee/S3Controller.java @@ -16,7 +16,7 @@ public class S3Controller { private final AmazonS3 s3Client; private final String bucketName; - public S3Controller(AmazonS3 s3Client, @Value("${cloud.aws.s3.bucket}") String bucketName) { + public S3Controller(AmazonS3 s3Client, @Value("${AWS_BUCKET}") String bucketName) { this.s3Client = s3Client; this.bucketName = bucketName; } diff --git a/src/main/java/com/example/fiurinee/StorageConfig.java b/src/main/java/com/example/fiurinee/StorageConfig.java index 2407ce2..ada5b6b 100644 --- a/src/main/java/com/example/fiurinee/StorageConfig.java +++ b/src/main/java/com/example/fiurinee/StorageConfig.java @@ -12,10 +12,10 @@ @Configuration public class StorageConfig { - @Value("${cloud.aws.credentials.accessKey}") + @Value("${AWS_ACCESSKEY}") private String accessKey; - @Value("${cloud.aws.credentials.secretKey}") + @Value("${AWS_SECRETKEY}") private String accessSecret; @Value("${cloud.aws.region.static}") private String region; diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 6ac1358..9f6a1fc 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -19,10 +19,10 @@ logging.level: cloud: aws: credentials: - accessKey: ${cloud.aws.credentials.accessKey} - secretKey: ${cloud.aws.credentials.secretKey} + accessKey: ${AWS_ACCESSKEY} + secretKey: ${AWS_SECRETKEY} s3: - bucket: ${cloud.aws.s3.bucket} + bucket: ${AWS_BUCKET} region: static: ap-northeast-2 stack: