Skip to content

Commit 2a7e73e

Browse files
committed
docs: update examples to include lacework_account, add region to tenant-single-region example
1 parent 6da5ede commit 2a7e73e

File tree

10 files changed

+45
-3
lines changed

10 files changed

+45
-3
lines changed

examples/custom-vnet/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ resource "azurerm_virtual_network" "example" {
8484
module "lacework_azure_agentless_scanning_rg_and_vnet" {
8585
source = "lacework/agentless-scanning/azure"
8686
87+
# Specify your Lacework account name - only specify this in the global module.
88+
# For example, 'my-org' is the account name in 'my-org.lacework.net'.
89+
lacework_account = "my-org"
90+
8791
integration_level = "TENANT"
8892
global = true
8993
custom_network = tolist(azurerm_virtual_network.example.subnet)[0].id

examples/custom-vnet/main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ this to succeed. */
5454
module "lacework_azure_agentless_scanning_rg_and_vnet" {
5555
source = "../.."
5656

57+
# Specify your Lacework account name - only specify this in the global module.
58+
# For example, 'my-org' is the account name in 'my-org.lacework.net'.
59+
lacework_account = "my-org"
60+
5761
integration_level = "TENANT"
5862
global = true
5963
custom_network = tolist(azurerm_virtual_network.example.subnet)[0].id

examples/subscription-multi-region/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ terraform {
2323
module "lacework_azure_agentless_scanning_subscription_us_west" {
2424
source = "lacework/agentless-scanning/azure"
2525
26+
# Replace with your Lacework account name.
27+
# For example, 'my-org' is the account name in 'my-org.lacework.net'.
28+
lacework_account = "my-org"
29+
2630
integration_level = "SUBSCRIPTION"
2731
global = true
2832
create_log_analytics_workspace = true

examples/subscription-multi-region/main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
module "lacework_azure_agentless_scanning_subscription_us_west" {
44
source = "../.."
55

6+
# Specify your Lacework account name - only specify this in the global module.
7+
# For example, 'my-org' is the account name in 'my-org.lacework.net'.
8+
lacework_account = "my-org"
9+
610
integration_level = "SUBSCRIPTION"
711
global = true
812
create_log_analytics_workspace = true

examples/subscription-single-region/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@ terraform {
2121
module "lacework_azure_agentless_scanning_subscription_us_west" {
2222
source = "lacework/agentless-scanning/azure"
2323
24+
# Specify your Lacework account name - only specify this in the global module.
25+
# For example, 'my-org' is the account name in 'my-org.lacework.net'.
26+
lacework_account = "my-org"
27+
2428
integration_level = "SUBSCRIPTION"
2529
global = true
2630
create_log_analytics_workspace = true
2731
region = "West US"
28-
scanning_subscription_id = "abcd-1234"
29-
tenant_id = "efgh-5678"
3032
// specify which subscriptions to monitor - only do this in the global module
3133
included_subscriptions = ["/subscriptions/subscription-1", "/subscriptions/subscription-2"]
3234
}

examples/subscription-single-region/main.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@
22
module "lacework_azure_agentless_scanning_subscription_us_west" {
33
source = "../.."
44

5+
# Specify your Lacework account name - only specify this in the global module.
6+
# For example, 'my-org' is the account name in 'my-org.lacework.net'.
7+
lacework_account = "my-org"
8+
59
integration_level = "SUBSCRIPTION"
610
global = true
711
create_log_analytics_workspace = true
812
region = "West US"
13+
// specify which subscriptions to monitor - only do this in the global module
914
included_subscriptions = ["/subscriptions/subscription-1", "/subscriptions/subscription-2"]
1015
}

examples/tenant-multi-region/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ terraform {
3333
module "lacework_azure_agentless_scanning_tenant_us_west" {
3434
source = "lacework/agentless-scanning/azure"
3535
36+
# Specify your Lacework account name - only specify this in the global module.
37+
# For example, 'my-org' is the account name in 'my-org.lacework.net'.
38+
lacework_account = "my-org"
39+
3640
integration_level = "TENANT"
3741
global = true
3842
create_log_analytics_workspace = true

examples/tenant-multi-region/main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
module "lacework_azure_agentless_scanning_tenant_us_west" {
44
source = "../.."
55

6+
# Specify your Lacework account name - only specify this in the global module.
7+
# For example, 'my-org' is the account name in 'my-org.lacework.net'.
8+
lacework_account = "my-org"
9+
610
integration_level = "TENANT"
711
global = true
812
create_log_analytics_workspace = true

examples/tenant-single-region/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,14 @@ provider "lacework" {}
2727
module "lacework_azure_agentless_scanning_single_tenant" {
2828
source = "lacework/agentless-scanning/azure"
2929
30+
# Specify your Lacework account name - only specify this in the global module.
31+
# For example, 'my-org' is the account name in 'my-org.lacework.net'.
32+
lacework_account = "my-org"
33+
3034
global = true
3135
create_log_analytics_workspace = true
3236
integration_level = "tenant"
37+
region = "West US"
3338
tags = { "lw-example-tf" : "true" }
3439
scanning_subscription_id = "abcd-1234"
3540
tenant_id = "efgh-5678"

examples/tenant-single-region/main.tf

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,15 @@ provider "lacework" {}
55
module "lacework_azure_agentless_scanning_single_tenant" {
66
source = "../.."
77

8+
# Specify your Lacework account name - only specify this in the global module.
9+
# For example, 'my-org' is the account name in 'my-org.lacework.net'.
10+
lacework_account = "my-org"
11+
812
global = true
913
create_log_analytics_workspace = true
1014
integration_level = "tenant"
15+
region = "West US"
1116
tags = { "lw-example-tf" : "true" }
12-
additional_environment_variables = [{name="EXAMPLE_ENV_VAR", value="some_value"}]
17+
scanning_subscription_id = "abcd-1234"
18+
tenant_id = "efgh-5678"
1319
}

0 commit comments

Comments
 (0)