AWS Marketplace · Buyer guide
Set up NexDiscovery on EC2
Install and operate the platform in your AWS account using the supplied Docker Compose bundle.
Examples use release 26.11.17_1. Check your launch instructions and release notes for your selected version.
1. Prepare your instance
Subscribe through AWS Marketplace and confirm the contract and buyer license grant are active. Use a Linux amd64 EC2 instance with an x86-64-v3 CPU; ARM is not supported for this release.
Install Docker Engine, Compose v2 or later, Python 3.10 or later, AWS CLI v2, curl, tar and SHA-256 utilities. The installation owner needs Docker access. Size memory and EBS storage for your graph, images and backups.
Point a domain to the instance. Allow inbound TCP 80 and 443, restrict SSH, and allow outbound DNS and HTTPS to AWS, image layers, the bundle download origin, certificate services and Resend. Keep database and internal application ports private.
2. Configure IAM and IMDS
Create an IAM role for the EC2 service in the buyer account. In the IAM console, create a policy using the JSON below, attach it to the role, and attach the role to the instance as its instance profile. If the instance already has a suitable role, add the policy to that role.
This example covers the five repositories for the documented release. Check their names against your Marketplace launch instructions. Cross-account image pulls also require the repository owner to grant the buyer access. License Manager checkout and check-in, and ECR authorization, require * resources.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "LicenseCheckout",
"Effect": "Allow",
"Action": [
"license-manager:CheckoutLicense",
"license-manager:CheckInLicense"
],
"Resource": "*"
},
{
"Sid": "RegistryAuthentication",
"Effect": "Allow",
"Action": "ecr:GetAuthorizationToken",
"Resource": "*"
},
{
"Sid": "ProductImagePull",
"Effect": "Allow",
"Action": [
"ecr:BatchCheckLayerAvailability",
"ecr:BatchGetImage",
"ecr:GetDownloadUrlForLayer"
],
"Resource": [
"arn:aws:ecr:us-east-1:709825985650:repository/nexdiscovery/nexdiscovery-platform",
"arn:aws:ecr:us-east-1:709825985650:repository/nexdiscovery/nexdiscovery-platform-backend",
"arn:aws:ecr:us-east-1:709825985650:repository/nexdiscovery/nexdiscovery-platform-neo4j",
"arn:aws:ecr:us-east-1:709825985650:repository/nexdiscovery/nexdiscovery-platform-redis",
"arn:aws:ecr:us-east-1:709825985650:repository/nexdiscovery/nexdiscovery-platform-caddy"
]
}
]
}In EC2 instance metadata options, enable the metadata endpoint, require IMDSv2, and set the response hop limit to 2. The backend uses and refreshes instance-role credentials. Do not place long-lived AWS keys in the bundle.
See AWS guidance for License Manager permissions, ECR access, and metadata options.
3. Download the bundle
For a new installation, run the following as the installation owner. Existing installations should use the update instructions below. Stop if the download or checksum fails. The service retains the newest five releases, so save the selected archive and checksum with your deployment records.
(
set -eu
mkdir -p "$HOME/nexdiscovery"
cd "$HOME/nexdiscovery"
test ! -e .env || { echo 'Existing installation detected; use platformctl update.' >&2; exit 1; }
version=26.11.17_1
base="https://d1cbcs31ah8ggd.cloudfront.net/marketplace/$version"
bundle="nexdiscovery-marketplace-$version.tar.gz"
curl --fail --show-error --location "$base/$bundle" -o "$bundle"
curl --fail --show-error --location "$base/$bundle.sha256" -o "$bundle.sha256"
sha256sum -c "$bundle.sha256"
tar -xzf "$bundle"
cp buyer.env.example .env
cat images.env >> .env
chmod 600 .env
)4. Configure the platform
Edit ~/nexdiscovery/.env securely. Keep COMPOSE_FILE=compose.yml and all five image digest assignments. Set:
MARKETPLACE_PRODUCT_ID=prod-7qdnrtqri2s6eMARKETPLACE_ENTITLEMENT=AWS::Marketplace::UsageMARKETPLACE_LICENSE_REGION=us-east-1PLATFORM_DOMAIN: your hostname, without a scheme or path.ACME_EMAIL: certificate contact;EMAIL_FROM: verified Resend sender.DUE_REMINDER_TIMEZONE: your timezone, or retain UTC. SetSITE_INTELLIGENCE_ALLOWED_COMPANY_IDSonly for licensed organizations.
cd "$HOME/nexdiscovery"
python3 configure.pyEnter the Resend API key at the hidden prompt. The helper creates missing secrets and preserves existing ones; it does not rotate them. Keep the secrets/ directory private. Its mode-444 files are accessible to the distinct non-root container users through their mounts.
5. Authenticate and launch
Run this in Bash. AWS CLI obtains a temporary registry password using buyer credentials, normally the instance role; the pipe sends it to Docker through stdin. The username AWS is fixed and the ECR token lasts 12 hours. This permits authorized image pulls; License Manager separately checks application use.
cd "$HOME/nexdiscovery"
(
set -euo pipefail
aws ecr get-login-password --region us-east-1 | \
docker login --username AWS --password-stdin \
709825985650.dkr.ecr.us-east-1.amazonaws.com
docker compose --env-file .env -f compose.yml config --quiet
docker compose --env-file .env -f compose.yml pull
docker compose --env-file .env -f compose.yml up -d --no-build
docker compose exec -T backend cat scripts/create_indexes.cypher | \
docker compose exec -T neo4j bash -ec \
'NEO4J_USERNAME=neo4j NEO4J_PASSWORD="$(cat /run/secrets/neo4j_password)" cypher-shell'
)Use the five digest references as one release. The Neo4j image includes APOC; no startup plugin download is required.
6. Verify and sign in
docker compose ps
curl --fail --show-error https://YOUR_DOMAIN/api/health
curl --fail --show-error https://YOUR_DOMAIN/api/readyReplace YOUR_DOMAIN with your hostname. All five services should run. Health indicates liveness; readiness should return HTTP 200 with status=ready and neo4j=connected, and requires a valid contract. Recheck after more than five minutes to cover license refresh.
Register at https://YOUR_DOMAIN/en/register using your own email, password and intended company identifier, then sign in. Confirm email delivery and run a small discovery against an authorized test source.
7. Updates and rollback
Run updates as the installation owner in the same directory, with the same Compose project name. Review release notes, refresh ECR login, and schedule a maintenance window: the updater stops services to dump the database and replace the release.
cd "$HOME/nexdiscovery"
./platformctl version
./platformctl check-update
./platformctl --timeout 600 update --version APPROVED_VERSIONSubstitute the exact approved newer version. The updater validates the candidate, pulls images, preserves configuration and secrets, takes an offline dump, applies indexes and checks readiness. Afterward verify sign-in, existing data and discovery. Restarting containers alone does not upgrade them.
Older installations without platformctl
From the existing installation directory, verify a newer bundle and extract only the updater. Do not replace the existing configuration or application files during adoption.
(
set -eu
stage=$(mktemp -d)
version=26.11.17_1
base="https://d1cbcs31ah8ggd.cloudfront.net/marketplace/$version"
bundle="nexdiscovery-marketplace-$version.tar.gz"
curl -fSL "$base/$bundle" -o "$stage/$bundle"
curl -fSL "$base/$bundle.sha256" -o "$stage/$bundle.sha256"
(cd "$stage" && sha256sum -c "$bundle.sha256")
tar -xzf "$stage/$bundle" -C "$stage" platformctl
install -m 755 "$stage/platformctl" ./platformctl
./platformctl version
./platformctl --timeout 600 update --version "$version"
)Roll back the application
./platformctl --timeout 600 rollbackThis restores the cached previous application and preserves current buyer settings and secrets. It does not restore the database or undo data writes. Schema or data-format recovery requires the matching release-specific restore procedure.
8. Backup and recovery
Preserve .env, secrets/, .platformctl/, release archives and named volumes. The updater stores private snapshots and dumps in .platformctl/. Never run docker compose down -v during updates or routine troubleshooting.
Archive verified backups and matching encryption keys in encrypted, access-controlled storage outside the VM. Test restoration in isolation: a checksum alone does not prove a dump can be restored. The following independent dump stops the backend and database and restarts the stack afterward.
(
set -eu
backup_dir="$PWD/backups/$(date -u +%Y%m%dT%H%M%SZ)"
sudo install -d -m 0700 -o 7474 -g 7474 "$backup_dir"
docker compose stop backend neo4j
dump_status=0
docker compose run --rm --no-deps -v "$backup_dir:/backups" \
--entrypoint neo4j-admin neo4j database dump neo4j --to-path=/backups || dump_status=$?
docker compose up -d --no-build
test "$dump_status" -eq 0
sudo sha256sum "$backup_dir/neo4j.dump"
)For recovery, stop the backend and Neo4j, retain the existing volume, and mount the dump read-only at /backups with a fresh recovery volume and the release’s Neo4j image. Run neo4j-admin database load neo4j --from-path=/backups, then validate data and matching encryption keys before switching. Use the bundled README and product support for the volume switch.
9. Protect and rotate secrets
Enable EBS encryption for Docker data, configuration and backups. HTTPS protects public application traffic. The application encrypts stored integration credential fields with its Fernet key; this does not encrypt the entire database or its dumps. Retain matching keys with backups.
- Resend: create a new key, update its secret securely, recreate the backend, test email, then revoke the old key.
- JWT: securely replace the signing secret and recreate the backend. Existing sessions must sign in again.
- Neo4j: back up and stop the backend, change the password through an authenticated database administration procedure, update the matching secret, recreate the services and check readiness. Editing the file alone does not change the database password.
- Integration encryption: coordinate supported re-encryption with product support before replacing the key; retain old keys needed by backups.
10. Troubleshooting
For MARKETPLACE_LICENSE_UNAVAILABLE, inspect the installed release and bounded backend logs:
./platformctl version
docker compose logs --since 20m --tail 200 backend | grep -Ei 'Marketplace|license|credentials|AccessDenied|ExpiredToken|NoCredentials'- Check the active contract, exact product ID and entitlement, region, IAM permissions, IMDSv2 hop limit and outbound connectivity.
- An invalid feature-contract checkout can be caused by an older backend rejecting a valid expiration timestamp. Release 26.11.17_1 contains the parsing fix; a generic 503 alone does not prove expiry.
- For readiness failures, check Neo4j health and backend startup. For TLS, check DNS, inbound 80/443 and certificate-service access. For email, check the Resend key and verified sender. Refresh ECR login if its token expires.
Contact support through the Marketplace listing or contact NexDiscovery with the release, sanitized errors and reproduction steps. Do not send secrets, checkout tokens or customer data.
11. Operating costs
In addition to the Marketplace contract, EC2, EBS, backups, public addresses, data transfer, DNS and transactional email can incur charges. Monitor memory, disk and backup growth and review your provider’s current pricing.