{"id":20405615,"url":"https://github.com/nitrictech/terraform-api-example","last_synced_at":"2025-09-24T03:32:20.255Z","repository":{"id":248976060,"uuid":"830261869","full_name":"nitrictech/Terraform-API-Example","owner":"nitrictech","description":"An example of putting cdktf behind an API","archived":false,"fork":false,"pushed_at":"2024-07-23T05:06:05.000Z","size":59,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-07T19:12:28.687Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nitrictech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-07-17T23:47:01.000Z","updated_at":"2024-09-06T01:03:57.000Z","dependencies_parsed_at":"2024-07-18T07:46:07.565Z","dependency_job_id":"2c3b4ffb-ffa1-4d0e-ad2f-46817d98334f","html_url":"https://github.com/nitrictech/Terraform-API-Example","commit_stats":null,"previous_names":["nitrictech/terraform-api-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrictech%2FTerraform-API-Example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrictech%2FTerraform-API-Example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrictech%2FTerraform-API-Example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrictech%2FTerraform-API-Example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nitrictech","download_url":"https://codeload.github.com/nitrictech/Terraform-API-Example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234033077,"owners_count":18769156,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-15T05:12:10.038Z","updated_at":"2025-09-24T03:32:19.800Z","avatar_url":"https://github.com/nitrictech.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform API Example\n\nA simple CDKTF application behind an API interface, as a demonstration for a [blog post](https://nitric.io/blog).\n\n## Requirements\n\n- Node.js\n- [Terraform](https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli)\n- [CDKTF CLI](https://developer.hashicorp.com/terraform/tutorials/cdktf/cdktf-install)\n\n## Installing dependencies\n\n```bash\nnpm i\n```\n\u003e Or your favorite alternative dependency manager\n\n## Starting the dev server\n\n```bash\nnpm run dev\n```\n\nThis will server the API on `localhost:3000` by default.\n\n##  Testing the API\n\nYou can test the API by running:\n\n```bash\ncurl -X POST -H \"Content-Type: application/json\" -d '{ \"name\": \"my-stack\", \"buckets\": [\"test\", \"test1\"] }' http://localhost:3000/generate \u003e my-stack.zip \n```\n\nThis should produce an output zip container a tf stack for deploying two s3 buckets named `test` and `test1`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitrictech%2Fterraform-api-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnitrictech%2Fterraform-api-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitrictech%2Fterraform-api-example/lists"}