Deploy on Amazon EC2
Deploy Graph Explorer onto an Amazon EC2 instance and use it as a proxy server with SSH tunneling to connect to Amazon Neptune.
Prerequisites
Section titled “Prerequisites”- Provision an Amazon EC2 instance that will be used to host the application and connect to Neptune as a proxy server. For more details, see instructions here.
- Ensure the Amazon EC2 instance can send and receive on ports
22(SSH),8182(Neptune), and443or80depending on protocol used (graph-explorer). - Docker installed on the EC2 instance
- AWS CLI installed on the EC2 instance
-
Open an SSH client and connect to the EC2 instance
-
Authenticate with the Amazon ECR Public Registry
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws -
Pull the Docker image
docker pull public.ecr.aws/neptune/graph-explorer -
Run the container substituting the
{hostname-or-ip-address}with the hostname or IP address of the EC2 instancedocker run -p 80:80 -p 443:443 \--restart unless-stopped \--env HOST={hostname-or-ip-address} \public.ecr.aws/neptune/graph-explorer -
Navigate to the public URL of your EC2 instance accessing the
/explorerendpoint. You will receive a warning as the SSL certificate used is self-signed. The URL will look like this:https://ec2-1-2-3-4.us-east-1.compute.amazonaws.com/explorer -
Since the application is set to use HTTPS by default and contains a self-signed certificate, you will need to add the Graph Explorer certificates to the trusted certificates directory and manually trust them. See HTTPS Connections section.
-
After completing the trusted certification step and refreshing the browser, you should now see the Connections UI.