Download Terraform
Extract zip file
→ run terraform.exe
check terraform version
Create API Tokens in Digital Ocean
Go to and log in to your account. Expiration :- 30/60/90 days and No Expire Set Permissions :- full access
Download terraform code from here Create terraform.tfvars file for variables
.tfvars
do_token = "DIGITAL_OCEAN_TOKEN"
droplet_name = "Dropet_Name"
droplet_region = "blr1"
droplet_size = "s-1vcpu-1gb"
droplet_image = "ubuntu-24-04-x64"
db_user = " " # database user name
db_password = " " # database Password
db_name = " " # database Name
github_repo = "git@github.com:user_name/repo_name.git"
ssh_public_key_path = " " # id_rsa.pub file location path
ssh_private_key_path = " " id_rsa file location path
node_version = "18" # node version
domain_name = " " # domain name for nginx
Save the file
→ Open Terminal in that Folder
in terminal