Skip to content

Commit

Permalink
aws sns 서비스를 사용하기위해 notification layer 를 추가하라 (#49)
Browse files Browse the repository at this point in the history
aws sns 서비스를 사용하기위해 notification layer 를 추가하라
  • Loading branch information
truman-show committed Jun 12, 2021
2 parents 6578bb5 + ab5391c commit da42a3b
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 2 deletions.
8 changes: 8 additions & 0 deletions adapters/notification/adapter-aws-sns/build.gradle
@@ -0,0 +1,8 @@
bootJar.enabled = false
jar.enabled = true

dependencies {
implementation project(':common')
implementation project(':test-support')
implementation 'software.amazon.awssdk:sns'
}
@@ -0,0 +1,5 @@
/**
* AWS SNS 서비스 root package.
*/

package com.caregiver;
@@ -0,0 +1,7 @@

caregiver:
aws:
access-key: ${caregiver.aws.secret-key}
secret-key: ${caregiver.aws.access-key}
sns:
arn: ${caregiver.aws.sns.arn}
@@ -0,0 +1,14 @@
spring:
profiles:
include: private

caregiver:
aws:
#service-endpoint:
signing-region: ap-northeast-2
access-key: ${caregiver.aws.secret-key}
secret-key: ${caregiver.aws.access-key}
sns:
arn: ${caregiver.aws.sns.arn}


4 changes: 3 additions & 1 deletion build.gradle
Expand Up @@ -26,6 +26,7 @@ subprojects {
springBootVersion = "2.3.4.RELEASE"
mockitoVersion = "3.4.0"
lombokVersion = "1.18.12"
awsSdkVersion = "2.16.82"
}

dependencies {
Expand Down Expand Up @@ -55,7 +56,8 @@ subprojects {
//https://docs.spring.io/dependency-management-plugin/docs/current-SNAPSHOT/reference/html/#dependency-management-configuration-bom-import
// 하위 모듈 내에서 이러한 종속성 중 하나가 필요한 경우 버전 번호가 dependencyManagement 클로저에서 로드되므로 버전 번호를 제공하지 않고 하위 모듈에서 지정할 수 있습니다.
// 이를 통해 Maven의 pom.xml 파일에있는 <dependencyManagement> 요소와 매우 유사하게 여러 모듈에 배포하는 대신 단일 위치에서 버전 번호를 지정할 수 있습니다.
mavenBom("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")
mavenBom"org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
mavenBom"software.amazon.awssdk:bom:${awsSdkVersion}"
}
}

Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Expand Up @@ -6,6 +6,7 @@ include 'common'
include 'domain'

// adapter layer
include 'adapters:notification:adapter-aws-sns'
include 'adapters:persistence:adapter-maria'
include 'adapters:web:adapter-client-api'
include 'adapters:web:adapter-admin-api'
Expand All @@ -16,4 +17,3 @@ include 'applications:admin-api'

// test support
include 'test-support'

0 comments on commit da42a3b

Please sign in to comment.