Skip to content

Commit a454c62

Browse files
authored
fix: use the specified region to retrieve the current AWS region
fix: use var.region in aws_region data source to retrieve correct region
1 parent a162988 commit a454c62

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
data "aws_region" "current" {}
1+
data "aws_region" "current" {
2+
region = var.region
3+
}
24

35
data "aws_canonical_user_id" "this" {
46
count = local.create_bucket && local.create_bucket_acl && try(var.owner["id"], null) == null ? 1 : 0

0 commit comments

Comments
 (0)