neptune-cli

command module
v0.0.0-...-e5f642a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2020 License: MIT Imports: 17 Imported by: 0

README

AWS Neptune CLI

This a basic reverse proxy/interactive CLI that automatically signs incoming requests using the AWS V4 signing method and redirects to the defined host. It's intended for use with AWS Neptune.

Configure

Requires AWS credentials, which can be configured using standard AWS methods such as shared credentials file (~/.aws/credentials) or environment variables (e.g. AWS_ACCESS_KEY_ID + AWS_SECRET_ACCESS_KEY). See: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials

Environment variables

Any custom environment variables should be added to a file called .env. Env vars in this file will override any system environment vars and also the defaults contained within .env.default.

  • AWS_ACCESS_KEY_ID - Used to authenticate with AWS
  • AWS_SECRET_ACCESS_KEY - Used to authenticate with AWS
  • AWS_REGION - Used to authenticate with AWS
  • AWS_NEPTUNE_PROXY_ENVIRONMENTS - A list of environments to configure. Each environment requires a _LISTEN_PORT and _HOST variable.

Example configuration for a STAGE and PROD environment, which sets up two HTTP proxies to route to two separate hosts and listen on ports 9001 (staging) and 10001 (production):

AWS_NEPTUNE_PROXY_ENVIRONMENTS=STAGE,PROD
AWS_NEPTUNE_PROXY_STAGE_LISTEN_PORT=9001
AWS_NEPTUNE_PROXY_STAGE_HOST=my-stage-cluster.cluster-sdshjdgshdjg.us-east-1.neptune.amazonaws.com
AWS_NEPTUNE_PROXY_PROD_LISTEN_PORT=10001
AWS_NEPTUNE_PROXY_PROD_HOST=my-prod-cluster.cluster-sdshjdgshdjg.us-east-1.neptune.amazonaws.com

Run

go run main.go

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL