Terraform Best Practices
Terraform consultingTwitter @antonbabenkoTerraform Weekly
English
English
  • Welcome
  • Key concepts
  • Code structure
  • Code structure examples
    • Terragrunt
    • Terraform
      • Small-size infrastructure with Terraform
      • Medium-size infrastructure with Terraform
      • Large-size infrastructure with Terraform
  • Naming conventions
  • Code styling
  • FAQ
  • References
  • Writing Terraform configurations
  • Workshop
Powered by GitBook
On this page
Export as PDF
  1. Code structure examples
  2. Terraform

Small-size infrastructure with Terraform

PreviousTerraformNextMedium-size infrastructure with Terraform

Last updated 3 years ago

Source:

This example contains code as an example of structuring Terraform configurations for a small-size infrastructure, where no external dependencies are used.

  • Perfect to get started and refactor as you go

  • Perfect for small resource modules

  • Good for small and linear infrastructure modules (eg, )

  • Good for a small number of resources (fewer than 20-30)

Single state file for all resources can make the process of working with Terraform slow if the number of resources is growing (consider using an argument -target to limit the number of resources)

https://github.com/antonbabenko/terraform-best-practices/tree/master/examples/small-terraform
terraform-aws-atlantis