All Projects → antonbabenko → modules.tf-demo

antonbabenko / modules.tf-demo

Licence: MIT license
Real modules.tf demo (updated May 2021)

Programming Languages

HCL
1544 projects

Projects that are alternatives of or similar to modules.tf-demo

gke-demo
Demonstration of complete, fully-featured CI/CD and cloud automation for microservices, done with GCP/GKE
Stars: ✭ 47 (+38.24%)
Mutual labels:  terragrunt
terraform-modules
Terraform Modules by Peak
Stars: ✭ 16 (-52.94%)
Mutual labels:  terraform-configurations
SecurityArchitecture
Repository for the Open Security Reference Architecture
Stars: ✭ 93 (+173.53%)
Mutual labels:  reference-architecture
testing.cloudposse.co
Example Terraform Reference Architecture that implements a Geodesic Module for an Automated Testing Organization in AWS
Stars: ✭ 22 (-35.29%)
Mutual labels:  reference-architecture
terragrunt
Auto-trigger docker build for terragrunt when new terraform version released
Stars: ✭ 23 (-32.35%)
Mutual labels:  terragrunt
terraform-generator
Generate Terraform configurations with Node.js.
Stars: ✭ 69 (+102.94%)
Mutual labels:  terraform-configurations
azure-quickstart-terraform-configuration
This is a conversion of azure-quickstart-templates to terraform configuration
Stars: ✭ 26 (-23.53%)
Mutual labels:  terraform-configurations
Solution Architecture Patterns
Reusable, vendor-neutral, industry-specific, vendor-specific solution architecture patterns for enterprise
Stars: ✭ 2,541 (+7373.53%)
Mutual labels:  reference-architecture
reference-infrastructure-fabric
Production-quality Kubernetes on AWS: the reference infrastructure fabric for building a modern microservices web app.
Stars: ✭ 44 (+29.41%)
Mutual labels:  reference-architecture
Terraformer
CLI tool to generate terraform files from existing infrastructure (reverse Terraform). Infrastructure to Code
Stars: ✭ 6,316 (+18476.47%)
Mutual labels:  terraform-configurations
terraform-vsphere-single-vm
Deploy single vSphere VM with Terraform - template.
Stars: ✭ 21 (-38.24%)
Mutual labels:  terraform-configurations

Infrastructure code for "Web App Reference Architecture (complete)"

This repository contains Terraform configuration files which were automatically generated from blueprint created using Cloudcraft.

Original infrastructure

Web App Reference Architecture (complete)


Terragrunt is used to work with Terraform configurations which allows to orchestrate dependent layers, update arguments dynamically and keep configurations DRY.

Table of Contents

  1. Quick start
  2. Configure access to AWS account
  3. Create and manage your infrastructure
  4. References
  5. About d2c.modules.tf

Quick start

  1. Install Terraform 0.15 or newer
  2. Install Terragrunt 0.29 or newer
  3. Optionally, install pre-commit hooks to keep Terraform formatting and documentation up-to-date.

If you are using macOS you can install all dependencies using Homebrew:

$ brew install terraform terragrunt pre-commit

Configure access to AWS account

The recommended way to configure access credentials to AWS account is using environment variables:

$ export AWS_DEFAULT_REGION=eu-west-1
$ export AWS_ACCESS_KEY_ID=...
$ export AWS_SECRET_ACCESS_KEY=...

Alternatively, you can edit terragrunt.hcl and use another authentication mechanism as described in AWS provider documentation.

Create and manage your infrastructure

Infrastructure consists of multiple layers (rds_2, rds_1, autoscaling_2, ...) where each layer is described using one Terraform module with inputs arguments specified in terragrunt.hcl in respective layer's directory.

Navigate through layers to review and customize values inside inputs block.

There are two ways to manage infrastructure (slower&complete, or faster&granular):

  • Region as a whole (slower&complete). Run this command to create infrastructure in all layers in a single region:
$ cd eu-west-1
$ terragrunt run-all apply
  • As a single layer (faster&granular). Run this command to create infrastructure in a single layer (eg, rds_2):
$ cd eu-west-1/rds_2
$ terragrunt apply

After the confirmation your infrastructure should be created.

References

About d2c.modules.tf

modules.tf is an open-source project created by Anton Babenko:

  1. Questions, bugs and feature-requests - open an issue.
  2. Become a sponsor to @antonbabenko.
  3. You are always welcome to share, star, like, tweet, follow!

@antonbabenko @antonbabenko modules.tf-lambda

All content, including Terraform AWS modules used in these configurations, is released under the MIT or Apache License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].