Skip to content

Commit

Permalink
DPR2-709: Set maintenance window to Sun at 2am for CDC jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
koladeadewuyi-moj committed Aug 23, 2024
1 parent 32b6ce0 commit 43e3e9f
Show file tree
Hide file tree
Showing 3 changed files with 8 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 = "Sun:2"
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 @@ -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 43e3e9f

Please sign in to comment.