From 2722fc46ff1da08ee7bc93ed67881c9ae2100490 Mon Sep 17 00:00:00 2001 From: Whitney Smith <107059599+wl-smith@users.noreply.github.com> Date: Tue, 18 Jul 2023 08:50:10 -0700 Subject: [PATCH] feat: Add multi volume variable (#28) * feat: add multi-volume variable * feat: add scan stopped instances * chore: add region to examples to fix intg test issue --- main.tf | 2 ++ variables.tf | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/main.tf b/main.tf index f92c5ef..db27de9 100644 --- a/main.tf +++ b/main.tf @@ -77,6 +77,8 @@ resource "lacework_integration_gcp_agentless_scanning" "lacework_cloud_account" bucket_name = google_storage_bucket.lacework_bucket[0].name scanning_project_id = local.scanning_project_id filter_list = var.project_filter_list + scan_multi_volume = var.scan_multi_volume + scan_stopped_instances = var.scan_stopped_instances credentials { client_id = local.lacework_integration_service_account_json_key.client_id private_key_id = local.lacework_integration_service_account_json_key.private_key_id diff --git a/variables.tf b/variables.tf index fac6d86..cedc551 100644 --- a/variables.tf +++ b/variables.tf @@ -93,6 +93,18 @@ variable "scan_host_vulnerabilities" { default = true } +variable "scan_multi_volume" { + type = bool + description = "Whether to scan secondary volumes. Defaults to `false`." + default = false +} + +variable "scan_stopped_instances" { + type = bool + description = "Whether to scan stopped instances. Defaults to `false`." + default = true +} + variable "scan_frequency_hours" { type = number description = "How often in hours the scan will run in hours. Defaults to `24`."