mirror of
https://github.com/terraform-aws-modules/terraform-aws-rds-proxy.git
synced 2025-12-17 00:11:11 +00:00
fix(data.aws_region): argument name is deprecated
This commit is contained in:
parent
e8ffe8f2f1
commit
912eb56da7
1 changed files with 2 additions and 2 deletions
4
main.tf
4
main.tf
|
|
@ -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}"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue