Skip to content

Commit 912eb56

Browse files
author
Dimitri GRISARD
committed
fix(data.aws_region): argument name is deprecated
1 parent e8ffe8f commit 912eb56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ data "aws_service_principal" "rds" {
1010
count = var.create && var.create_iam_role ? 1 : 0
1111

1212
service_name = "rds"
13-
region = data.aws_region.current.name
13+
region = data.aws_region.current.region
1414
}
1515
################################################################################
1616
# RDS Proxy
@@ -153,7 +153,7 @@ data "aws_iam_policy_document" "this" {
153153
test = "StringEquals"
154154
variable = "kms:ViaService"
155155
values = [
156-
"secretsmanager.${data.aws_region.current.name}.${data.aws_partition.current.dns_suffix}"
156+
"secretsmanager.${data.aws_region.current.region}.${data.aws_partition.current.dns_suffix}"
157157
]
158158
}
159159
}

0 commit comments

Comments
 (0)