Aller au contenu

Terraform Boilerplate#

This Boilerplate is how we begin most of our Terraform project. It evolves over time and you should modify to your linking.

Project Structure#

Directory
project-name        # Repository with the Infrastucture Code (Terraform)
    ├── env             # Environemnt Variable file (TFVARS)
    ├── docs            # Documentation
    ├── python          # Source code in python (usually for small lambda functions)
    ├── scripts         # Bash Scripts for maintenance operations
    └── modules         # Terraform Modules
       ├── core         # Project Basic Component
       └── ...          # Other Optional Modules
    backend.tf      # Backend File
    local.tf        # Defines local values
    main.tf         # Main (activates modules)
    output.tf       # Defines output values
    provider.tf     # Define provider plugins
    pyproject.toml  # Python configuration (lint & unit tests)
    README.md       # Notes for project maintainers
    variables.tf    # Defines input variables

Download Lastest Terraform Boilerplate