Skip to content

Commit

Permalink
feat(aws-ecs-patterns): setup associated DLQ when Queue created by CD…
Browse files Browse the repository at this point in the history
…K for QueueProcessingFargateService
  • Loading branch information
SeekerWing committed Feb 19, 2020
1 parent 6f2560b commit 0f33f7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-ecs-patterns/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ const queueProcessingFargateService = new QueueProcessingFargateService(stack, '
});
```

when queue not provided by user, CDK will create a primary queue and a dead letter queue with default redrive policy and attach permission to the task to be able to acces the primary queue.
when queue not provided by user, CDK will create a primary queue and a dead letter queue with default redrive policy and attach permission to the task to be able to access the primary queue.

## Scheduled Tasks

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export abstract class QueueProcessingServiceBase extends Construct {
public readonly sqsQueue: IQueue;

/**
* The dead letter queue for the SQS queue that the service will process from
* The dead letter queue for the primary SQS queue
*/
public readonly deadLetterQueue?: IQueue;

Expand Down Expand Up @@ -204,7 +204,7 @@ export abstract class QueueProcessingServiceBase extends Construct {
}
this.cluster = props.cluster || this.getDefaultCluster(this, props.vpc);

// Create the SQS queue if one is not provided, when creating SQS queue setup DLQ
// Create the SQS queue and it's corresponding DLQ if one is not provided
if (props.queue) {
this.sqsQueue = props.queue;
} else {
Expand Down

0 comments on commit 0f33f7c

Please sign in to comment.