Send an SQS message
Put a message on an Amazon SQS queue and pass its message id to later steps. Works with standard and FIFO queues.
Install v1.0.0
Installs the template into your Argo namespace. The URL is pinned to this version.
kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/sqs-send-message/1.0.0/template.yaml
Or with the Argo CLI:
argo template create -n argo https://catalog.dagweave.com/api/v1/items/sqs-send-message/1.0.0/template.yaml
Facts
- Category
- Notifications
- Tags
- aws-cli notifications
- Entrypoint
send- Template SHA-256
a8256b393b6fe42e8163dff13ae7b4ffaec89073ac2a7e530f81781845dba338- Source
- sqs-send-message at catalog commit 67458f7
- API
- item document, latest template.yaml
Images and provenance
Every image is pinned by digest, so a rebuilt tag can never change what this version runs.
| Repository | Tag | Digest |
|---|---|---|
amazon/aws-cli | 2.39.3 | sha256:d557b3524475d70dd3104cf44d96568ee3188897b73a6ece2b37aa50e1af362f |
Parameters
| Name | Description | Default |
|---|---|---|
message-body required |
Body of the message. Example {"order": 1042} |
none |
queue-url required |
URL of the queue. Example https://sqs.us-east-1.amazonaws.com/123456789012/orders |
none |
aws-access-key-id-key |
Key in that Secret that holds the access key id. | access-key-id |
aws-secret-access-key-key |
Key in that Secret that holds the secret access key. | secret-access-key |
aws-secret-name |
Name of the Kubernetes Secret that holds the AWS credentials. | aws-credentials |
message-deduplication-id |
Deduplication id for a FIFO queue. Leave blank to use content-based deduplication. | empty |
message-group-id |
Message group id. Required by FIFO queues, leave blank for standard ones. | empty |
region |
AWS region of the resource. | us-east-1 |
WorkflowTemplate
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: sqs-send-message
labels:
dagweave.io/catalog-item: sqs-send-message
annotations:
dagweave.io/catalog-version: "1.0.0"
dagweave.io/catalog-category: "Notifications"
spec:
entrypoint: send
templates:
- name: send
inputs:
parameters:
- name: queue-url
- name: message-body
- name: message-group-id
default: ""
- name: message-deduplication-id
default: ""
- name: region
default: "us-east-1"
- name: aws-secret-name
default: "aws-credentials"
- name: aws-access-key-id-key
default: "access-key-id"
- name: aws-secret-access-key-key
default: "secret-access-key"
outputs:
parameters:
# Id SQS gave the message.
- name: message-id
valueFrom:
path: /tmp/message-id
retryStrategy:
limit: "2"
retryPolicy: OnError
backoff:
duration: 10s
factor: "2"
maxDuration: 2m
container:
# amazon/aws-cli:2.39.3
image: amazon/aws-cli@sha256:d557b3524475d70dd3104cf44d96568ee3188897b73a6ece2b37aa50e1af362f
command: [sh, -c]
args:
- |
set -eu
set -- sqs send-message --queue-url "${QUEUE_URL}" --message-body "${MESSAGE_BODY}" --query MessageId --output text
if [ -n "${MESSAGE_GROUP_ID}" ]; then set -- "$@" --message-group-id "${MESSAGE_GROUP_ID}"; fi
if [ -n "${MESSAGE_DEDUPLICATION_ID}" ]; then set -- "$@" --message-deduplication-id "${MESSAGE_DEDUPLICATION_ID}"; fi
aws "$@" | tee /tmp/message-id
env:
- name: QUEUE_URL
value: "{{inputs.parameters.queue-url}}"
- name: MESSAGE_BODY
value: "{{inputs.parameters.message-body}}"
- name: MESSAGE_GROUP_ID
value: "{{inputs.parameters.message-group-id}}"
- name: MESSAGE_DEDUPLICATION_ID
value: "{{inputs.parameters.message-deduplication-id}}"
- name: AWS_DEFAULT_REGION
value: "{{inputs.parameters.region}}"
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: "{{inputs.parameters.aws-secret-name}}"
key: "{{inputs.parameters.aws-access-key-id-key}}"
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: "{{inputs.parameters.aws-secret-name}}"
key: "{{inputs.parameters.aws-secret-access-key-key}}"
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
memory: 256Mi
Version history
Read from the item's changelog. Each version has its own JSON document; the pinned catalogue vendors the manifest of the latest one, so that is the version that installs.
-
1.0.0 latest 2026-10-18
Initial release.
kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/sqs-send-message/1.0.0/template.yamlargo template create -n argo https://catalog.dagweave.com/api/v1/items/sqs-send-message/1.0.0/template.yaml
Run it once
After installing, from the command line.
argo submit -n argo --from workflowtemplate/sqs-send-message \
-p message-body='{"order": 1042}' \
-p queue-url=https://sqs.us-east-1.amazonaws.com/123456789012/orders
Workflow that references it
A Workflow with the required parameters filled from the examples.
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: sqs-send-message-
spec:
workflowTemplateRef:
name: sqs-send-message
arguments:
parameters:
- name: message-body
value: "{\"order\": 1042}"
- name: queue-url
value: "https://sqs.us-east-1.amazonaws.com/123456789012/orders"
As a step of a larger workflow
steps:
- - name: sqs-send-message
templateRef:
name: sqs-send-message
template: send