AWS Security ChangesHomeSearch

AWS AmazonRDS: Use DB endpoint instead of instance identifier for IAM auth token

Service: AmazonRDS · 2026-10-29 · Documentation medium

File: AmazonRDS/latest/UserGuide/example_rds_Utilities_section.md · Type: iam

Summary

Updates the RDS Utilities Java example to pass the DB instance endpoint (not the instance identifier) as the hostname when generating an IAM authentication token, renaming the variable and argument accordingly.

Security assessment

IAM database authentication tokens are host-bound, so using the instance identifier as the hostname produces an invalid/incorrectly-scoped token; the change makes the credential-generation sample consistent with the endpoint-bound token semantics.

Evidence

+                        .hostname(dbEndpoint)

Diff

diff --git a/AmazonRDS/latest/UserGuide/example_rds_Utilities_section.md b/AmazonRDS/latest/UserGuide/example_rds_Utilities_section.md
index d10e15e..f6067ac 100644
--- a//AmazonRDS/latest/UserGuide/example_rds_Utilities_section.md
+++ b//AmazonRDS/latest/UserGuide/example_rds_Utilities_section.md
@@ -29 +29 @@ Returns a RdsUtilities object that generates the authentication token.
-                        <dbInstanceIdentifier> <masterUsername>
+                        <dbEndpoint> <masterUsername>
@@ -32 +32 @@ Returns a RdsUtilities object that generates the authentication token.
-                        dbInstanceIdentifier - The database instance identifier.\s
+                        dbEndpoint - The DB instance endpoint, for example rdsmysql.123456789012.us-west-2.rds.amazonaws.com.\s
@@ -41 +41 @@ Returns a RdsUtilities object that generates the authentication token.
-            String dbInstanceIdentifier = args[0];
+            String dbEndpoint = args[0];
@@ -48 +48 @@ Returns a RdsUtilities object that generates the authentication token.
-            String token = getAuthToken(rdsClient, dbInstanceIdentifier, masterUsername);
+            String token = getAuthToken(rdsClient, dbEndpoint, masterUsername);
@@ -52 +52 @@ Returns a RdsUtilities object that generates the authentication token.
-        public static String getAuthToken(RdsClient rdsClient, String dbInstanceIdentifier, String masterUsername) {
+        public static String getAuthToken(RdsClient rdsClient, String dbEndpoint, String masterUsername) {
@@ -60 +60 @@ Returns a RdsUtilities object that generates the authentication token.
-                        .hostname(dbInstanceIdentifier)
+                        .hostname(dbEndpoint)