chore(infra): correct naming

This commit is contained in:
loitragg 2025-09-27 16:05:25 +07:00
parent 03c0d47b7d
commit c5d7e0035c
No known key found for this signature in database
GPG key ID: 96292BAF3E28CFF5
4 changed files with 47 additions and 3 deletions

View file

@ -18,6 +18,50 @@ Microsoft Entra App Proxy → Internal ALB → ECS Service (3 instances) → Aur
- **Auto Scaling**: CPU-based scaling from 2-10 instances
- **Monitoring**: CloudWatch dashboards and alarms
## Directory Structure
```
iac/
├── modules/ # Reusable Terraform modules
│ └── grafana-otel/ # Standalone Grafana OTEL monitoring module
│ ├── main.tf
│ ├── variables.tf
│ ├── outputs.tf
│ ├── versions.tf
│ └── README.md
├── grafana-standalone/ # Example standalone Grafana deployment
│ ├── main.tf
│ ├── variables.tf
│ ├── outputs.tf
│ ├── terraform.tfvars.example
│ └── README.md
├── *.tf # Main OpenWebUI infrastructure
└── README.md # This file
```
### Grafana OTEL Monitoring Module
The `modules/grafana-otel/` directory contains a standalone, reusable Terraform module for deploying Grafana OTEL LGTM (Logs, Grafana, Tempo, Mimir) monitoring stack. This module can be deployed independently of the main OpenWebUI infrastructure.
**Features:**
- Complete OTEL observability stack (Grafana + Prometheus + Tempo + Loki)
- ECS Fargate deployment with autoscaling
- Service discovery integration
- Configurable security and network access
- CloudWatch logging integration
**Usage:**
- **Standalone**: Use `grafana-standalone/` for independent deployment with S3 remote state
- **Integrated**: Reference the module from other Terraform configurations
**State Management:**
- **Main Infrastructure**: `production/gravity-ai-chat/terraform.tfstate`
- **Grafana Monitoring**: `production/grafana-monitoring/terraform.tfstate`
Both deployments use the same S3 bucket but separate state files for independent management.
See `modules/grafana-otel/README.md` for detailed documentation.
## Prerequisites
1. Terraform >= 1.0

View file

@ -62,7 +62,7 @@ resource "aws_security_group" "ecs_scaled_sg" {
# CloudWatch log group for the new service
resource "aws_cloudwatch_log_group" "ecs_scaled_logs" {
name = "/ecs/webUIfargate-scaled"
name = "/ecs/openwebui-scaled"
retention_in_days = 7
tags = {

View file

@ -11,7 +11,7 @@ existing_ecs_security_group_id = "sg-05e12bd2e202e19f6"
# ECS Configuration
cluster_name = "webUIcluster2"
service_name = "webui3-scaled"
task_family_name = "webUIfargate-scaled"
task_family_name = "openwebui-scaled"
container_image = "908027381725.dkr.ecr.us-east-1.amazonaws.com/github/open-webui/open-webui:v0.6.16-custom"
# Scaling Configuration

View file

@ -49,7 +49,7 @@ variable "service_name" {
variable "task_family_name" {
description = "ECS task definition family name"
type = string
default = "webUIfargate-scaled"
default = "openwebui-scaled"
}
variable "container_image" {