Skip to content

Commit c64fc49

Browse files
authored
fix: aws region set on yml (#170)
1 parent ba0b6fe commit c64fc49

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

src/main/resources/application-dev.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,22 @@ spring:
2020
jpa:
2121
database-platform: org.hibernate.dialect.H2Dialect
2222
hibernate:
23-
ddl-auto: update # 개발용: 시작할 때 테이블 생성, 종료할 때 삭제
23+
ddl-auto: create-drop # 개발용: 시작할 때 테이블 생성, 종료할 때 삭제 / db_dev 에러 방지용으로 upsdate->create-drop 변경
2424
properties:
2525
hibernate:
2626
format_sql: true
2727
show_sql: true
2828

29+
cloud:
30+
aws:
31+
region:
32+
static: ap-northeast-2
33+
stack:
34+
auto: false
35+
credentials:
36+
access-key: ${AWS_ACCESS_KEY_ID:dummy} # 로컬용 더미값
37+
secret-key: ${AWS_SECRET_ACCESS_KEY:dummy}
38+
2939
# Swagger 설정
3040
springdoc:
3141
api-docs:

src/main/resources/application-prod.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ spring:
2323
properties:
2424
hibernate:
2525
show_sql: false
26+
cloud:
27+
aws:
28+
region:
29+
static: ap-northeast-2
30+
stack:
31+
auto: false
2632

2733
springdoc:
2834
swagger-ui:

0 commit comments

Comments
 (0)