Skip to content

Commit

Permalink
chore: update version and add org_id in examples (#82)
Browse files Browse the repository at this point in the history
* chore: update version and add org_id in examples

* use numbers

* update docs
  • Loading branch information
Ao Zhang authored Jun 18, 2024
1 parent 9ce8238 commit 385f9a1
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 18 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ A Terraform Module to configure the Lacework Agentless Scanner.
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.5 |
| <a name="requirement_google"></a> [google](#requirement\_google) | >= 4.46 |
| <a name="requirement_lacework"></a> [lacework](#requirement\_lacework) | ~> 1.18 |
| <a name="requirement_lacework"></a> [lacework](#requirement\_lacework) | ~> 1.19 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_google"></a> [google](#provider\_google) | >= 4.46 |
| <a name="provider_lacework"></a> [lacework](#provider\_lacework) | ~> 1.18 |
| <a name="provider_lacework"></a> [lacework](#provider\_lacework) | ~> 1.19 |
| <a name="provider_random"></a> [random](#provider\_random) | n/a |
| <a name="provider_terraform"></a> [terraform](#provider\_terraform) | n/a |

Expand Down
13 changes: 8 additions & 5 deletions examples/custom-vpc-network/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,13 @@ module "lacework_gcp_agentless_scanning_project_multi_region_use1" {

project_filter_list = local.project_filter_list

global = true
regional = true
global = true
regional = true
organization_id = "1234567890"

custom_vpc_subnet = google_compute_subnetwork.awls_subnet_1.id
# example: passing an environment variable to the cloud run task
additional_environment_variables = [{name="EXAMPLE_ENV_VAR", value="something"}]
additional_environment_variables = [{ name = "EXAMPLE_ENV_VAR", value = "something" }]
}

module "lacework_gcp_agentless_scanning_project_multi_region_usc1" {
Expand All @@ -84,11 +85,13 @@ module "lacework_gcp_agentless_scanning_project_multi_region_usc1" {
google = google.usc1
}

regional = true
regional = true
organization_id = "1234567890"

global_module_reference = module.lacework_gcp_agentless_scanning_project_multi_region_use1

custom_vpc_subnet = google_compute_subnetwork.awls_subnet_2.id

# example: how to pass an environment variable to a cloud task
additional_environment_variables = [{name="EXAMPLE_ENV_VAR", value="something"}]
additional_environment_variables = [{ name = "EXAMPLE_ENV_VAR", value = "something" }]
}
2 changes: 1 addition & 1 deletion examples/custom-vpc-network/versions.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
terraform {
required_version = ">= 0.12.26"
required_version = ">= 1.5"

required_providers {
lacework = {
Expand Down
2 changes: 1 addition & 1 deletion examples/org-level-multi-region/versions.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
terraform {
required_version = ">= 0.12.26"
required_version = ">= 1.5"

required_providers {
lacework = {
Expand Down
2 changes: 1 addition & 1 deletion examples/org-level-single-region/versions.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
terraform {
required_version = ">= 0.12.26"
required_version = ">= 1.5"

required_providers {
lacework = {
Expand Down
10 changes: 7 additions & 3 deletions examples/project-level-multi-region/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ module "lacework_gcp_agentless_scanning_project_multi_region_use1" {

project_filter_list = local.project_filter_list

global = true
regional = true
global = true
regional = true
organization_id = "1234567890"

lacework_integration_name = "agentless_from_terraform"
}

Expand All @@ -38,6 +40,8 @@ module "lacework_gcp_agentless_scanning_project_multi_region_usc1" {
google = google.usc1
}

regional = true
regional = true
organization_id = "1234567890"

global_module_reference = module.lacework_gcp_agentless_scanning_project_multi_region_use1
}
2 changes: 1 addition & 1 deletion examples/project-level-multi-region/versions.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
terraform {
required_version = ">= 0.12.26"
required_version = ">= 1.5"

required_providers {
lacework = {
Expand Down
6 changes: 4 additions & 2 deletions examples/project-level-single-region/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ module "lacework_gcp_agentless_scanning_project_single_region" {
"monitored-project-2"
]

global = true
regional = true
global = true
regional = true
organization_id = "1234567890"

lacework_integration_name = "agentless_from_terraform"
}
2 changes: 1 addition & 1 deletion examples/project-level-single-region/versions.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
terraform {
required_version = ">= 0.12.26"
required_version = ">= 1.5"

required_providers {
lacework = {
Expand Down
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ terraform {
google = ">= 4.46"
lacework = {
source = "lacework/lacework"
version = "~> 1.18"
version = "~> 1.19"
}
}
}

0 comments on commit 385f9a1

Please sign in to comment.