diff --git a/pages/docs/guides/aws-sns-notifications.mdx b/pages/docs/guides/aws-sns-notifications.mdx index ecc15f45c..94b6b46f8 100644 --- a/pages/docs/guides/aws-sns-notifications.mdx +++ b/pages/docs/guides/aws-sns-notifications.mdx @@ -1,4 +1,4 @@ -# Using SNS to trigger functions +# Using Amazon SNS to trigger functions Amazon's [Simple Notification Service (SNS)](https://aws.amazon.com/sns/) is a pub/sub service that allows you to send messages to a topic and have them delivered to subscribers. In this example, we'll use SNS to trigger an Inngest function when a new file is uploaded to an S3 bucket. @@ -34,7 +34,7 @@ function transform(evt, headers = {}, queryParams = {}) { } catch(e) { // If the fails, push the entire SNS notification through: return { - id: evt.MessageId, // used for deduplication + id: evt.MessageId, name: `aws.sns/${evt.Notification}`, data: evt, }; @@ -57,7 +57,7 @@ function transform(evt, headers = {}, queryParams = {}) { } catch(e) {/* noop */} return { - id: e.MessageId, // used for deduplication + id: evt.MessageId, // used for deduplication name: `sns/${evt.Notification}`, data: { ...evt, Message }, }; diff --git a/shared/Docs/navigationStructure.ts b/shared/Docs/navigationStructure.ts index ceeac4547..5fcdec96d 100644 --- a/shared/Docs/navigationStructure.ts +++ b/shared/Docs/navigationStructure.ts @@ -114,7 +114,7 @@ const sectionGuides = [ href: `/docs/guides/user-defined-workflows`, }, { - title: "Using SNS to trigger functions", + title: "Using Amazon SNS to trigger functions", href: `/docs/guides/aws-sns-notifications`, }, {