Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Nov 16, 2021
1 parent dfdb34b commit b6ca146
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cloudtrail/generate_splunk.cloudtrail.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ data "template_file" "splunk_cloudtrail" {
account_id = local.account_id
account_alias = local.account_alias
entry_uuid = random_uuid.splunk_cloudtrail.result
region = local.cloudtrail_region
region = local.region
queue_url = var.enable_sqs ? aws_sqs_queue.cloudtrail[0].id : null
}
}
Expand Down
1 change: 1 addition & 0 deletions cloudtrail/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ locals {
region = data.aws_region.current.name
account_environment = data.aws_arn.current.partition == "aws-us-gov" ? "gov" : "ew"
partition = data.aws_arn.current.partition
account_alias = var.account_alias == "" ? "MISSING" : var.account_alias

_name = var.name == null ? format("%v-%v", lookup(local._defaults["cloudtrail"], "name"), local.region) : var.name
name = var.enable_organization ? lookup(local._defaults["org_cloudtrail"], "name") : local._name
Expand Down

0 comments on commit b6ca146

Please sign in to comment.