Skip to content

Commit

Permalink
Fix use of govuk_chat_retry_message-ttl variable
Browse files Browse the repository at this point in the history
  • Loading branch information
roch committed Jul 22, 2024
1 parent fa55cef commit 7dfc401
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions terraform/projects/app-publishing-amazonmq/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ resource "local_sensitive_file" "amazonmq_rabbitmq_definitions" {
for user, pw in random_password.mq_user : user => pw.result
}
publishing_amazonmq_broker_name = var.publishing_amazonmq_broker_name
govuk_chat_retry_message-ttl = var.govuk_chat_retry_message-ttl
})
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"apply-to": "queues",
"definition": {
"dead-letter-exchange": "govuk_chat_dlx",
"message-ttl":"${govuk_chat_retry_message-ttl}",
"message-ttl":${govuk_chat_retry_message-ttl},
"ha-mode": "all",
"ha-sync-mode": "automatic"
},
Expand Down
4 changes: 2 additions & 2 deletions terraform/projects/app-publishing-amazonmq/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ variable "publishing_amazonmq_broker_name" {
}

variable "govuk_chat_retry_message-ttl" {
type = string
type = number
description = "Time in miliseconds before messages in the govuk_chat_retry queue expires and are sent back to the govuk_chat_published_ducoments queue through the dead letter mechanism"
default = "300000"
default = 300000
}

variable "elb_internal_certname" {
Expand Down

0 comments on commit 7dfc401

Please sign in to comment.