Skip to main content
This single-click CloudFormation stack fully provisions a production-grade MemMachine environment on AWS. It automatically configures essential components such as the VPC, networking, security groups, EC2 instance with Docker, PostgreSQL/Neo4j databases, Network Load Balancer, and all necessary services and settings to run MemMachine reliably with your OpenAI API key.

Prerequisites

Have the following available and ready:
  1. AWS Account with appropriate permissions
  2. EC2 Key Pair
    • Fill out with your specific information.
  1. OpenAI API Key — required for embeddings.
  2. Determine STACK_NAME
    • you will need to use the same name for this parameter throughout deployment.
    • You can call the file whatever you like. In this example, we are using memmachine-ec2-stack or your-stack-name.
      If you choose to use a different name, make sure any reference to memmachine-ec2-stack or your-stack-nameis replaced by your chosen stack name.
  3. Cloud Formation Template - see code block below
    • Use the copy feature below and paste into your own file
    • Be sure to fill out witih your specific information where applicable

Deployment Methods

Prerequisites:
  1. AWS CLI installed and configured
  • To check your version, use the following commands:
  1. AWS Credentials Configuration:
Process:
Make sure to replace your-cft-template.yaml , your-stack-name and your-key-pair with the values you are using.
1

Set Parameters

2

Deploy Stack

3

Monitor Stack

4

Retrieve Outputs

Expected Outputs include:
  • ApplicationURL
  • HealthCheckURL
  • instanceID
  • PublicIP
  • SSHAccess
  • Neo4jBrowserURL
5

Test Application