From 8b08ee14572305afac9e93af3d0e059cbb5a8df6 Mon Sep 17 00:00:00 2001 From: Darren Murray Date: Fri, 12 Jan 2024 12:15:52 +0000 Subject: [PATCH] feat: add lacework metrics data source Signed-off-by: Darren Murray --- main.tf | 5 +++++ versions.tf | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/main.tf b/main.tf index 338e3ed..b674eb7 100644 --- a/main.tf +++ b/main.tf @@ -81,3 +81,8 @@ resource "aws_ssm_document" "setup_lacework_agent" { tags = var.aws_resources_tags } + +data "lacework_metrics" "lwmetrics" { + name = basename(abspath(path.module)) + version = file("${abspath(path.module)}}/VERSION") +} \ No newline at end of file diff --git a/versions.tf b/versions.tf index b381147..c44f4b5 100644 --- a/versions.tf +++ b/versions.tf @@ -3,5 +3,9 @@ terraform { required_providers { aws = ">= 3.0" + lacework = { + source = "lacework/lacework" + version = ">= 1.18" + } } }