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 95fac69 commit 86a4467Copy full SHA for 86a4467
modules/service/main.tf
@@ -1,4 +1,6 @@
1
data "aws_region" "current" {
2
+ region = var.region
3
+
4
count = var.create ? 1 : 0
5
}
6
data "aws_partition" "current" {
@@ -11,7 +13,7 @@ data "aws_caller_identity" "current" {
11
13
locals {
12
14
account_id = try(data.aws_caller_identity.current[0].account_id, "")
15
partition = try(data.aws_partition.current[0].partition, "")
- region = var.region != null ? var.region : try(data.aws_region.current[0].region, "")
16
+ region = try(data.aws_region.current[0].region, "")
17
18
19
################################################################################
0 commit comments