Skip to content

Commit a7c9345

Browse files
committed
SNS configuration
1 parent 88c6685 commit a7c9345

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/main/java/scorekeep/RdsWebConfig.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,10 @@ public DataSource dataSource() {
4141
public GameHistoryModel gameHistoryModel() {
4242
return new GameHistoryModel();
4343
}
44+
45+
static {
46+
if ( System.getenv("NOTIFICATION_EMAIL") != null ){
47+
Sns.createSubscription();
48+
}
49+
}
4450
}

0 commit comments

Comments
 (0)