Infrastructure and code for Healthy Brain Network data migration.
AWS infrastructure running on EC2 with:
- Python services for data processing
- Node.js services for export automation
- Apache Iceberg for logging and data lakehouse
- Automated deployment via Terraform
The setup script installs all required tools:
-
Infrastructure:
- Terraform >= 1.7.0
- AWS CLI v2
-
Linting:
- ShellCheck (bash linting)
- ruff (Python linting)
- mypy (Python type checking)
- pre-commit (git hook framework)
-
SSH into your EC2 instance
-
Clone or copy your project
-
One-time setup: Install Terraform
./infrastructure/setup_terraform.sh
-
Configure
cp infrastructure/terraform.tfvars.example infrastructure/terraform.tfvars
-
Deploy
cd infrastructure terraform init terraform validate terraform plan terraform apply