From 0e2a4abc2ba48f804f82f55c9d8df938da869a57 Mon Sep 17 00:00:00 2001
From: Francesco <99396771+frasecci@users.noreply.github.com>
Date: Wed, 20 Mar 2024 15:52:15 -0700
Subject: [PATCH] chore(host-scanner): add README [internal] (#33)
---
modules/services/host-scanner/README.md | 66 ++++++++++++++++++++++++-
1 file changed, 64 insertions(+), 2 deletions(-)
diff --git a/modules/services/host-scanner/README.md b/modules/services/host-scanner/README.md
index aa7545e..d1e83ab 100644
--- a/modules/services/host-scanner/README.md
+++ b/modules/services/host-scanner/README.md
@@ -1,7 +1,69 @@
# Azure Agentless Host Scan Module
-This module will deploy a LightHouse Definition and Assignment in Azure for a single subscription.
+This module will deploy a LightHouse Definition and Assignment in Azure for a single subscription, , or for an Azure Tenant.
If instrumenting an Azure subscription, the following resources will be created:
- LightHouse Definition associated with Sysdig Service Principal and the VM Scanner Operator role.
-- LightHouse Assignment associated with the LightHouse Definition and the Azure subscription provided.
\ No newline at end of file
+- LightHouse Assignment associated with the LightHouse Definition and the Azure subscription provided.
+
+If instrumenting an Azure Tenant, the following resources will be created:
+- LightHouse Definition associated with Sysdig Service Principal and the VM Scanner Operator role.
+- LightHouse Assignment associated with the LightHouse Definition and the Azure subscriptions under each of the
+ instrumented Management Groups within the Tenant provided, if no Management Groups are provided, all subscriptions under Root Management Group level.
+
+
+## Requirements
+
+| Name | Version |
+|------|-----------|
+| [terraform](#requirement\_terraform) | >= 1.0.0 |
+| [azurerm](#requirement\_azurerm) | >= 3.76.0 |
+| [azuread](#requirement\_azuread) | >= 2.43.0 |
+| [sysdig](#requirement\_sysdig) | >= 1.19.0 |
+
+## Providers
+
+| Name | Version |
+|------|---------|
+| [azurerm](#provider\_azurerm) | >= 3.76.0 |
+
+## Modules
+
+No modules.
+
+## Resources
+
+| Name | Type |
+|------|------|
+| [azurerm_lighthouse_definition.lighthouse_definition](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/lighthouse_definition) | resource |
+| [azurerm_lighthouse_assignment.lighthouse_assignment](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/lighthouse_assignment) | resource |
+| [azurerm_lighthouse_assignment.lighthouse_assignment_for_tenant](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/lighthouse_assignment) | resource |
+| [azurerm_subscription.primary](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/subscription) | data source |
+| [azurerm_management_group.root_management_group](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/management_group) | data source |
+| [azurerm_management_group.management_groups](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/management_group) | data source |
+
+## Inputs
+
+| Name | Description | Type | Default | Required |
+|---------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|---------|:--------:|
+| [subscription\_id](#input\_subscription\_id) | The identifier of the Azure Subscription in which to create a trust relationship. | `string` | n/a | yes |
+| [sysdig\_tenant\_id](#input\_sysdig\_tenant\_id) | The identifier of Sysdig Tenant where the Sysdig Service Principal is set. | `string` | n/a | yes |
+| [sysdig\_service\_principal\_id](#input\_sysdig\_service\_principal\_id) | The identifier of the Sysdig Service Principal in the Sysdig tenant. A Lighthouse Definition linked to this Service Principal will be created. | `string` | n/a | yes |
+| [is\_organizational](#input\_is\_organizational) | true/false whether secure-for-cloud should be deployed in an organizational setup (all subscriptions of tenant) or not (only on default azure provider subscription) | `bool` | `false` | no |
+| [management\_group\_ids](#input\_management\_group\_ids) | List of Azure Management Group IDs. secure-for-cloud will be deployed to all the subscriptions under these management groups. | `set(string)` | `[]` | no |
+
+## Outputs
+
+| Name | Description |
+|-------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------|
+| [lighthouse\_definition\_display\_id](#output\_lighthouse\_definition\_display\_id) | Display id of the Lighthouse Definition created, associated with the Service Principal |
+| [subscription\_alias](#output\_subscription\_alias) | Display name of the subscription |
+
+
+## Authors
+
+Module is maintained by [Sysdig](https://sysdig.com).
+
+## License
+
+Apache 2 Licensed. See LICENSE for full details.