ai-cfia / nachet-backend

A flask-based backend for Nachet to handle Azure endpoint and Azure storage API requests from the frontend.
MIT License
1 stars 4 forks source link

Nachet-backend terraform deployment #42

Closed ThomasCardin closed 8 months ago

ThomasCardin commented 8 months ago

The initial deployment configuration for the nachet-backend application on Azure, structured using Terraform, is expected to undergo further enhancements soon. The current setup encompasses:

  1. Resource Group: Establishes a resource group called nachet in the canadacentral region, providing a container for all resources associated with the nachet-backend application.

  2. Azure Container Registry (ACR): Sets up registryNachet, a dedicated container registry within this group, for storing Docker images for the nachet-backend application.

  3. Azure Storage Account: Configures the nachetstaorageaccount for storing various objects, with a focus on logs for operating and monitoring the nachet-backend application.

  4. Azure Storage Container: Creates nachetlogs, a container designated for the secure and private storage of logs from the nachet-backend.

  5. Shared Access Signature (SAS) for Azure Storage: Generates a SAS to provide secure, controlled access to the storage account, primarily for log management purposes of the nachet-backend application.

  6. App Service Plan: Details the nachetserviceplan, outlining the hosting capabilities and cost structure for the nachet-backend application on Azure.

  7. Linux Web App: Launches the nachetappservice, which currently runs the nachet-backend:latest Docker image from the ACR. The log management is configured to record logs in both local and Azure Blob Storage for 30 days, facilitated by the SAS. An upcoming enhancement in this area is the automation of the Docker image name and tag, to streamline updates and deployments of the nachet-backend application.

This infrastructure is designed for the nachet-backend application, incorporating container management, storage, and logging on Azure. It's a foundational deployment expected to be modified and improved as the application requirements evolve, with immediate plans to automate aspects of the Docker deployment process.