-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f79c1be
commit 216b027
Showing
8 changed files
with
1,610 additions
and
269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
import AWS from 'aws-sdk'; | ||
import { SNSClient, PublishCommand } from '@aws-sdk/client-sns'; | ||
|
||
AWS.config.update({ region: process.env.AWS_REGION }); | ||
|
||
const sns = new AWS.SNS({ | ||
apiVersion: '2012-11-05', | ||
}); | ||
const client = new SNSClient({ region: process.env.AWS_REGION }); | ||
|
||
export function publish(message) { | ||
return sns.publish(message).promise(); | ||
return client.send(new PublishCommand(message)); | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.