JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Skip to content
Gallery
Terraform Digital Ocean Script
Terraform Digital Ocean Script
Terraform Digital Ocean Script v2
Terraform Vercel
Terraform MongoDB(PaidTier)
Terraform MongoDB(FreeTier)
Terraform + Private Repo Clone with SSH Key
Terraform Strapi
Terraform GitHub Secret
Terraform + Secret Manager
Untitled sync page
Terraform GitHub action CronJob
Terraform + Multi Repo Setup
SSO-Ready
More
Share
Explore
Terraform + Secret Manager
Download Terraform
https://releases.hashicorp.com/terraform/1.9.5/terraform_1.9.5_windows_amd64.zip
Extract zip file
→ run terraform.exe
check terraform version
terraform --version
Download terraform code from here
Github
Create API Tokens in Digital Ocean
Go to
DigitalOcean's API tokens page
and log in to your account.
Generate a New Token
Name the Token
Expiration :- 30/60/90 days and No Expire
Set Permissions :- full access
Go to AWS Console
go to security credentials
Go to Users
Create access key
Create Access key
Copy Access Key & Secret Access Key
Secret Name
Go to secret Manager → select Secret
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"
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
aws_access_key =
" " # Access key
aws_secret_key =
" " # Secret Key
secret_name =
" " # Secret name
aws_region =
"us-east-1"
Save the file
→ Open Terminal in that Folder
terraform init
terraform plan
terraform apply
in terminal
it print out Droplet URL
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
Ctrl
P
) instead.