{"id":51407962,"url":"https://github.com/bgauduch/terraform-examples","last_synced_at":"2026-07-04T12:30:26.292Z","repository":{"id":352613978,"uuid":"1209386911","full_name":"bgauduch/terraform-examples","owner":"bgauduch","description":"Library of Terraform examples, covering various topics, first-class citizen for demos !","archived":false,"fork":false,"pushed_at":"2026-06-25T17:30:05.000Z","size":11666,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-25T19:13:25.217Z","etag":null,"topics":["aws","cloud","demo","devops","examples","iac","learning","plateform-engineering","terraform"],"latest_commit_sha":null,"homepage":"","language":null,"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/bgauduch.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-04-13T11:28:56.000Z","updated_at":"2026-06-25T17:30:00.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bgauduch/terraform-examples","commit_stats":null,"previous_names":["bgauduch/demo-terraform-multi-env-aws","bgauduch/terraform-examples"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/bgauduch/terraform-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgauduch%2Fterraform-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgauduch%2Fterraform-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgauduch%2Fterraform-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgauduch%2Fterraform-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bgauduch","download_url":"https://codeload.github.com/bgauduch/terraform-examples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgauduch%2Fterraform-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35122497,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-04T02:00:05.987Z","response_time":113,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["aws","cloud","demo","devops","examples","iac","learning","plateform-engineering","terraform"],"created_at":"2026-07-04T12:30:25.879Z","updated_at":"2026-07-04T12:30:26.278Z","avatar_url":"https://github.com/bgauduch.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Examples\n\n[![Terraform quality](https://github.com/bgauduch/terraform-examples/actions/workflows/terraform.yml/badge.svg?branch=main)](https://github.com/bgauduch/terraform-examples/actions/workflows/terraform.yml)\n[![Release](https://github.com/bgauduch/terraform-examples/actions/workflows/release.yml/badge.svg?branch=main)](https://github.com/bgauduch/terraform-examples/actions/workflows/release.yml)\n[![Latest release](https://img.shields.io/github/v/release/bgauduch/terraform-examples?sort=semver\u0026display_name=tag)](https://github.com/bgauduch/terraform-examples/releases/latest)\n\nA library of self-contained Terraform examples: reusable patterns, illustrations for blog/LinkedIn posts, and starting points for live tech sessions (\"Matinale Tech\").\n\nEach example lives under [`examples/`](examples/) and is fully independent - its own `README.md`, tooling (`mise.toml`, `.tflint.hcl`) and Terraform code. Pick one, `cd` into it, follow its README. The toolchain (terraform, tflint, trivy) is managed by [mise](https://mise.jdx.dev/) as the single source of truth - see [`AGENTS.md`](AGENTS.md#toolchain-mise).\n\n## Catalogue\n\n| Example | Type | Tags | Description |\n|---------|------|------|-------------|\n| [`aws-multi-env`](examples/aws-multi-env/) | `pattern` | `aws` `multi-env` `backend` `workspaces` | Four progressive patterns for managing multiple environments with Terraform CE on AWS. |\n| [`terraform-deferred-actions`](examples/terraform-deferred-actions/) | `experiment` | `rc` `deferred-actions` `kms` `unknown-at-plan` | Testing Terraform's experimental *deferred actions* (`plan -allow-deferral`) to inject a KMS key whose ARN is unknown at plan time. |\n| [`terraform-query-import`](examples/terraform-query-import/) | `lab` | `aws` `query` `import` `tfquery` `v1.14` | Discover unmanaged infrastructure with `terraform query` + `list` blocks, generate its config, and import it in bulk. |\n| [`terraform-module-testing`](examples/terraform-module-testing/) | `lab` | `aws` `terraform-test` `testing` `s3` `validation` | Test a reusable S3 module with the native `terraform test` framework: variable validations (`expect_failures`), plan assertions with `mock_provider`, real apply on AWS, and parallel runs with `state_key`. |\n\n### Taxonomy\n\n- `pattern` - reusable, production-leaning reference.\n- `lab` - starting point / TP with progressive steps for a live session.\n- `experiment` - preview/RC features, may be intentionally unstable.\n\n## Adding an example\n\nSee the golden path in [`AGENTS.md`](AGENTS.md). In short: create `examples/\u003cname\u003e/` with its own `README.md`, `mise.toml`, `.tflint.hcl` and Terraform root module(s), then add a row to the catalogue above. CI auto-discovers any directory containing `providers.tf` - no CI change needed.\n\n## Repository standards\n\n- **Git flow**: GitHub flow (short-lived branches off `main`, PR review, squash-merge).\n- **Commits**: [Conventional Commits](https://www.conventionalcommits.org/); use the example name as scope (`feat(aws-multi-env): ...`).\n- **Versioning**: [SemVer](https://semver.org/), repo-level single release line via release-please.\n- **Validation before commit**: `terraform fmt -recursive` (root) and `terraform validate` inside each touched root module.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbgauduch%2Fterraform-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbgauduch%2Fterraform-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbgauduch%2Fterraform-examples/lists"}