Skip to content

Commit

Permalink
Updated readme #12
Browse files Browse the repository at this point in the history
  • Loading branch information
gmetzker committed Jan 31, 2017
1 parent 7086017 commit a6f8cdf
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Expand Up @@ -49,7 +49,19 @@ Use the `deadLetter.sqs` to create a new dead letter queue for the function.

The resulting cloudformation stack will contain an SQS Queue and it's respective QueuePolicy.

#### Create new dead-letter queue by name
```YAML
# 'functions' in serverless.yml

functions:
createUser: # Function name
handler: handler.createUser # Reference to function 'createUser' in code

deadLetter:
sqs: createUser-dl-queue # New Queue with this name
```

#### Create new dead-letter queue with properties
```YAML
# 'functions' in serverless.yml

Expand All @@ -58,7 +70,13 @@ functions:
handler: handler.createUser # Reference to function 'createUser' in code

deadLetter:
sqs: createUser-dl-queue
sqs: # New Queue with these properties
queueName: createUser-dl-queue
delaySeconds: 60
maximumMessageSize: 2048
messageRetentionPeriod: 200000
receiveMessageWaitTimeSeconds: 15
visibilityTimeout: 300
```

#### DeadLetter Topic
Expand Down

0 comments on commit a6f8cdf

Please sign in to comment.