You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
2.3 KiB

11 months ago
  1. # How to deploy a private AnythingLLM instance on AWS
  2. With an AWS account you can easily deploy a private AnythingLLM instance on AWS. This will create a url that you can access from any browser over HTTP (HTTPS not supported). This single instance will run on your own keys and they will not be exposed - however if you want your instance to be protected it is highly recommend that you set a password one setup is complete.
  3. **Quick Launch (EASY)**
  4. 1. Log in to your AWS account
  5. 2. Open [CloudFormation](https://us-west-1.console.aws.amazon.com/cloudformation/home)
  6. 3. Ensure you are deploying in a geographic zone that is nearest to your physical location to reduce latency.
  7. 4. Click `Create Stack`
  8. ![Create Stack](../../../images/screenshots/create_stack.png)
  9. 5. Use the file `cloudformation_create_anythingllm.json` as your JSON template.
  10. ![Upload Stack](../../../images/screenshots/upload.png)
  11. 6. Click Deploy.
  12. 7. Wait for stack events to finish and be marked as `Completed`
  13. 8. View `Outputs` tab.
  14. ![Stack Output](../../../images/screenshots/cf_outputs.png)
  15. 9. Wait for all resources to be built. Now wait until instance is available on `[InstanceIP]:3001`.
  16. This process may take up to 10 minutes. See **Note** below on how to visualize this process.
  17. The output of this cloudformation stack will be:
  18. - 1 EC2 Instance
  19. - 1 Security Group with 0.0.0.0/0 access on port 3001
  20. - 1 EC2 Instance Volume `gb2` of 10Gib minimum - customizable pre-deploy.
  21. **Requirements**
  22. - An AWS account with billing information.
  23. ## Please read this notice before submitting issues about your deployment
  24. **Note:**
  25. Your instance will not be available instantly. Depending on the instance size you launched with it can take 5-10 minutes to fully boot up.
  26. If you want to check the instance's progress, navigate to [your deployed EC2 instances](https://us-west-1.console.aws.amazon.com/ec2/home) and connect to your instance via SSH in browser.
  27. Once connected run `sudo tail -f /var/log/cloud-init-output.log` and wait for the file to conclude deployment of the docker image.
  28. You should see an output like this
  29. ```
  30. [+] Running 2/2
  31. ⠿ Network docker_anything-llm Created
  32. ⠿ Container anything-llm Started
  33. ```
  34. Additionally, your use of this deployment process means you are responsible for any costs of these AWS resources fully.