Skip to content

Commit

Permalink
feat: enable log level param under single-subscription installation (#90
Browse files Browse the repository at this point in the history
)

* feat: enable log level param under single-subscription installation

* chore: run terraform fmt
  • Loading branch information
miketnt authored Jun 27, 2023
1 parent 1429587 commit 1eede38
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
3 changes: 2 additions & 1 deletion examples/single-subscription/cloud-connector.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,6 @@ module "cloud_connector" {
cpu = var.cpu
memory = var.memory

tags = var.tags
tags = var.tags
logging = var.logging
}
6 changes: 6 additions & 0 deletions examples/single-subscription/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,9 @@ variable "tags" {
product = "sysdig-secure-for-cloud"
}
}

variable "logging" {
type = string
description = "log level: info or debug"
default = "info"
}
4 changes: 2 additions & 2 deletions modules/services/cloud-connector/cloudconnector-config.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
locals {
config_without_scanning = yamlencode({
logging = "info"
logging = var.logging
rules = []
ingestors = [
{
Expand All @@ -12,7 +12,7 @@ locals {
})

config_with_scanning = yamlencode({
logging = "info"
logging = var.logging
rules = []
ingestors = concat(
[
Expand Down
6 changes: 6 additions & 0 deletions modules/services/cloud-connector/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,9 @@ variable "is_organizational" {
default = false
description = "whether secure-for-cloud should be deployed in an organizational setup"
}

variable "logging" {
type = string
default = "info"
description = "log level: info or debug"
}

0 comments on commit 1eede38

Please sign in to comment.