From b238766a9020a46f51dcff24abd3abca2a26d1c3 Mon Sep 17 00:00:00 2001 From: Darren <75614232+dmurray-lacework@users.noreply.github.com> Date: Tue, 23 Jan 2024 18:12:10 +0000 Subject: [PATCH] chore: set local var module name (#15) Signed-off-by: Darren Murray --- main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.tf b/main.tf index 730ee1f..8348dee 100644 --- a/main.tf +++ b/main.tf @@ -2,7 +2,7 @@ locals { user_name = length(var.user_name) > 0 ? var.user_name : "${var.name_prefix}_user" group_name = length(var.group_name) > 0 ? var.group_name : "${var.name_prefix}_group" version_file = "${abspath(path.module)}/VERSION" - module_name = basename(abspath(path.module)) + module_name = "terraform-oci-iam-user" module_version = fileexists(local.version_file) ? file(local.version_file) : "" } @@ -55,4 +55,4 @@ resource "oci_identity_api_key" "lacework_api_key" { data "lacework_metric_module" "lwmetrics" { name = local.module_name version = local.module_version -} \ No newline at end of file +}