{"id":31730000,"url":"https://github.com/suraj-kumar00/terraform","last_synced_at":"2026-04-12T16:03:18.002Z","repository":{"id":317902620,"uuid":"1017561525","full_name":"Suraj-kumar00/terraform","owner":"Suraj-kumar00","description":"Terraform best practices","archived":false,"fork":false,"pushed_at":"2025-10-03T18:13:04.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-03T20:22:56.738Z","etag":null,"topics":["aws","cloud","devops","infrastructure-as-code","terraform","terraform-aws","terraform-cloud","terraform-module"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Suraj-kumar00.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-10T18:15:34.000Z","updated_at":"2025-10-03T18:13:43.000Z","dependencies_parsed_at":"2025-10-03T20:23:26.658Z","dependency_job_id":"0f15fa47-fcba-4464-a41c-4fa169f33539","html_url":"https://github.com/Suraj-kumar00/terraform","commit_stats":null,"previous_names":["suraj-kumar00/terraform"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Suraj-kumar00/terraform","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suraj-kumar00%2Fterraform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suraj-kumar00%2Fterraform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suraj-kumar00%2Fterraform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suraj-kumar00%2Fterraform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Suraj-kumar00","download_url":"https://codeload.github.com/Suraj-kumar00/terraform/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suraj-kumar00%2Fterraform/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000982,"owners_count":26082973,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","cloud","devops","infrastructure-as-code","terraform","terraform-aws","terraform-cloud","terraform-module"],"created_at":"2025-10-09T07:23:34.247Z","updated_at":"2026-04-12T16:03:17.992Z","avatar_url":"https://github.com/Suraj-kumar00.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Production Ready Terraform Configuration for AWS\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://www.vectorlogo.zone/logos/terraformio/terraformio-icon.svg\" alt=\"Terraform\" width=\"80\" height=\"80\"/\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Terraform-v1.0+-623CE4?style=flat\u0026logo=terraform\" alt=\"Terraform\"/\u003e\n  \u003cimg src=\"https://img.shields.io/badge/AWS-Cloud-FF9900?style=flat\u0026logo=amazonaws\" alt=\"AWS\"/\u003e\n  \u003cimg src=\"https://img.shields.io/badge/IaC-Production_Ready-00C853?style=flat\" alt=\"Production Ready\"/\u003e\n\u003c/p\u003e\n\nMulti-environment infrastructure as code for AWS with modular, reusable Terraform configurations supporting development, staging, and production workloads.\n\n---\n\n## 📁 Project Structure\n\n```\nterraform/\n├── environments/\n│   ├── dev/          # Development environment\n│   ├── staging/      # Staging environment\n│   └── prod/         # Production environment\n└── modules/\n    ├── common/       # Shared resources\n    ├── ec2/          # EC2 instances \u0026 security groups\n    ├── ecr/          # Elastic Container Registry\n    ├── eks/          # Elastic Kubernetes Service\n    ├── iam/          # IAM roles \u0026 policies\n    ├── keypair/      # SSH key management\n    ├── s3/           # S3 storage buckets\n    └── vpc/          # Network infrastructure\n```\n\n---\n\n## 🔧 Prerequisites\n\n- [Terraform](https://www.terraform.io/downloads) v1.0+\n- [AWS CLI](https://aws.amazon.com/cli/) configured with appropriate credentials\n- AWS account with necessary permissions\n\n---\n\n## 🏗️ Modules\n\n| Module | Description |\n|--------|-------------|\n| **common** | Shared resources and configurations |\n| **ec2** | Instance and security group management |\n| **ecr** | Elastic Container Registry for Docker images |\n| **eks** | Elastic Kubernetes Service cluster management |\n| **iam** | Identity and Access Management roles/policies |\n| **keypair** | SSH key pair management |\n| **s3** | Storage bucket with security features |\n| **vpc** | Network infrastructure and routing |\n\n---\n\n## 🌍 Environment Specifications\n\n| Environment | Instance Type | CIDR Block | Purpose |\n|-------------|--------------|------------|---------|\n| **dev** | t2.micro | 10.0.0.0/16 | Feature development \u0026 testing |\n| **staging** | t2.small | 10.1.0.0/16 | Pre-production testing |\n| **prod** | t2.medium | 10.2.0.0/16 | Live workloads |\n\n---\n\n## 🚀 Quick Start\n\n```bash\n# 1. Navigate to environment\ncd environments/\u003cenv\u003e   # dev, staging, or prod\n\n# 2. Initialize Terraform\nterraform init\n\n# 3. Review changes\nterraform plan\n\n# 4. Apply infrastructure\nterraform apply\n```\n\n---\n\n## 🔑 Key Features\n\n### Infrastructure Components\n- VPC with public/private subnets\n- EC2 instances for web and application servers\n- EKS clusters for container orchestration\n- ECR repositories for Docker images\n- S3 buckets for storage\n- IAM roles and policies\n\n### Security Measures\n- Network isolation with security groups\n- IAM role-based access control\n- Encryption at rest\n- Public access blocking\n- Least privilege principle\n\n### Scalability\n- Environment-specific resource sizing\n- Modular, reusable design\n- Expandable CIDR ranges\n\n---\n\n## 📋 Common Commands\n\n| Command | Description |\n|---------|-------------|\n| `terraform init` | Initialize working directory |\n| `terraform plan` | Preview infrastructure changes |\n| `terraform apply` | Create/update infrastructure |\n| `terraform destroy` | Destroy all resources |\n| `terraform destroy -target=TYPE.NAME` | Destroy specific resource |\n\n\u003e ⚠️ **Warning**: Avoid using `terraform destroy --auto-approve` in production environments.\n\n---\n\n## ✅ Best Practices\n\n### Code Organization\n- Modular structure with DRY principles\n- Clear separation of concerns\n- Environment isolation\n\n### Security\n- Network segmentation\n- Resource isolation\n- Access controls with encryption\n\n### Maintainability\n- Consistent naming conventions\n- Environment-specific state files\n- Remote backend for production\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuraj-kumar00%2Fterraform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuraj-kumar00%2Fterraform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuraj-kumar00%2Fterraform/lists"}