{"id":16535225,"url":"https://github.com/nargonath/do-terraform-nodejs","last_synced_at":"2026-05-03T15:35:11.533Z","repository":{"id":95261560,"uuid":"269440193","full_name":"Nargonath/do-terraform-nodejs","owner":"Nargonath","description":"This repo is an attempt for setting up a fully configured DigitalOcean infrastructure for a NodeJS server with a database hosted on a different droplet within a VPC and a frontend","archived":false,"fork":false,"pushed_at":"2020-07-27T16:54:22.000Z","size":28,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-01T18:44:59.526Z","etag":null,"topics":["database","digitalocean","docker","droplet","nodejs","nodejs-server","packer","terraform","vpc"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nargonath.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-06-04T18:54:16.000Z","updated_at":"2020-07-27T16:54:25.000Z","dependencies_parsed_at":"2023-04-30T19:31:11.023Z","dependency_job_id":null,"html_url":"https://github.com/Nargonath/do-terraform-nodejs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Nargonath/do-terraform-nodejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nargonath%2Fdo-terraform-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nargonath%2Fdo-terraform-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nargonath%2Fdo-terraform-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nargonath%2Fdo-terraform-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nargonath","download_url":"https://codeload.github.com/Nargonath/do-terraform-nodejs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nargonath%2Fdo-terraform-nodejs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32575112,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","digitalocean","docker","droplet","nodejs","nodejs-server","packer","terraform","vpc"],"created_at":"2024-10-11T18:26:47.171Z","updated_at":"2026-05-03T15:35:11.526Z","avatar_url":"https://github.com/Nargonath.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eDigitalOcean Terraform NodeJS server\u003c/h1\u003e\n  \u003cstrong\u003eThis repo is an attempt for setting up a fully configured DigitalOcean infrastructure for a NodeJS server with a database hosted on a different droplet within a VPC and a frontend\u003c/strong\u003e\n\u003c/div\u003e\n\n\u003chr\u003e\n\n# Setup\n\n## Custom Droplet image\n\nThis project uses [Packer](https://www.packer.io/) from Hashicorp to create custom droplet images with everything setup.\n\nThe Packer configuration uses a variable file for its secrets: `packer-secrets.json`. You'll find an example file in this repo for the structure to follow.\n\n### Build your snapshot\n\nTo build your snapshot using Packer:\n\n```bash\npacker build \\\n  -var 'size=s-1vcpu-1gb' \\\n  -var-file 'packer-secrets.json' \\\n  packer.json\n```\n\n## Infrastructure configuration\n\nThis terraform configuration requires multiples variables files for which you can find examples in the repository:\n\n- `secrets.tfvars`\n- `ssh_keys.tfvars`\n\nYou need to copy-paste the examples, remove the `.example` in the name of the file and fill them up with your real data.\n\n# Create the infrastructure\n\nYou can create the infrastructure with `terraform apply -var-file=\"secrets.tfvars\" -var-file=\"ssh_keys.tfvars\"`\n\n# Resources\n\nThis article gives guidelines to improve terraform usage: https://cloudskiff.com/terraform-code-quality/?utm_source=Slack\u0026utm_medium=TerraformCodeQuality.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnargonath%2Fdo-terraform-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnargonath%2Fdo-terraform-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnargonath%2Fdo-terraform-nodejs/lists"}