We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8ffe8f commit 912eb56Copy full SHA for 912eb56
main.tf
@@ -10,7 +10,7 @@ data "aws_service_principal" "rds" {
10
count = var.create && var.create_iam_role ? 1 : 0
11
12
service_name = "rds"
13
- region = data.aws_region.current.name
+ region = data.aws_region.current.region
14
}
15
################################################################################
16
# RDS Proxy
@@ -153,7 +153,7 @@ data "aws_iam_policy_document" "this" {
153
test = "StringEquals"
154
variable = "kms:ViaService"
155
values = [
156
- "secretsmanager.${data.aws_region.current.name}.${data.aws_partition.current.dns_suffix}"
+ "secretsmanager.${data.aws_region.current.region}.${data.aws_partition.current.dns_suffix}"
157
]
158
159
0 commit comments