Skip to content

Commit 2b40654

Browse files
authored
Merge pull request #144 from NHSDigital/feature/CCM-13638_lambda-eventpub-dlq-retention-period
CCM-13638: dlq retention on lambda and eventpub modules
2 parents 2ecedc6 + 4fff177 commit 2b40654

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

infrastructure/modules/eventpub/sqs_queue_dlq.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ resource "aws_sqs_queue" "dlq" {
22
name = "${local.csi}-dlq"
33

44
kms_master_key_id = var.kms_key_arn
5+
6+
message_retention_seconds = 1209600
57
}

infrastructure/modules/lambda/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
| <a name="input_iam_policy_document"></a> [iam\_policy\_document](#input\_iam\_policy\_document) | n/a | <pre>object({<br/> body = string<br/> })</pre> | `null` | no |
3333
| <a name="input_kms_key_arn"></a> [kms\_key\_arn](#input\_kms\_key\_arn) | KMS key arn to use for this function | `string` | n/a | yes |
3434
| <a name="input_lambda_at_edge"></a> [lambda\_at\_edge](#input\_lambda\_at\_edge) | Whether this Lambda is a Lambda@Edge function | `bool` | `false` | no |
35-
| <a name="input_lambda_dlq_message_retention_seconds"></a> [lambda\_dlq\_message\_retention\_seconds](#input\_lambda\_dlq\_message\_retention\_seconds) | The number of seconds to retain messages in the Lambda DLQ SQS queue | `number` | `86400` | no |
35+
| <a name="input_lambda_dlq_message_retention_seconds"></a> [lambda\_dlq\_message\_retention\_seconds](#input\_lambda\_dlq\_message\_retention\_seconds) | The number of seconds to retain messages in the Lambda DLQ SQS queue | `number` | `1209600` | no |
3636
| <a name="input_lambda_env_vars"></a> [lambda\_env\_vars](#input\_lambda\_env\_vars) | Lambda environment parameters map | `map(string)` | `{}` | no |
3737
| <a name="input_layers"></a> [layers](#input\_layers) | Lambda layer arns to include | `list(any)` | `[]` | no |
3838
| <a name="input_log_destination_arn"></a> [log\_destination\_arn](#input\_log\_destination\_arn) | Destination ARN to use for the log subscription filter | `string` | `""` | no |

infrastructure/modules/lambda/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ variable "sns_destination_kms_key" {
186186
variable "lambda_dlq_message_retention_seconds" {
187187
type = number
188188
description = "The number of seconds to retain messages in the Lambda DLQ SQS queue"
189-
default = 86400
189+
default = 1209600
190190
}
191191

192192
variable "application_log_level" {

0 commit comments

Comments
 (0)