AWS Security ChangesHomeSearch

AWS neptune documentation change

Service: neptune · 2025-10-16 · Documentation low

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

Summary

Updated Apache Maven installation instructions for Amazon Linux 2023 and Amazon Linux 2, replacing yum repository setup with direct package installation (dnf) and manual binary installation steps.

Security assessment

The changes are procedural updates for installing build tools and do not relate to security vulnerabilities or introduce security features. No evidence of addressing security issues.

Diff

diff --git a/neptune/latest/userguide/access-graph-gremlin-java.md b/neptune/latest/userguide/access-graph-gremlin-java.md
index 1a68d87f9..1298e423d 100644
--- a//neptune/latest/userguide/access-graph-gremlin-java.md
+++ b//neptune/latest/userguide/access-graph-gremlin-java.md
@@ -15 +15 @@ These instructions must be followed from an Amazon EC2 instance in the same virt
-  1. **Install Apache Maven on your EC2 instance.** First, enter the following to add a repository with a Maven package:
+  1. Install Apache Maven on your EC2 instance. If using Amazon Linux 2023 (preferred), use:
@@ -17 +17,2 @@ These instructions must be followed from an Amazon EC2 instance in the same virt
-        sudo wget https://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
+        sudo dnf update -y
+    sudo dnf install maven -y
@@ -19 +20 @@ These instructions must be followed from an Amazon EC2 instance in the same virt
-Enter the following to set the version number for the packages:
+If using Amazon Linux 2, download the latest binary from [ https://maven.apache.org/download.cgi: ](https://maven.apache.org/download.cgi:)
@@ -21,5 +22,7 @@ Enter the following to set the version number for the packages:
-        sudo sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo
-
-Then use **yum** to install Maven:
-    
-        sudo yum install -y apache-maven
+        sudo yum remove maven -y
+    wget https://dlcdn.apache.org/maven/maven-3/ <version>/binaries/apache-maven-<version>-bin.tar.gz
+    sudo tar -xzf apache-maven-<version>-bin.tar.gz -C /opt/
+    sudo ln -sf /opt/apache-maven-<version> /opt/maven
+    echo 'export MAVEN_HOME=/opt/maven' >> ~/.bashrc
+    echo 'export PATH=$MAVEN_HOME/bin:$PATH' >> ~/.bashrc
+    source ~/.bashrc