mirror of
https://github.com/Mintplex-Labs/anything-llm
synced 2026-04-25 17:15:37 +02:00
Update AWS deployment
This commit is contained in:
@@ -3,53 +3,39 @@
|
||||
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 the `AUTH_TOKEN` and `JWT_SECRET` variables in the `docker/` ENV.
|
||||
|
||||
**Quick Launch (EASY)**
|
||||
2. Log in to your AWS account
|
||||
3. Open [CloudFormation](https://us-west-1.console.aws.amazon.com/cloudformation/home)
|
||||
4. Ensure you are deploying in a geographic zone that is nearest to your physical location to reduce latency.
|
||||
5. Click `Create Stack`
|
||||
6. Use the file `create_anythinng_llm_instance.json` as your JSON template.
|
||||
7. Launch. On first boot fill out your ENV keys and you are fully live. Time to boot is approximately 60 seconds.
|
||||
Done.
|
||||
1. Log in to your AWS account
|
||||
2. Open [CloudFormation](https://us-west-1.console.aws.amazon.com/cloudformation/home)
|
||||
3. Ensure you are deploying in a geographic zone that is nearest to your physical location to reduce latency.
|
||||
4. Click `Create Stack`
|
||||
|
||||
**Custom Launch and Build From Source**
|
||||
[Refer to .env.example](../../../docker/HOW_TO_USE_DOCKER.md) for data format.
|
||||

|
||||
|
||||
5. Use the file `cloudformation_create_anythingllm.json` as your JSON template.
|
||||
|
||||

|
||||
|
||||
6. Click Deploy.
|
||||
7. Wait for stack events to finish and be marked as `Completed`
|
||||
8. View `Outputs` tab.
|
||||
|
||||

|
||||
|
||||
9. Wait for all resources to be built. Now wait until instance is available on `[InstanceIP]:3001`.
|
||||
This process may take up to 10 minutes. See **Note** below on how to visualize this process.
|
||||
|
||||
The output of this cloudformation stack will be:
|
||||
- 1 EC2 Instance
|
||||
- 1 Security Group with 0.0.0.0/0 access on Ports 22 & 3001
|
||||
- 1 EC2 Instance Volume `gb2` of 10Gib minimum
|
||||
- 1 Security Group with 0.0.0.0/0 access on port 3001
|
||||
- 1 EC2 Instance Volume `gb2` of 10Gib minimum - customizable pre-deploy.
|
||||
|
||||
**Requirements**
|
||||
- An AWS account with billing information.
|
||||
- AnythingLLM (GUI + document processor) must use a t2.small minimum and 10Gib SSD hard disk volume
|
||||
- `.env` file that is filled out with your settings and set up in the `docker/` folder
|
||||
|
||||
## How to deploy on AWS
|
||||
|
||||
1. Generate your specific cloudformation document by running `yarn generate:cloudformation` from the project root directory.
|
||||
2. Log in to your AWS account
|
||||
3. Open [CloudFormation](https://us-west-1.console.aws.amazon.com/cloudformation/home)
|
||||
4. Ensure you are deploying in a geographic zone that is nearest to your physical location to reduce latency.
|
||||
5. Click `Create Stack`
|
||||
|
||||

|
||||
|
||||
6. Upload your `aws_cf_deploy_anything_llm.json` to the stack
|
||||
|
||||

|
||||
|
||||
7. Click `Next` and give your stack a name. This is superficial.
|
||||
8. No other changes are needed, just proceed though each step
|
||||
9. Click `Submit`
|
||||
10. Wait for stack events to finish and be marked as `Completed`
|
||||
11. View `Outputs` tab.
|
||||
|
||||

|
||||
|
||||
## Please read this notice before submitting issues about your deployment
|
||||
|
||||
**Note:**
|
||||
Your instance will not be available instantly. Depending on the instance size you launched with it can take anywhere from 10-20 minutes to fully boot up.
|
||||
Your instance will not be available instantly. Depending on the instance size you launched with it can take varying amounts of time to fully boot up.
|
||||
|
||||
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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user