Skip to content

Commit 4fb4038

Browse files
committed
Eliminate deprecation warning about aws_region data source
1 parent 8fadf71 commit 4fb4038

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subscription-filter.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
locals {
22
function_name = var.function_name
3-
principal = "logs.${data.aws_region.current.name}.amazonaws.com"
3+
principal = "logs.${data.aws_region.current.region}.amazonaws.com"
44
}
55

66
# Get current region.

0 commit comments

Comments
 (0)