{"id":19748673,"url":"https://github.com/doitintl/terraform-iac-demo","last_synced_at":"2025-02-28T00:28:28.710Z","repository":{"id":54792417,"uuid":"333162702","full_name":"doitintl/terraform-iac-demo","owner":"doitintl","description":"GitOps demo of Terraform infrastructure as code (IaC)","archived":false,"fork":false,"pushed_at":"2024-10-28T15:07:58.000Z","size":372,"stargazers_count":9,"open_issues_count":0,"forks_count":10,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-02-25T14:18:57.965Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","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/doitintl.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":"2021-01-26T17:30:04.000Z","updated_at":"2024-08-20T18:07:11.000Z","dependencies_parsed_at":"2023-11-07T16:34:00.598Z","dependency_job_id":"af521308-8f17-4b9b-812f-fb0eb2d7112e","html_url":"https://github.com/doitintl/terraform-iac-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doitintl%2Fterraform-iac-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doitintl%2Fterraform-iac-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doitintl%2Fterraform-iac-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doitintl%2Fterraform-iac-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doitintl","download_url":"https://codeload.github.com/doitintl/terraform-iac-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241078772,"owners_count":19905923,"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-12T02:22:54.625Z","updated_at":"2025-02-28T00:28:28.691Z","avatar_url":"https://github.com/doitintl.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"Change management has evolved given infrastructure is now API-driven. Traditionally [ITIL change management](https://wiki.en.it-processmaps.com/images/6/6b/Change-management-itil.jpg) required maintaining separate systems for compliance, but modern organizations leverage [GitOps](https://www.weave.works/technologies/gitops/) and [infrastructure as code (IaC)](https://www.hashicorp.com/resources/what-is-infrastructure-as-code) tools to automate and streamline processes as demonstrated in this repo.\n\n# Modern Change Management\nAt [DoiT International](https://doit-intl.com) we advise cloud customers to implement modern change management using automated, self-documenting, processes as illustrated below.\n\n![GitOps IaC Change Management](./img-process.png)\n\n# Prerequisites\nUsing this example assumes you have the following in place:\n- [ ] `GCP Project` with billing enabled\n- [ ] `Project Editor` or above (i.e. `Owner`) IAM role\n- [ ] [Google Cloud SDK](https://cloud.google.com/sdk/docs/install)\n- [ ] Knowledge of [Terraform](https://www.terraform.io/intro/index.html) and [GCP](https://cloud.google.com/gcp/getting-started)\n\n# Install\n```bash\n# set config\ngcloud config set project \u003cproject-id\u003e\n\n# clone repo (or fork it)\ngit clone git@github.com:doitintl/terraform-iac-demo.git\ncd terraform-iac-demo\n\n# reset git so you can push to your own repo\nrm -rf .git\ngit init\n\n# initialize project\n./bin/setup.sh\n```\n\n# Configure\nYou will need to create a Git source code repository and connect it to Google Cloud Build as instructed below.\n[Connect Github repository to Cloud Build](https://cloud.google.com/solutions/managing-infrastructure-as-code)\n\n# Usage\nOnce you make sure you connect the repository for Cloud Build, and create a `push trigger`, you can then `commit`, `set your remote`, and `push` your code. This should trigger a build and Terraform tasks will run. See the document above (although dated and this repo is updated for later Terraform versions) for tips.\n\n![Automated builds](./img-build.png)\n\n# Clean up\nIf you are just testing this functionality, to avoid incurring unnecessary cloud billing charges be sure to **delete your project** or follow these steps:\n\n1. edit `main.tf` in `/prod` and `/dev` folder and remove modules\n2. `commit` and `push` changes to trigger infrastructure changes\n3. run the `./bin/teardown.sh` after resources removed\n\n# Contributing\nThis repository is maintained by the staff at [DoiT International](https://doit-intl.com) \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoitintl%2Fterraform-iac-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoitintl%2Fterraform-iac-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoitintl%2Fterraform-iac-demo/lists"}