We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d7f453 commit 95fac69Copy full SHA for 95fac69
modules/service/main.tf
@@ -11,7 +11,7 @@ data "aws_caller_identity" "current" {
11
locals {
12
account_id = try(data.aws_caller_identity.current[0].account_id, "")
13
partition = try(data.aws_partition.current[0].partition, "")
14
- region = try(var.region, try(data.aws_region.current[0].region, ""))
+ region = var.region != null ? var.region : try(data.aws_region.current[0].region, "")
15
}
16
17
################################################################################
0 commit comments