Skip to content

feat: introduce Terraform for AWS infrastructure management - #846

Merged
Nitya-003 merged 2 commits into
Nitya-003:mainfrom
AnzalKhan16:feature/terraform-infrastructure
Jul 31, 2026
Merged

feat: introduce Terraform for AWS infrastructure management#846
Nitya-003 merged 2 commits into
Nitya-003:mainfrom
AnzalKhan16:feature/terraform-infrastructure

Conversation

@AnzalKhan16

Copy link
Copy Markdown
Contributor

📌 Overview
Introduced Infrastructure as Code (IaC) using Terraform to manage the AWS infrastructure for CropChain.
This configuration accurately provisions the VPC, Subnets, Internet Gateway, Security Group, IAM Roles for SSM, and the EC2 backend instance. The Terraform configuration is modularized into main.tf, providers.tf, variables.tf, and outputs.tf in the infrastructure/ directory. An example terraform.tfvars.example is provided, avoiding any hardcoded secrets. Additionally, I added Terraform formatting (terraform fmt) and validation (terraform validate) checks to the CI workflow (ci.yml) to ensure continuous IaC health.

🛠️ Type of Change
[ ] ⛓️ Smart Contract (Solidity changes, Gas optimization)
[ ] 💻 Frontend (UI/UX, React components, Tailwind)
[ ] ⚙️ Backend (API routes, MongoDB schemas, Middleware)
[x] 📄 Documentation (README, Roadmap updates)
[x] 🧪 Testing (CI/CD Pipeline, DevOps & Infrastructure as Code)

🔗 Related Issue
Closes #845

🧪 Testing & Verification
Smart Contracts: npx hardhat test passed? (NA)
Frontend: Verified on Mobile/Desktop responsiveness? (NA)
Integration: Verified ethers.js connectivity with local/testnet node? (NA)

📸 Screenshots / Demos
(N/A - Infrastructure updates only)

✅ PR Checklist
[x] My code follows the project's style guidelines.
[x] I have commented my code, particularly in complex areas (e.g., Smart Contract logic).
[x] I have updated the documentation accordingly.
[x] My changes generate no new warnings.

@vercel

vercel Bot commented Jul 26, 2026

Copy link
Copy Markdown

@AnzalKhan16 is attempting to deploy a commit to the Nitya Gosain's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Nitya-003 Nitya-003 added enhancement New feature or request gssoc:approved gssoc'26 approved quality:clean *1.2 for contributor +5 pts for mentor level:intermediate 35 pts for contributor 20 pts for mentor type:feature labels Jul 31, 2026
@Nitya-003
Nitya-003 merged commit d263578 into Nitya-003:main Jul 31, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request gssoc:approved gssoc'26 approved level:intermediate 35 pts for contributor 20 pts for mentor quality:clean *1.2 for contributor +5 pts for mentor type:feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: provision AWS infrastructure using Terraform

2 participants