Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into release/12.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Dec 4, 2023
2 parents 26ebeac + a25aaba commit d80146f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions terraform/070-id-sync/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ resource "aws_ecs_task_definition" "cron_td" {
resource "aws_cloudwatch_event_rule" "event_rule" {
name = "${var.idp_name}-${var.app_name}-${var.app_env}"
description = "Start ID Sync scheduled tasks"
is_enabled = var.enable_sync

schedule_expression = var.event_schedule

Expand Down
6 changes: 6 additions & 0 deletions terraform/070-id-sync/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ variable "enable_new_user_notification" {
default = "false"
}

variable "enable_sync" {
description = "Set the AWS CloudWatch Event Rule is-enabled flag"
type = bool
default = true
}

variable "event_schedule" {
description = "AWS Cloudwatch schedule for the sync task"
type = string
Expand Down
2 changes: 1 addition & 1 deletion test/070-id-sync.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module "sync" {
email_service_baseUrl = ""
email_service_validIpRanges = [""]
enable_new_user_notification = ""
enable_sync = ""
enable_sync = true
event_schedule = ""
id_broker_access_token = ""
id_broker_adapter = ""
Expand Down

0 comments on commit d80146f

Please sign in to comment.