Skip to content

Commit 95fac69

Browse files
committed
Fix logic
1 parent 4d7f453 commit 95fac69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/service/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ data "aws_caller_identity" "current" {
1111
locals {
1212
account_id = try(data.aws_caller_identity.current[0].account_id, "")
1313
partition = try(data.aws_partition.current[0].partition, "")
14-
region = try(var.region, try(data.aws_region.current[0].region, ""))
14+
region = var.region != null ? var.region : try(data.aws_region.current[0].region, "")
1515
}
1616

1717
################################################################################

0 commit comments

Comments
 (0)