{"id":31677266,"url":"https://github.com/tf-libsonnet/infrastructure-live-example","last_synced_at":"2026-03-09T16:04:46.518Z","repository":{"id":183046988,"uuid":"580665460","full_name":"tf-libsonnet/infrastructure-live-example","owner":"tf-libsonnet","description":"An example of using tf.libsonnet to manage your Terraform infrastructure.","archived":false,"fork":false,"pushed_at":"2022-12-21T21:23:48.000Z","size":8,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T05:24:03.089Z","etag":null,"topics":["jsonnet","terraform"],"latest_commit_sha":null,"homepage":"","language":"Jsonnet","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tf-libsonnet.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}},"created_at":"2022-12-21T06:06:06.000Z","updated_at":"2024-10-04T04:26:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"c93378ec-6e5a-403e-b09c-9bec4032c128","html_url":"https://github.com/tf-libsonnet/infrastructure-live-example","commit_stats":null,"previous_names":["tf-libsonnet/infrastructure-live-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tf-libsonnet/infrastructure-live-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tf-libsonnet%2Finfrastructure-live-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tf-libsonnet%2Finfrastructure-live-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tf-libsonnet%2Finfrastructure-live-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tf-libsonnet%2Finfrastructure-live-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tf-libsonnet","download_url":"https://codeload.github.com/tf-libsonnet/infrastructure-live-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tf-libsonnet%2Finfrastructure-live-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30301543,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T14:33:48.460Z","status":"ssl_error","status_checked_at":"2026-03-09T14:33:48.027Z","response_time":61,"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":["jsonnet","terraform"],"created_at":"2025-10-08T05:02:29.468Z","updated_at":"2026-03-09T16:04:46.476Z","avatar_url":"https://github.com/tf-libsonnet.png","language":"Jsonnet","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tf.libsonnet infrastructure-live example\n\nThis repository contains an example of how to use [Jsonnet](https://jsonnet.org/) and\n[tf.libsonnet](https://tflibsonnet.com) to manage a multi-state Terraform project.\n\nThis represents a toy example of an AWS stack containing a VPC and MySQL database, that uses a fictional Terraform\nmodule to deploy each.\n\n\u003e **NOTE**\n\u003e\n\u003e The underlying module calls use `null_resource`s to simulate the resources. However, the general pattern should be\n\u003e extensible to real world modules and use cases.\n\nRefer to [Comparison to Terraform HCL](https://docs.tflibsonnet.com/docs/what-is-tf-libsonnet/#comparison-to-terraform-hcl)\nfor the motivating example and a full walkthrough.\n\n## Usage\n\nYou can generate the Terraform code by using the base Jsonnet tool. To start, install `jsonnet` and `jsonnet-bundler`\n(aka `jb`):\n\n- [Installing Jsonnet](https://github.com/google/go-jsonnet#installation-instructions)\n- [Installing jsonnet-bundler](https://github.com/jsonnet-bundler/jsonnet-bundler#install)\n\nOnce you have `jsonnet` and `jb` installed, generate the code with the following commands:\n\n```\n$ jb install\n$ jsonnet -J ./vendor -c -m out/ main.jsonnet\n```\n\nThis will output all the Terraform code to the `out` directory, resulting in the following folder structure:\n\n```\n./out\n├── prod\n│   ├── mysql\n│   │   └── main.tf.json\n│   └── vpc\n│       └── main.tf.json\n└── stage\n    ├── mysql\n    │   └── main.tf.json\n    └── vpc\n        └── main.tf.json\n```\n\n## Support\n\nIf you have any questions about how to use the `tf.libsonnet` libraries, ask in the [Organization GitHub\nDiscussion](https://github.com/orgs/tf-libsonnet/discussions).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftf-libsonnet%2Finfrastructure-live-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftf-libsonnet%2Finfrastructure-live-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftf-libsonnet%2Finfrastructure-live-example/lists"}