diff --git a/cloud-deployments/digitalocean/terraform/DEPLOY.md b/cloud-deployments/digitalocean/terraform/DEPLOY.md index 1877abc2ef338fb67959bb75d14beea4f475d690..7baf5d4014cb6d7559ae4f4d89892eeb3d840a47 100644 --- a/cloud-deployments/digitalocean/terraform/DEPLOY.md +++ b/cloud-deployments/digitalocean/terraform/DEPLOY.md @@ -12,16 +12,18 @@ The output of this Terraform configuration will be: - Follow the instructions in the [official Terraform documentation](https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli) for your operating system. ## How to deploy on DigitalOcean -Open your terminal and navigate to the `digitalocean/terraform` folder -1. Replace the token value in the provider "digitalocean" block in main.tf with your DigitalOcean API token. -2. Run the following commands to initialize Terraform, review the infrastructure changes, and apply them: +Open your terminal and navigate to the `docker` folder +1. Create a `.env` file by cloning the `.env.example`. +2. Navigate to `digitalocean/terraform` folder. +3. Replace the token value in the provider "digitalocean" block in main.tf with your DigitalOcean API token. +4. Run the following commands to initialize Terraform, review the infrastructure changes, and apply them: ``` terraform init terraform plan terraform apply ``` Confirm the changes by typing yes when prompted. -4. Once the deployment is complete, Terraform will output the public IP address of your droplet. You can access your application using this IP address. +5. Once the deployment is complete, Terraform will output the public IP address of your droplet. You can access your application using this IP address. ## How to deploy on DigitalOcean To delete the resources created by Terraform, run the following command in the terminal: diff --git a/cloud-deployments/digitalocean/terraform/main.tf b/cloud-deployments/digitalocean/terraform/main.tf index 331d254e3a1bedde1462fd2ce4b30b6d015bfe7a..7a76f57b21c8b7487605d872507b7e7e725f6a18 100644 --- a/cloud-deployments/digitalocean/terraform/main.tf +++ b/cloud-deployments/digitalocean/terraform/main.tf @@ -16,7 +16,7 @@ provider "digitalocean" { resource "digitalocean_droplet" "anything_llm_instance" { - image = "ubuntu-22-10-x64" + image = "ubuntu-24-04-x64" name = "anything-llm-instance" region = "nyc3" size = "s-2vcpu-2gb"