diff --git a/modules/sentinel-workbooks/README.md b/modules/sentinel-workbooks/README.md deleted file mode 100644 index 317af2e..0000000 --- a/modules/sentinel-workbooks/README.md +++ /dev/null @@ -1,27 +0,0 @@ - -## Requirements - -| Name | Version | -|------|---------| -| [terraform](#requirement\_terraform) | >= 1.2 | -| [null](#requirement\_null) | ~> 3.2.1 | -| [template](#requirement\_template) | ~> 2.2.0 | - -## Modules - -| Name | Source | Version | -|------|--------|---------| -| [custom\_sentinel\_workbooks](#module\_custom\_sentinel\_workbooks) | ../sentinel-workbook | n/a | -| [sentinel\_workbooks](#module\_sentinel\_workbooks) | ../sentinel-workbook | n/a | - -## Inputs - -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:--------:| -| [default\_workbook\_path](#input\_default\_workbook\_path) | The path of the default workbooks. | `string` | n/a | yes | -| [resource\_group\_name](#input\_resource\_group\_name) | The name of the resource group in which this resource will be provisioned. | `string` | n/a | yes | -| [workbook\_source\_id](#input\_workbook\_source\_id) | The resource id of log analytics workspace on which the workbook will be deployed. | `string` | n/a | yes | -| [custom\_workbook\_path](#input\_custom\_workbook\_path) | The path of the custom workbooks. | `string` | `""` | no | -| [custom\_workbooks](#input\_custom\_workbooks) | A list of custom workbooks to be deployed from the custom-workbooks folder. | `set(string)` | `[]` | no | -| [default\_workbooks](#input\_default\_workbooks) | A list of default workbooks to be deployed. | `set(string)` | `[]` | no | - diff --git a/modules/sentinel-workbooks/main.tf b/modules/sentinel-workbooks/main.tf deleted file mode 100644 index 52b2714..0000000 --- a/modules/sentinel-workbooks/main.tf +++ /dev/null @@ -1,39 +0,0 @@ -terraform { - required_version = ">= 1.2" - - required_providers { - null = { - source = "hashicorp/null" - version = "~> 3.2.1" - } - - template = { - source = "hashicorp/template" - version = "~> 2.2.0" - } - } -} - -# Deploy default workbooks -module "sentinel_workbooks" { - source = "../sentinel-workbook" - - for_each = var.default_workbooks - - content_path_workbooks = var.default_workbook_path - workbook_source_id = var.workbook_source_id - name = replace(basename(each.value), ".json", "") - resource_group_name = var.resource_group_name -} - -# Deploy custom workbooks -module "custom_sentinel_workbooks" { - source = "../sentinel-workbook" - - for_each = var.custom_workbooks - - content_path_workbooks = var.custom_workbook_path - workbook_source_id = var.workbook_source_id - name = replace(basename(each.value), ".json", "") - resource_group_name = var.resource_group_name -} diff --git a/modules/sentinel-workbooks/vars.tf b/modules/sentinel-workbooks/vars.tf deleted file mode 100644 index 7934e41..0000000 --- a/modules/sentinel-workbooks/vars.tf +++ /dev/null @@ -1,36 +0,0 @@ -# --------------------------------------------------------------------------------------------------------------------- -# MODULE VARIABLES -# --------------------------------------------------------------------------------------------------------------------- - -variable "workbook_source_id" { - description = "The resource id of log analytics workspace on which the workbook will be deployed." - type = string -} - -variable "resource_group_name" { - description = "The name of the resource group in which this resource will be provisioned." - type = string -} - -variable "default_workbooks" { - type = set(string) - default = [] - description = "A list of default workbooks to be deployed." -} - -variable "custom_workbooks" { - type = set(string) - default = [] - description = "A list of custom workbooks to be deployed from the custom-workbooks folder." -} - -variable "custom_workbook_path" { - description = "The path of the custom workbooks." - type = string - default = "" -} - -variable "default_workbook_path" { - description = "The path of the default workbooks." - type = string -}