{"id":14957802,"url":"https://github.com/antonbabenko/modules.tf-demo","last_synced_at":"2025-10-24T12:30:52.814Z","repository":{"id":40504783,"uuid":"219330145","full_name":"antonbabenko/modules.tf-demo","owner":"antonbabenko","description":"Real modules.tf demo (updated May 2021)","archived":false,"fork":false,"pushed_at":"2021-05-10T13:13:37.000Z","size":144,"stargazers_count":43,"open_issues_count":0,"forks_count":24,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-01-31T01:07:31.561Z","etag":null,"topics":["aws","cloudcraft","reference-architecture","terraform","terraform-configurations","terragrunt"],"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/antonbabenko.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}},"created_at":"2019-11-03T16:26:06.000Z","updated_at":"2024-11-24T09:26:19.000Z","dependencies_parsed_at":"2022-09-16T10:41:34.229Z","dependency_job_id":null,"html_url":"https://github.com/antonbabenko/modules.tf-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/antonbabenko%2Fmodules.tf-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonbabenko%2Fmodules.tf-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonbabenko%2Fmodules.tf-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonbabenko%2Fmodules.tf-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antonbabenko","download_url":"https://codeload.github.com/antonbabenko/modules.tf-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237964477,"owners_count":19394407,"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":["aws","cloudcraft","reference-architecture","terraform","terraform-configurations","terragrunt"],"created_at":"2024-09-24T13:15:38.414Z","updated_at":"2025-10-24T12:30:47.489Z","avatar_url":"https://github.com/antonbabenko.png","language":"HCL","funding_links":["https://github.com/sponsors/antonbabenko/"],"categories":[],"sub_categories":[],"readme":"# Infrastructure code for \"Web App Reference Architecture (complete)\"\n\nThis repository contains Terraform configuration files which were automatically generated from blueprint created using [Cloudcraft](https://www.cloudcraft.co).\n\n### Original infrastructure\n\n![Web App Reference Architecture (complete)](https://raw.githubusercontent.com/antonbabenko/modules.tf-demo/master/Web%20App%20Reference%20Architecture%20(complete).png)\n\n---\n\n[Terragrunt](https://terragrunt.gruntwork.io/) is used to work with Terraform configurations which allows to orchestrate dependent layers, update arguments dynamically and keep configurations [DRY](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself).\n\n## Table of Contents\n\n1. [Quick start](#quick-start)\n1. [Configure access to AWS account](#configure-access-to-aws-account)\n1. [Create and manage your infrastructure](#create-and-manage-your-infrastructure)\n1. [References](#references)\n1. [About d2c.modules.tf](#about-d2cmodulestf)\n\n\n## Quick start\n\n1. [Install Terraform 0.15 or newer](https://learn.hashicorp.com/tutorials/terraform/install-cli)\n1. [Install Terragrunt 0.29 or newer](https://terragrunt.gruntwork.io/docs/getting-started/install/)\n1. Optionally, [install pre-commit hooks](https://pre-commit.com/#install) to keep Terraform formatting and documentation up-to-date.\n\nIf you are using macOS you can install all dependencies using [Homebrew](https://brew.sh/):\n\n    $ brew install terraform terragrunt pre-commit\n\n## Configure access to AWS account\n\nThe recommended way to configure access credentials to AWS account is using environment variables:\n\n```\n$ export AWS_DEFAULT_REGION=eu-west-1\n$ export AWS_ACCESS_KEY_ID=...\n$ export AWS_SECRET_ACCESS_KEY=...\n```\n\nAlternatively, you can edit `terragrunt.hcl` and use another authentication mechanism as described in [AWS provider documentation](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#authentication).\n\n## Create and manage your infrastructure\n\nInfrastructure consists of multiple layers (rds_2, rds_1, autoscaling_2, ...) where each layer is described using one [Terraform module](https://www.terraform.io/docs/configuration/modules.html) with `inputs` arguments specified in `terragrunt.hcl` in respective layer's directory.\n\nNavigate through layers to review and customize values inside `inputs` block.\n\nThere are two ways to manage infrastructure (slower\u0026complete, or faster\u0026granular):\n- **Region as a whole (slower\u0026complete).** Run this command to create infrastructure in all layers in a single region:\n\n```\n$ cd eu-west-1\n$ terragrunt run-all apply\n```\n\n- **As a single layer (faster\u0026granular).** Run this command to create infrastructure in a single layer (eg, `rds_2`):\n\n```\n$ cd eu-west-1/rds_2\n$ terragrunt apply\n```\n\nAfter the confirmation your infrastructure should be created.\n\n\n## References\n\n* [Terraform documentation](https://www.terraform.io/docs/) and [Terragrunt documentation](https://terragrunt.gruntwork.io/docs/) for all available commands and features\n* [Terraform AWS modules](https://github.com/terraform-aws-modules/)\n* [Terraform modules registry](https://registry.terraform.io/)\n* [Terraform best practices](https://www.terraform-best-practices.com/)\n\n\n## About d2c.modules.tf\n\n[modules.tf](https://github.com/antonbabenko/modules.tf-lambda) is an open-source project created by [Anton Babenko](https://github.com/antonbabenko):\n1. Questions, bugs and feature-requests - [open an issue](https://github.com/antonbabenko/modules.tf-lambda).\n1. [Become a sponsor to @antonbabenko](https://github.com/sponsors/antonbabenko/).\n1. You are always welcome to share, star, like, tweet, follow!\n\n[![@antonbabenko](https://img.shields.io/twitter/follow/antonbabenko.svg?style=flat\u0026label=Follow%20@antonbabenko%20on%20Twitter)](https://twitter.com/antonbabenko)\n[![@antonbabenko](https://img.shields.io/github/followers/antonbabenko?style=flat\u0026label=Follow%20@antonbabenko%20on%20Github)](https://github.com/antonbabenko)\n[![modules.tf-lambda](https://img.shields.io/github/stars/antonbabenko/modules.tf-lambda?style=flat\u0026label=Star%20modules.tf-lambda%20on%20Github)](https://github.com/antonbabenko/modules.tf-lambda)\n\nAll content, including [Terraform AWS modules](https://github.com/terraform-aws-modules/) used in these configurations, is released under the MIT or Apache License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonbabenko%2Fmodules.tf-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantonbabenko%2Fmodules.tf-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonbabenko%2Fmodules.tf-demo/lists"}