Skip to content

Commit

Permalink
feat: adding message retention seconds (#1354)
Browse files Browse the repository at this point in the history
Co-authored-by: Ross Williams <[email protected]>
  • Loading branch information
rossrollin and Ross Williams authored Nov 1, 2021
1 parent 0b9ba90 commit a19929f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ resource "aws_sqs_queue" "queued_builds" {
name = "${var.environment}-queued-builds.fifo"
delay_seconds = var.delay_webhook_event
visibility_timeout_seconds = var.runners_scale_up_lambda_timeout
message_retention_seconds = var.job_queue_retention_in_seconds
fifo_queue = true
receive_wait_time_seconds = 10
content_based_deduplication = true
Expand Down
6 changes: 5 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,11 @@ variable "delay_webhook_event" {
type = number
default = 30
}

variable "job_queue_retention_in_seconds" {
description = "The number of seconds the job is held in the queue before it is purged"
type = number
default = 86400
}
variable "runner_egress_rules" {
description = "List of egress rules for the GitHub runner instances."
type = list(object({
Expand Down

0 comments on commit a19929f

Please sign in to comment.