File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed
Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -58,15 +58,15 @@ essentialcontacts.googleapis.com
5858| ------| ---------|
5959| <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 0.14.0 |
6060| <a name =" requirement_google " ></a > [ google] ( #requirement\_ google ) | >= 4.4.0 |
61- | <a name =" requirement_lacework " ></a > [ lacework] ( #requirement\_ lacework ) | ~ > 1.0 |
61+ | <a name =" requirement_lacework " ></a > [ lacework] ( #requirement\_ lacework ) | ~ > 1.18 |
6262| <a name =" requirement_time " ></a > [ time] ( #requirement\_ time ) | ~ > 0.6 |
6363
6464## Providers
6565
6666| Name | Version |
6767| ------| ---------|
6868| <a name =" provider_google " ></a > [ google] ( #provider\_ google ) | >= 4.4.0 |
69- | <a name =" provider_lacework " ></a > [ lacework] ( #provider\_ lacework ) | ~ > 1.0 |
69+ | <a name =" provider_lacework " ></a > [ lacework] ( #provider\_ lacework ) | ~ > 1.18 |
7070| <a name =" provider_random " ></a > [ random] ( #provider\_ random ) | n/a |
7171| <a name =" provider_time " ></a > [ time] ( #provider\_ time ) | ~ > 0.6 |
7272
@@ -95,6 +95,7 @@ essentialcontacts.googleapis.com
9595| [ google_folders.my-org-folders] ( https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/folders ) | data source |
9696| [ google_project.selected] ( https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/project ) | data source |
9797| [ google_projects.my-org-projects] ( https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/projects ) | data source |
98+ | [ lacework_metric_module.lwmetrics] ( https://registry.terraform.io/providers/lacework/lacework/latest/docs/data-sources/metric_module ) | data source |
9899
99100## Inputs
100101
Original file line number Diff line number Diff line change @@ -86,6 +86,10 @@ locals {
8686 ) : (
8787 []
8888 )
89+
90+ version_file = " ${ abspath (path. module )} /VERSION"
91+ module_name = basename (abspath (path. module ))
92+ module_version = fileexists (local. version_file ) ? file (local. version_file ) : " "
8993}
9094
9195resource "random_id" "uniq" {
@@ -212,3 +216,8 @@ resource "lacework_integration_gcp_cfg" "default" {
212216 }
213217 depends_on = [time_sleep . wait_time ]
214218}
219+
220+ data "lacework_metric_module" "lwmetrics" {
221+ name = local. module_name
222+ version = local. module_version
223+ }
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ terraform {
66 time = " ~> 0.6"
77 lacework = {
88 source = " lacework/lacework"
9- version = " ~> 1.0 "
9+ version = " ~> 1.18 "
1010 }
1111 }
1212}
You can’t perform that action at this time.
0 commit comments