terraform/environment: remove scan-modules job

Remove the "scan-modules" job from the terraform config. Once this
change is applied and we have verified that the endpoint is not being
hit, we will remove the code for scan-modules.

Change-Id: I1d76fbf504b9b1c71063470fae59163649512107
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/459598
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
Run-TryBot: Tatiana Bradley <tatiana@golang.org>
This commit is contained in:
Tatiana Bradley 2022-12-27 17:19:42 -05:00 коммит произвёл Tatiana Bradley
Родитель c82a346757
Коммит 49c7d2e77f
1 изменённых файлов: 0 добавлений и 27 удалений

Просмотреть файл

@ -183,30 +183,3 @@ resource "google_cloud_scheduler_job" "vuln_issue_triage" {
retry_count = 0
}
}
resource "google_cloud_scheduler_job" "scan_modules" {
name = "vuln-${var.env}-scan-modules"
description = "Scan selected modules for vulns."
schedule = "30 * * * *" # every hour on the half hour
time_zone = local.tz
project = var.project
attempt_deadline = format("%ds", 30 * 60)
http_target {
http_method = "POST"
uri = "${google_cloud_run_service.worker.status[0].url}/scan-modules"
oidc_token {
service_account_email = data.google_compute_default_service_account.default.email
audience = var.oauth_client_id
}
}
retry_config {
max_backoff_duration = "3600s"
max_doublings = 5
max_retry_duration = "0s"
min_backoff_duration = "5s"
retry_count = 0
}
}