This project is a Terraform configuration for deploying a SvelteKit application on DigitalOcean.
Before getting started, make sure you have the following:
Clone this repository to your local machine:
git clone https://github.com/your-username/terraform-app-digitalocean.git
Change into the project directory:
cd terraform-app-digitalocean/terraform
Initialize Terraform:
terraform init
Customize the configuration:
Open the variables.tf
file and update the variables according to your requirements. You can specify the DigitalOcean region, droplet size, and other settings.
Deploy the infrastructure:
terraform apply
This will create the necessary resources on DigitalOcean.
Access your application:
Once the deployment is complete, you will see the IP address of the created droplet in the Terraform output. Use this IP address to access your application.
Destroy the infrastructure:
To destroy the infrastructure and remove all resources created by Terraform, run the following command:
terraform destroy