๋ฒํท ๋ง๋ค๊ธฐ (์ฐธ๊ณ ๋ธ๋ก๊ทธ)
build.gradle
1
2
3
4
5
6
7
dependencies{
// S3
implementation'org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE'
}
application.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
cloud:
aws:
s3:
bucket: ${S3_BUCKET_NAME}
credentials:
access-key: ${AWS_ACCESS_KEY_ID}
secret-key: ${AWS_SECRET_ACCESS_KEY}
region:
static: ${S3_REGION}
auto: false
stack:
auto: false
logging:
level:
org:
EC2MetadataUtils: ERROR
accessKey, secretKey ๋ฐ๊ณ ์ ์ฅํด ๋๊ธฐ
๋ฐ๊ธ๋ฐ์ ๋น์๋ง ํ์ธ ๊ฐ๋ฅํ๋ ์ ์ ์ฅํด๋๊ธฐ!