Skip to content

Commit 976e9eb

Browse files
committed
Fix
1 parent 99de4c3 commit 976e9eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

multiregion-s3/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ variable "Region1" {
77
description = "Region for bucket 1"
88

99
validation {
10-
condition = contains(data.aws_regions.current.names, var.PrimaryRegion)
10+
condition = contains(data.aws_regions.current.names, var.Region1)
1111
error_message = "Region1 must be a valid AWS region. Available regions: ${join(", ", data.aws_regions.current.names)}"
1212
}
1313
}
@@ -17,7 +17,7 @@ variable "Region2" {
1717
description = "Region for bucket 2"
1818

1919
validation {
20-
condition = contains(data.aws_regions.current.names, var.PrimaryRegion)
20+
condition = contains(data.aws_regions.current.names, var.Region2)
2121
error_message = "Region1 must be a valid AWS region. Available regions: ${join(", ", data.aws_regions.current.names)}"
2222
}
2323
}

0 commit comments

Comments
 (0)