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 1fc2397 commit 7217651Copy full SHA for 7217651
main.tf
@@ -6,7 +6,10 @@ locals {
6
7
data "aws_region" "current" {}
8
data "aws_partition" "current" {}
9
-
+data "aws_service_principal" "rds" {
10
+ service_name = "rds"
11
+ region = data.aws_region.current.region
12
+}
13
################################################################################
14
# RDS Proxy
15
@@ -111,7 +114,7 @@ data "aws_iam_policy_document" "assume_role" {
111
114
112
115
principals {
113
116
type = "Service"
- identifiers = distinct(["rds.${data.aws_partition.current.dns_suffix}", "rds.amazonaws.com"])
117
+ identifiers = [data.aws_service_principal.rds.id]
118
}
119
120
0 commit comments