Skip to content

Commit

Permalink
chore: set local var module name (#155)
Browse files Browse the repository at this point in the history
Signed-off-by: Darren Murray <darren.murray@lacework.net>
  • Loading branch information
dmurray-lacework authored Jan 23, 2024
1 parent bcd0ae8 commit fc944bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ locals {
bucket_versioning_enabled = var.bucket_versioning_enabled ? "Enabled" : "Suspended"
bucket_sse_key_arn = var.use_existing_kms_key ? var.bucket_sse_key_arn : ((var.use_existing_cloudtrail || length(var.bucket_sse_key_arn) > 0) ? var.bucket_sse_key_arn : aws_kms_key.lacework_kms_key[0].arn)
version_file = "${abspath(path.module)}/VERSION"
module_name = basename(abspath(path.module))
module_name = "terraform-aws-cloudtrail"
module_version = fileexists(local.version_file) ? file(local.version_file) : ""
}

Expand Down

0 comments on commit fc944bd

Please sign in to comment.