Changes to FaunaDB Documents -> AWS SQS
@dylburger
code:
data:privatelast updated:3 years ago
@dylburger/
Changes to FaunaDB Documents -> AWS SQS
  1. Copy this workflow and select the event source tied to your FaunaDB changes feed. This will run the workflow every time a document is added or removed in that collection.
  2. Create an IAM user and attach an IAM policy of the following format:
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": "sqs:SendMessage",
            "Resource": "[your-sqs-queue-arn]"
        }
    ]
}

This assumes you have an SQS queue created where you'd like events delivered. If not, go ahead an create one now.

  1. Click the Connect Account button in send_message_to_sqs step, saving your AWS access and secret keys from Step 2 above.
  2. Add the SQS queue URL as the value of the SQS Queue URL param.
  3. Make sure your event source is turned On, then Deploy the workflow.