Skip to content

Commit

Permalink
DPR2-709: Set maintenance window to Sun at 2am for CDC jobs (#7606)
Browse files Browse the repository at this point in the history
  • Loading branch information
koladeadewuyi-moj authored Aug 27, 2024
1 parent a489dbd commit cd839ea
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ module "glue_reporting_hub_cdc_job" {
worker_type = var.glue_cdc_job_worker_type
number_of_workers = var.glue_cdc_job_num_workers
max_concurrent = var.glue_cdc_max_concurrent
maintenance_window = var.glue_cdc_maintenance_window
region = var.account_region
account = var.account_id
log_group_retention_in_days = var.glue_log_group_retention_in_days
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,11 @@ variable "glue_cdc_max_concurrent" {
description = "(Optional) The maximum number of concurrent runs allowed for a job."
}

variable "glue_cdc_maintenance_window" {
type = string
description = "The maintenance window during which the glue job will be restarted"
}

variable "glue_cdc_create_role" {
type = bool
default = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ resource "aws_glue_job" "glue_job" {
worker_type = var.worker_type
number_of_workers = var.number_of_workers
execution_class = var.execution_class
maintenance_window = var.maintenance_window
tags = local.tags

command {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,12 @@ variable "number_of_workers" {
description = "(Optional) The number of workers of a defined workerType that are allocated when a job runs."
}

variable "maintenance_window" {
type = string
default = null
description = "(Optional) The maintenance window during which the glue job will be restarted"
}


variable "security_configuration" {
type = string
Expand Down

0 comments on commit cd839ea

Please sign in to comment.