Digital Ocean Terraform Patches ()

Added necessary deployment steps. Modified not supported Ubuntu version with the latest LTS option.

Co-authored-by: thealice <thealice@wonderland.com>
This commit is contained in:
Barış Ekin Yıldırım 2024-07-15 06:07:17 +03:00 committed by GitHub
parent 36c5cd16c7
commit 40d55f4042
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 5 deletions
cloud-deployments/digitalocean/terraform

View file

@ -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:

View file

@ -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"