fix(data.aws_region): argument name is deprecated

This commit is contained in:
Dimitri GRISARD 2025-09-16 09:59:07 +02:00
parent e8ffe8f2f1
commit 912eb56da7
No known key found for this signature in database
GPG key ID: 296A1196869D121D

View file

@ -10,7 +10,7 @@ data "aws_service_principal" "rds" {
count = var.create && var.create_iam_role ? 1 : 0
service_name = "rds"
region = data.aws_region.current.name
region = data.aws_region.current.region
}
################################################################################
# RDS Proxy
@ -153,7 +153,7 @@ data "aws_iam_policy_document" "this" {
test = "StringEquals"
variable = "kms:ViaService"
values = [
"secretsmanager.${data.aws_region.current.name}.${data.aws_partition.current.dns_suffix}"
"secretsmanager.${data.aws_region.current.region}.${data.aws_partition.current.dns_suffix}"
]
}
}