Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/clouddrove/terraform-azure-sentinel

This terraform module is designed to create azure Sentinel resources. Microsoft Sentinel natively incorporates proven Azure services, like Log Analytics and Logic Apps. Microsoft Sentinel enriches your investigation and detection with AI. It provides Microsoft's threat intelligence stream and enables you to bring your own threat intelligence
https://github.com/clouddrove/terraform-azure-sentinel

azure azure-sentinel clouddrove hcl terraform terraform-azure terraform-azurerm terraform-module

Last synced: 4 days ago
JSON representation

This terraform module is designed to create azure Sentinel resources. Microsoft Sentinel natively incorporates proven Azure services, like Log Analytics and Logic Apps. Microsoft Sentinel enriches your investigation and detection with AI. It provides Microsoft's threat intelligence stream and enables you to bring your own threat intelligence

Awesome Lists containing this project

README

        


Terraform AZURE SENTINEL


Terraform module to create SENTINEL resource on AZURE.


Terraform


Licence












We eat, drink, sleep and most importantly love **DevOps**. We are working towards strategies for standardizing architecture while ensuring security for the infrastructure. We are strong believer of the philosophy Bigger problems are always solved by breaking them into smaller manageable problems. Resonating with microservices architecture, it is considered best-practice to run database, cluster, storage in smaller connected yet manageable pieces within the infrastructure.

This module is basically combination of [Terraform open source](https://www.terraform.io/) and includes automatation tests and examples. It also helps to create and improve your infrastructure with minimalistic code instead of maintaining the whole infrastructure code yourself.

We have [*fifty plus terraform modules*][terraform_modules]. A few of them are comepleted and are available for open source usage while a few others are in progress.

## Prerequisites

This module has a few dependencies:

## Examples

**IMPORTANT:** Since the `master` branch used in `source` varies based on new modifications, we suggest that you use the release versions [here](https://github.com/clouddrove/terraform-azure-sentinel/releases).

Here is an example of how you can use this module in your inventory structure:
```hcl
module "defender" {
source = "clouddrove/sentinel/azure"
name = "app"
environment = "test"
log_analytics_workspace_id = module.log-analytics.workspace_id
}
```

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| alerts\_enabled | Should the alerts be enabled? Defaults to true. | `bool` | `true` | no |
| discovery\_logs\_enabled | Should the Discovery Logs be enabled? Defaults to true. | `bool` | `true` | no |
| display\_name | The friendly name of this Sentinel MS Security Incident Alert Rule. | `list(string)` |

[
"Create incidents based on Microsoft Defender for Cloud"
]
| no |
| dtc\_ad\_enabled | Set to false to prevent the module from creating any resources. | `bool` | `false` | no |
| dtc\_advanced\_threat\_protection\_enabled | Set to false to prevent the module from creating any resources. | `bool` | `false` | no |
| dtc\_iot\_enabled | Set to false to prevent the module from creating any resources. | `bool` | `false` | no |
| dtc\_ms\_cloud\_app\_security\_enabled | Set to false to prevent the module from creating any resources. | `bool` | `false` | no |
| dtc\_ms\_defender\_advanced\_threat\_protection\_enabled | Set to false to prevent the module from creating any resources. | `bool` | `false` | no |
| dtc\_ms\_threat\_protection\_enabled | Set to false to prevent the module from creating any resources. | `bool` | `false` | no |
| dtc\_security\_center\_enabled | Set to false to prevent the module from creating any resources. | `bool` | `false` | no |
| dtc\_threat-intelligence\_enabled | Set to false to prevent the module from creating any resources. | `bool` | `false` | no |
| enabled | Set to false to prevent the module from creating any resources. | `bool` | `true` | no |
| environment | Environment (e.g. `prod`, `dev`, `staging`). | `string` | `""` | no |
| label\_order | Label order, e.g. sequence of application name and environment `name`,`environment`,'attribute' [`webserver`,`qa`,`devops`,`public`,] . | `list(any)` |
[
"name",
"environment"
]
| no |
| log\_analytics\_workspace\_id | The ID of the Log Analytics Workspace this Sentinel MS Security Incident Alert Rule belongs to. Changing this forces a new Sentinel MS Security Incident Alert Rule to be created. | `string` | `""` | no |
| managedby | ManagedBy, eg ''. | `string` | `""` | no |
| ms\_security\_enabled | Should this Sentinel MS Security Incident Alert Rule be enabled? Defaults to true. | `bool` | `true` | no |
| ms\_security\_incident\_enabled | Should this Sentinel MS Security Incident Alert Rule be enabled? Defaults to true. | `bool` | `true` | no |
| name | Name (e.g. `app` or `cluster`). | `string` | `""` | no |
| product\_filter | The Microsoft Security Service from where the alert will be generated. Possible values are Azure Active Directory Identity Protection, Azure Advanced Threat Protection, Azure Security Center, Azure Security Center for IoT, Microsoft Cloud App Security, Microsoft Defender Advanced Threat Protection and Office 365 Advanced Threat Protection. | `list(string)` |
[
"Microsoft Cloud App Security"
]
| no |
| repository | Terraform current module repo | `string` | `""` | no |
| sentinel\_enabled | Flag to control the module creation. | `bool` | `true` | no |
| sentinel\_workspace\_name | The name which should be used for this Sentinel MS Security Incident Alert Rule. Changing this forces a new Sentinel MS Security Incident Alert Rule to be created. | `string` | `""` | no |
| severity\_filter | Only create incidents from alerts when alert severity level is contained in this list. Possible values are High, Medium, Low and Informational. | `list(string)` |
[
"High"
]
| no |
| subscription\_id | The ID of the subscription that this Iot Data Connector connects to. Changing this forces a new Iot Data Connector to be created. | `string` | `null` | no |
| tags | A map of tags to add to all resources | `map(string)` | `{}` | no |
| tenant\_id | The ID of the tenant that this Azure Active Directory Data Connector connects to. Changing this forces a new Azure Active Directory Data Connector to be created. | `string` | `null` | no |

## Outputs

| Name | Description |
|------|-------------|
| dtc\_ad\_id | The ID of the Azure Active Directory Data Connector. |
| dtc\_ms\_cloud\_app\_security\_id | The ID of the Microsoft Cloud App Security Data Connector. |
| dtc\_threat\_protection\_id | The ID of the Azure Advanced Threat Protection Data Connector. |
| iot\_id | The ID of the Iot Data Connector. |
| security\_center\_id | The ID of the Azure Security Center Data Connector. |
| sentinel\_id | The ID of the Security Insights Sentinel Onboarding States. |

## Testing
In this module testing is performed with [terratest](https://github.com/gruntwork-io/terratest) and it creates a small piece of infrastructure, matches the output like ARN, ID and Tags name etc and destroy infrastructure in your AWS account. This testing is written in GO, so you need a [GO environment](https://golang.org/doc/install) in your system.

You need to run the following command in the testing folder:
```hcl
go test -run Test
```

## Feedback
If you come accross a bug or have any feedback, please log it in our [issue tracker](https://github.com/clouddrove/terraform-azure-sentinel/issues), or feel free to drop us an email at [[email protected]](mailto:[email protected]).

If you have found it worth your time, go ahead and give us a ★ on [our GitHub](https://github.com/clouddrove/terraform-azure-sentinel)!

## About us

At [CloudDrove][website], we offer expert guidance, implementation support and services to help organisations accelerate their journey to the cloud. Our services include docker and container orchestration, cloud migration and adoption, infrastructure automation, application modernisation and remediation, and performance engineering.

We are The Cloud Experts!




We ❤️ Open Source and you can check out our other modules to get help with your new Cloud ideas.

[website]: https://clouddrove.com
[github]: https://github.com/clouddrove
[linkedin]: https://cpco.io/linkedin
[twitter]: https://twitter.com/clouddrove/
[email]: https://clouddrove.com/contact-us.html
[terraform_modules]: https://github.com/clouddrove?utf8=%E2%9C%93&q=terraform-&type=&language=