> For the complete documentation index, see [llms.txt](https://docs.didge.io/home/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.didge.io/home/corporate/corporate/governance-and-compliance/deployment-and-infrastructure.md).

# Deployment & Infrastructure

**MFC Safe Pty Ltd**\
**PaaS Deployment & Infrastructure Operations Manual**\
**Title:** Deployment and Hosting Guide for the MFC Safe Platform\
**Version:** 1.0\
**Effective Date:** 2 June 2025\
**Next Review Date:** 2 June 2026

***

#### **1. Purpose**

This manual outlines the deployment, hosting, and operational processes for the MFC Safe Platform-as-a-Service (PaaS) infrastructure. It defines the continuous integration and delivery (CI/CD) workflow, hosting architecture on AWS, scaling strategies, service provisioning, and related DevOps procedures.

***

#### **2. Cloud Hosting Environment**

* **Primary Provider:** Amazon Web Services (AWS)
* **Regions Used:** ap-southeast-2 (Sydney), ap-southeast-1 (Singapore)
* **Availability Zones:** Multi-AZ deployments for redundancy
* **Core Services:**
  * EC2 (compute)
  * RDS / MongoDB Atlas (databases)
  * S3 (object storage)
  * CloudWatch (monitoring & logs)
  * IAM (role-based access)
  * Secrets Manager (credential storage)
  * API Gateway / Lambda (serverless APIs)

***

#### **3. Infrastructure Provisioning**

* All infrastructure is defined using **Terraform** (Infrastructure-as-Code)
* Code repositories are version controlled via GitHub
* Environments: `dev`, `staging`, `prod`
* Terraform modules provision:
  * VPCs and subnets
  * Security groups and firewalls
  * EC2 launch templates
  * CloudWatch alarms and SNS topics

***

#### **4. CI/CD Pipeline**

* **CI Platform:** GitHub Actions
* **Stages:**
  * Linting & Unit Tests
  * Security Scan (Snyk / CodeQL)
  * Build Docker images
  * Push to Amazon ECR
  * Deploy via Helm to Kubernetes (EKS)
* **Release Strategy:**
  * Feature branches → staging → main (production)
  * Canary releases supported via label-based service selectors
  * Manual approval required for production deployment

***

#### **5. Monitoring & Logging**

* Application logs: CloudWatch (ECS), Sentry (frontend)
* Infrastructure logs: AWS CloudTrail
* Alerts: SNS + Slack integration
* Dashboards: Grafana for metrics (CPU, memory, I/O, response times)

***

#### **6. Scaling & Resilience**

* Horizontal scaling via Kubernetes Horizontal Pod Autoscaler (HPA)
* LoRaWAN gateways and sensor ingestion services are decoupled via queueing (SQS)
* MongoDB replica sets for HA, with daily and weekly backups
* Load balancers with health check routing (ALB)

***

#### **7. Service Provisioning**

* Onboarding a new client site includes:
  * Namespace creation (Kubernetes)
  * Subdomain registration and SSL provisioning
  * Database schema initialization
  * API credentials for data ingestion
  * Optional: custom webhook configurations

***

#### **8. Backup & Recovery**

* Automated daily and weekly backups
* Retention: 90 days
* Backup verification tests monthly
* RTO target: < 4 hours; RPO target: < 1 hour

***

**Maintained By:** DevOps & Infrastructure Team\
**Contact:** <technology@mfcsafe.com>\
**Approved By:** Technology Director, MFC Safe Pty Ltd

***

End of Document


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.didge.io/home/corporate/corporate/governance-and-compliance/deployment-and-infrastructure.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
