-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from ryanmurakami/v3
11.2021 Update
- Loading branch information
Showing
47 changed files
with
29,872 additions
and
8,493 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
const { SNSClient } = require('@aws-sdk/client-sns') | ||
const { | ||
SNSClient, | ||
PublishCommand | ||
} = require('@aws-sdk/client-sns') | ||
|
||
const client = new SNSClient({ region: process.env.AWS_REGION }) | ||
const TOPIC_ARN = '/* TODO: Add your topic arn */' | ||
const topicArn = '/* TODO: Add your topic arn */' | ||
|
||
function publish (msg) { | ||
// TODO: Create params const object | ||
|
||
return new Promise((resolve, reject) => { | ||
// TODO: Publish message | ||
}) | ||
// TODO: Publish message to SNS topic | ||
} | ||
|
||
module.exports = { publish } |
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,14 +1,14 @@ | ||
const { SQSClient } = require('@aws-sdk/client-sqs') | ||
const { | ||
SQSClient, | ||
GetQueueUrlCommand, | ||
SendMessageCommand | ||
} = require('@aws-sdk/client-sqs') | ||
|
||
const client = new SQSClient({ region: process.env.AWS_REGION }) | ||
|
||
function push (queueName, msg) { | ||
// TODO: Create params const to get queue URL | ||
|
||
return new Promise((resolve, reject) => { | ||
// TODO: Get sqs queue URL | ||
// Then send message to queue url | ||
}) | ||
async function push (queueName, msg) { | ||
// TODO: Get sqs queue URL | ||
// Then send message to queue url | ||
} | ||
|
||
module.exports = { push } |
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
Oops, something went wrong.