@queues

Define SQS topics with Lambda handler functions.

Syntax

  • Lower + upper case alphanumeric string
  • Maximum of 240 characters
  • Dashes, periods, and underscores are allowed
  • Must begin with a letter

Example

This app.arc file defines two @queues:

arc
@app
myapp

@queues
convert-image
publish-log
json
{
  "app": "myapp",
  "queues": [
    "convert-image",
    "publish-log"
  ]
}
yaml
---
app: myapp
queues:
- convert-image
- publish-log

Running arc create generates the following handlers:

/
├── src/queues/
│   ├── convert-image/
│   └── publish-log/
├── app.arc
└── package.json