Skip to content

Commit

Permalink
Merge pull request #60 from starzu-sumo/mstarzec-k8s-monitors-parent-var
Browse files Browse the repository at this point in the history
Enable a user to create monitors in any monitors subfolder
  • Loading branch information
arunpatyal authored May 6, 2022
2 parents be74295 + 4993d91 commit 574967a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ provider "sumologic" {
resource "sumologic_monitor_folder" "tf_monitor_folder_1" {
name = var.folder
description = "Folder for Kubernetes Monitors"
parent_id = var.folder_parent_id
}
5 changes: 5 additions & 0 deletions monitor_packages/kubernetes/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ variable "folder" {
description = "Folder where monitors will be created."
default = "Kubernetes"
}
variable "folder_parent_id" {
type = string
description = "Parent of the folder where monitors will be created. By default it's the root monitors folder."
default = null
}

variable "monitors_disabled" {
type = bool
Expand Down

0 comments on commit 574967a

Please sign in to comment.