AWS Security ChangesHomeSearch

AWS neptune documentation change

Service: neptune · 2025-05-10 · Documentation medium

File: neptune/latest/userguide/access-graph-gremlin-python.md

Summary

Replaced inline IAM authentication code example with link to dedicated IAM authentication guide

Security assessment

The change improves security documentation by directing users to official IAM authentication guidance rather than providing inline code snippets, promoting better security practices for credential management.

Diff

diff --git a/neptune/latest/userguide/access-graph-gremlin-python.md b/neptune/latest/userguide/access-graph-gremlin-python.md
index cd589558d..aea942e94 100644
--- a//neptune/latest/userguide/access-graph-gremlin-python.md
+++ b//neptune/latest/userguide/access-graph-gremlin-python.md
@@ -40 +40 @@ For information about finding the address of your Neptune DB instance, see the [
-In the example below, you can enable use on an IAM enabled database by setting an environment variable called `USE_IAM`. This will use the AWS [ standardized credentials provider chain](https://docs.aws.amazon.com/sdkref/latest/guide/standardized-credentials.html) and the `boto3` SDK to sign your requests with the appropriate SigV4 credentials. 
+The example below demonstrates how to connect with Gremlin Python. For IAM connectivity, see [Connecting to Amazon Neptune databases using IAM authentication with Gremlin Python](./gremlin-python-iam-auth.html). 
@@ -51,7 +50,0 @@ In the example below, you can enable use on an IAM enabled database by setting a
-    if "USE_IAM" in os.environ and bool(os.environ["USE_IAM"]):
-    creds = boto3.Session().get_credentials().get_frozen_credentials()
-    request = AWSRequest(method="GET", url=database_url, data=None)
-    SigV4Auth(creds, "neptune-db", boto3.Session().region_name).add_auth(request)
-    
-    remoteConn = DriverRemoteConnection(database_url, "g", headers=request.headers.items())
-    else: