Amazon SQS
Use Amazon SQS when an application already reads work from an SQS queue. An Event Channel target can publish a Files.com event, such as the successful completion of a nightly inventory run. An Automation v2 publishing action can send custom JSON to the same queue when a file or result reaches a particular branch.
Queue and Credentials in AWS
Use a standard queue if your consumer can handle messages arriving more than once or out of order. Use a FIFO queue when the consumer needs the queue to preserve the order in which messages arrive within the same message group.
Copy the queue's Amazon Resource Name (ARN), such as arn:aws:sqs:us-east-1:123456789012:inventory-events.fifo. Use an AWS access key ID and secret access key for an identity with sqs:SendMessage permission on the queue. The consumer uses its own credentials to receive and delete messages.
For a queue encrypted with an AWS KMS key, the sending identity also needs kms:Decrypt and kms:GenerateDataKey on the key. Amazon SQS key permissions
Send From Files.com
Files.com gets the region from the queue ARN. For a FIFO queue, provide a message group ID. Files.com sends messages from the configured target or node in the group you select.
Event Channels
Create an Amazon SQS target with the queue ARN and access keys. Select the target in the subscription that matches the events your application needs. For a queue that several Workspaces use, check the Workspace scope of both the subscription and the target.
Automations v2
In the Publish to Amazon SQS action, enter the queue ARN and select a Key/Value Secret with the AWS credentials. The message body contains the JSON you build for each item.
Checking Delivery
For an Event Channel target, generate a matching event and open its Delivery Attempt. Success confirms Amazon SQS accepted the send. The record includes the SQS message ID. Check the queue for the event in the JSON message body and use the consumer's records to confirm it processed the event.
If there is no attempt, check the subscription's event types, filters, and Workspace scope. If the attempt reports an error, check that the ARN points to the intended queue and that the access key is active and has the required permissions.
For a publishing action, select the node in Run Detail to see which deliveries succeeded and which items failed.
Retries and Repeat Messages
For an Event Channel target, Files.com reuses the deduplication ID on retries of the same delivery to a FIFO queue. SQS suppresses repeat sends within its five-minute deduplication window. A retry after that window can add another message. A retry can also put an earlier event into the queue after a later event has already arrived.
A standard queue can deliver a message more than once. A FIFO queue can also make a message available again if the consumer's visibility timeout expires before it deletes the message. For events, use the event ID to recognize work the consumer already completed. For a custom Automation message, include an identifier for the work so the consumer can recognize it if a later run sends it again.