Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion examples/custom-vnet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ resource "azurerm_virtual_network" "example" {

subnet {
name = "example-subnet"
address_prefix = "10.0.0.0/16"
address_prefixes = ["10.0.0.0/16"]
security_group = azurerm_network_security_group.example.id
}
}
Expand All @@ -84,6 +84,10 @@ resource "azurerm_virtual_network" "example" {
module "lacework_azure_agentless_scanning_rg_and_vnet" {
source = "lacework/agentless-scanning/azure"

# Specify your Lacework account name - only specify this in the global module.
# For example, 'my-org' is the account name in 'my-org.lacework.net'.
lacework_account = "my-org"

integration_level = "TENANT"
global = true
custom_network = tolist(azurerm_virtual_network.example.subnet)[0].id
Expand Down
10 changes: 7 additions & 3 deletions examples/custom-vnet/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ resource "azurerm_virtual_network" "example" {
resource_group_name = azurerm_resource_group.example.name

subnet {
name = "example-subnet"
address_prefix = "10.0.0.0/16"
security_group = azurerm_network_security_group.example.id
name = "example-subnet"
address_prefixes = ["10.0.0.0/16"]
security_group = azurerm_network_security_group.example.id
}
}

Expand All @@ -54,6 +54,10 @@ this to succeed. */
module "lacework_azure_agentless_scanning_rg_and_vnet" {
source = "../.."

# Specify your Lacework account name - only specify this in the global module.
# For example, 'my-org' is the account name in 'my-org.lacework.net'.
lacework_account = "my-org"

integration_level = "TENANT"
global = true
custom_network = tolist(azurerm_virtual_network.example.subnet)[0].id
Expand Down
4 changes: 4 additions & 0 deletions examples/subscription-multi-region/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ terraform {
module "lacework_azure_agentless_scanning_subscription_us_west" {
source = "lacework/agentless-scanning/azure"

# Specify your Lacework account name - only specify this in the global module.
# For example, 'my-org' is the account name in 'my-org.lacework.net'.
lacework_account = "my-org"

integration_level = "SUBSCRIPTION"
global = true
create_log_analytics_workspace = true
Expand Down
4 changes: 4 additions & 0 deletions examples/subscription-multi-region/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
module "lacework_azure_agentless_scanning_subscription_us_west" {
source = "../.."

# Specify your Lacework account name - only specify this in the global module.
# For example, 'my-org' is the account name in 'my-org.lacework.net'.
lacework_account = "my-org"

integration_level = "SUBSCRIPTION"
global = true
create_log_analytics_workspace = true
Expand Down
6 changes: 4 additions & 2 deletions examples/subscription-single-region/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ terraform {
module "lacework_azure_agentless_scanning_subscription_us_west" {
source = "lacework/agentless-scanning/azure"

# Specify your Lacework account name - only specify this in the global module.
# For example, 'my-org' is the account name in 'my-org.lacework.net'.
lacework_account = "my-org"

integration_level = "SUBSCRIPTION"
global = true
create_log_analytics_workspace = true
region = "West US"
scanning_subscription_id = "abcd-1234"
tenant_id = "efgh-5678"
// specify which subscriptions to monitor - only do this in the global module
included_subscriptions = ["/subscriptions/subscription-1", "/subscriptions/subscription-2"]
}
Expand Down
5 changes: 5 additions & 0 deletions examples/subscription-single-region/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@
module "lacework_azure_agentless_scanning_subscription_us_west" {
source = "../.."

# Specify your Lacework account name - only specify this in the global module.
# For example, 'my-org' is the account name in 'my-org.lacework.net'.
lacework_account = "my-org"

integration_level = "SUBSCRIPTION"
global = true
create_log_analytics_workspace = true
region = "West US"
// specify which subscriptions to monitor - only do this in the global module
included_subscriptions = ["/subscriptions/subscription-1", "/subscriptions/subscription-2"]
}
4 changes: 4 additions & 0 deletions examples/tenant-multi-region/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ terraform {
module "lacework_azure_agentless_scanning_tenant_us_west" {
source = "lacework/agentless-scanning/azure"

# Specify your Lacework account name - only specify this in the global module.
# For example, 'my-org' is the account name in 'my-org.lacework.net'.
lacework_account = "my-org"

integration_level = "TENANT"
global = true
create_log_analytics_workspace = true
Expand Down
4 changes: 4 additions & 0 deletions examples/tenant-multi-region/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
module "lacework_azure_agentless_scanning_tenant_us_west" {
source = "../.."

# Specify your Lacework account name - only specify this in the global module.
# For example, 'my-org' is the account name in 'my-org.lacework.net'.
lacework_account = "my-org"

integration_level = "TENANT"
global = true
create_log_analytics_workspace = true
Expand Down
5 changes: 5 additions & 0 deletions examples/tenant-single-region/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,14 @@ provider "lacework" {}
module "lacework_azure_agentless_scanning_single_tenant" {
source = "lacework/agentless-scanning/azure"

# Specify your Lacework account name - only specify this in the global module.
# For example, 'my-org' is the account name in 'my-org.lacework.net'.
lacework_account = "my-org"

global = true
create_log_analytics_workspace = true
integration_level = "tenant"
region = "West US"
tags = { "lw-example-tf" : "true" }
scanning_subscription_id = "abcd-1234"
tenant_id = "efgh-5678"
Expand Down
6 changes: 5 additions & 1 deletion examples/tenant-single-region/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ provider "lacework" {}
module "lacework_azure_agentless_scanning_single_tenant" {
source = "../.."

# Specify your Lacework account name - only specify this in the global module.
# For example, 'my-org' is the account name in 'my-org.lacework.net'.
lacework_account = "my-org"

global = true
create_log_analytics_workspace = true
integration_level = "tenant"
region = "West US"
tags = { "lw-example-tf" : "true" }
additional_environment_variables = [{name="EXAMPLE_ENV_VAR", value="some_value"}]
}