Skip to content

nanlabs/terraform-modules

Repository files navigation

πŸš€ NaN Labs Terraform Modules

Deploy Production Infrastructure in Minutes, Not Months

Terraform AWS Kubernetes License: MIT GitHub Stars

πŸ”₯ Battle-tested β€’ πŸ”’ Security-first β€’ πŸ’° Cost-optimized β€’ πŸš€ Developer-friendly

From MVP to Enterprise: Infrastructure that scales with your business


🎯 How to Use This Repository

πŸ“š As Reference πŸ—οΈ As Template 🧩 Direct Usage
Study our best practices and patterns for your IaC projects Fork and customize as starting point for your terraform-modules repository Import modules directly into your Terraform projects
Perfect for learning and inspiration Ideal for teams building their own module library Ready-to-use modules for immediate deployment

✨ What Makes Our Modules Special?

πŸ† Enterprise-Ready πŸ”’ Security First πŸ’° Cost Optimized πŸ“Š Observability πŸš€ Developer Experience
Zero-downtime deployments Encryption by default Intelligent scaling Comprehensive logging One-command deploy
Production-tested patterns Zero-trust networking Resource optimization Monitoring dashboards Extensive examples
High availability design Compliance ready Budget-friendly defaults Alerting ready Clear documentation

🎯 Why Choose These Modules?

  • ⚑ Faster Time-to-Market: Deploy in minutes what used to take weeks
  • πŸ›‘οΈ Battle-Tested Reliability: Used in production by dozens of companies
  • πŸ’‘ Best Practices Built-In: Security, performance, and cost optimization from day one
  • πŸ”§ Highly Configurable: From simple setups to complex enterprise requirements
  • πŸ“š Comprehensive Documentation: Every module includes examples and detailed guides
  • 🀝 Community Driven: Open source with active maintenance and support

πŸŽͺ Quick Start Examples

Choose your adventure:

🌐 Simple Web App (~$46/month)

Perfect for MVPs and small applications

cd examples/simple-web-app
terraform init && terraform apply

βš™οΈ Medium Complexity (~$300/month)

Microservices with EKS + RDS + Monitoring

cd examples/medium-complexity-infrastructure
terraform init && terraform apply

🏒 Complete Enterprise (~$940/month)

Full-scale infrastructure with everything included

cd examples/complete-enterprise-setup
terraform init && terraform apply

πŸ’‘ New here? Check our πŸ“š Usage Guide or jump to πŸŽͺ Examples β€’ πŸ“¦ All Modules

🎯 Motivation

Building and maintaining infrastructure across cloud providers can become repetitive and error-prone. This repository consolidates reusable Terraform modules following best practices, allowing your team to provision infrastructure efficiently, securely, and consistentlyβ€”whether it's an AWS VPC, a Kubernetes cluster, or a MongoDB Atlas database.

πŸ“¦ Available Modules

AWS Infrastructure Modules

Module Description Use Cases
🌐 AWS VPC Virtual Private Cloud with best practices Network foundation, multi-AZ setup
⚑ AWS EKS Managed Kubernetes with essential addons Microservices, container orchestration
πŸ—„οΈ AWS RDS Relational database with monitoring Application databases, data persistence
πŸ—„οΈ AWS RDS Aurora High-performance Aurora cluster High-availability databases, read replicas
πŸ“¨ AWS MSK Managed Apache Kafka streaming Event streaming, data pipelines
🏰 AWS Bastion Secure jump host with SSM Secure access, troubleshooting
πŸ“Š AWS DocumentDB MongoDB-compatible database Document storage, NoSQL applications
πŸ‘€ AWS IAM Role IAM roles with best practices Service permissions, access control
🌍 AWS Amplify App Frontend hosting and CI/CD Static sites, SPAs, JAMstack

Other Cloud Providers

Module Description Use Cases
πŸƒ MongoDB Atlas Cluster Managed MongoDB in the cloud Global databases, serverless apps

πŸš€ Quick Module Usage

Each module is designed to be plug-and-play with sensible defaults, yet highly customizable for complex requirements.

module "vpc" {
  source = "git::https://github.com/nanlabs/terraform-modules.git//modules/aws-vpc?ref=v0.2.0"

  vpc_cidr = "10.0.0.0/16"
  # That's it! VPC with best practices is ready πŸŽ‰
}

πŸ“– Need more details? Check our complete usage guide with advanced patterns and best practices.


🎯 Ready to Get Started?

πŸš€ Quick Start πŸ“š Learn More 🀝 Get Help
Browse Examples Read Documentation Join Discussions
Pick an example that fits your needs Understand best practices Ask questions, share ideas

⭐ If this project helps you, please consider giving it a star! ⭐


🀝 Contributing

We love contributions! Whether you're:

  • πŸ› Reporting bugs or suggesting improvements
  • πŸ“ Improving documentation or adding examples
  • πŸš€ Adding new modules or enhancing existing ones
  • πŸ’‘ Sharing ideas for new features

Every contribution matters! Check our Contributing Guidelines to get started.

🌟 Ways to Contribute

  1. Star this repo - It helps others discover these modules
  2. Share your experience - Write a blog post or tweet about your usage
  3. Submit feedback - Open issues with suggestions or bug reports
  4. Code contributions - Submit PRs for new features or fixes
  5. Documentation - Help improve guides and examples

πŸ“š Documentation

πŸ“– Guide 🎯 Purpose
πŸ“š Usage Guide Complete module usage, versioning, and advanced patterns
πŸ› οΈ Development Setup Set up your development environment
πŸ“¦ Modules Guide How to use and create modules
⭐ Best Practices Module design, security, and guidelines
πŸš€ Versioning Strategy Release management and versioning
πŸ”„ GitHub Actions CI/CD workflows and automation
🀝 Contributing How to contribute to this repository

πŸ“š Additional Resources

License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ‘₯ Contributors

Contributors

Made with contributors-img.


🌟 Built with ❀️ by NaN Labs

Website LinkedIn

πŸš€ Accelerating development through proven technology solutions

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 2

  •  
  •