Skip to content

Commit f5f6c78

Browse files
committed
Add drift detection to deploy and integration
1 parent 2156a19 commit f5f6c78

4 files changed

Lines changed: 25 additions & 0 deletions

File tree

infra/deployments/deploy/inputs.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,9 @@ variable "send_logs_to_cyber" {
1515
type = bool
1616
default = true
1717
}
18+
19+
variable "drift_detection_schedule" {
20+
description = "EventBridge schedule expression for drift detection"
21+
type = string
22+
default = "cron(0 9 ? * MON *)"
23+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module "drift_detection" {
2+
source = "../../../modules/drift-detection"
3+
4+
deployment_name = "deploy"
5+
schedule_expression = var.drift_detection_schedule
6+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module "drift_detection" {
2+
source = "../../../modules/drift-detection"
3+
4+
deployment_name = "integration"
5+
schedule_expression = var.drift_detection_schedule
6+
git_branch = "whi-tw/detect-deploy-integration-drift" # TODO: change back to "main" after testing
7+
}

infra/deployments/integration/inputs.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,9 @@ variable "pentester_cidr_ranges" {
6262
error_message = "Each entry in the last must be a valid IPv4 CIDR range"
6363
}
6464
}
65+
66+
variable "drift_detection_schedule" {
67+
description = "EventBridge schedule expression for drift detection"
68+
type = string
69+
default = "cron(0 9 ? * MON *)"
70+
}

0 commit comments

Comments
 (0)