alternera_plugin_sqs

CI

The Amazon SQS plugin for Alternera pipelines: a step sends a message to an SQS queue, or receives, deletes or releases messages, in SQS's JSON protocol, each call signed with AWS Signature Version 4. Receiving runs from a message trigger (Sqs.Source, an SQS queue as a message source), or from a pipeline a continuous trigger runs. It works with any service that speaks SQS's JSON protocol.

The package builds on the plugin SDK and the editor contract (alternera-sdk) and calls nothing of the proxy: the call goes through Plugin.Provisional.Outbound as a proxy user of the tenant, and the secret access key is a tenant secret revealed with Plugin.Secret.reveal/3. Alternera ships it: the proxy depends on it and lists Alternera.Plugins.Sqs among its shipped plugins.

Tests

test/ checks the signer against the AWS SigV4 test-suite vectors, and the contract and the calls with the SDK's kit, with no proxy around:

mix deps.get
mix test

Tagged elasticmq, a real round trip against ElasticMQ, left out by default:

docker run -d --name alternera-elasticmq -p 9324:9324 softwaremill/elasticmq-native
mix test --only elasticmq

To test against an unreleased SDK, point ALTERNERA_SDK_PATH at an absolute path to a checkout of alternera-sdk.

Documentation

Working on it with Alternera

Alternera takes this package from Hex. To change it and the proxy together, check this repository out and point ALTERNERA_SQS_PATH at that checkout (an absolute path) when building Alternera; it then takes the package from there. Release this package first, then the Alternera change that requires the new version.

Licence

Licensed under the Apache License, Version 2.0 (LICENSE, NOTICE). Alternera itself, the proxy this package plugs into, is under the Elastic License 2.0.