Hosting
Deploy on AWS
Get access to the private MorningHQ/martian-hermes-agent repository. You need Node.js, npm, AWS CLI, the Session Manager plugin and a CDK-bootstrapped account/region.
Deploy
Section titled “Deploy”aws sts get-caller-identitygit clone https://github.com/MorningHQ/martian-hermes-agent.gitcd martian-hermes-agentnpm cinpm run checknpm run synthnpm run diffReview the account, region, cost and resource changes, then:
npm run deployDefault region: us-east-1. The operator needs the stack’s resource permissions and scoped iam:PassRole for the EC2 and Backup roles. Deployment uses the operator’s CLI credentials.
Wait for the host
Section titled “Wait for the host”Connect through SSM and run on EC2:
sudo cat /var/lib/martian-hermes/bootstrap-statussudo systemctl status martian-hermes-gateway martian-hermes-dashboard martian-redteam-labsudo martian-hermes statusTool installation can outlast CloudFormation deployment. If bootstrap fails, inspect /var/log/cloud-init-output.log.
Before using the host, check the approved code pin, /srv/hermes mount, encryption, no ingress and loopback dashboard. Then run a real agent/tool test and a restore rehearsal.
Replacing an existing host
Verify an off-host backup, stop services, unmount /srv/hermes and stop the old instance. Preserve the data disk and its AZ. Review attachment ordering; never format the existing disk. For a different AZ, restore a new encrypted volume from a recovery point.