Files
aitbc/infra/terraform/ecs_variables.tf
aitbc b3293527b8
Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Node Failover Simulation / failover-test (push) Has been cancelled
infra: add Terraform infrastructure as code for AWS deployment
- Create main.tf with VPC, security groups, ECS, ALB, RDS, Redis, S3
- Add provider.tf with AWS provider configuration
- Create variables.tf for infrastructure configuration
- Add outputs.tf for infrastructure outputs
- Implement ecs.tf with ECS task definitions and services
- Add ecs_variables.tf for ECS-specific variables
- Create comprehensive README.md with usage instructions
- Implement state management with S3 backend and DynamoDB locking
- Add security best practices (private subnets, encryption, secrets manager)
2026-05-09 12:36:08 +02:00

56 lines
1020 B
HCL

# ECS API variables
variable "api_cpu" {
description = "API task CPU units"
type = number
default = 512
}
variable "api_memory" {
description = "API task memory in MB"
type = number
default = 1024
}
variable "api_desired_count" {
description = "API desired task count"
type = number
default = 2
}
variable "api_image" {
description = "API Docker image"
type = string
default = "aitbc/api"
}
variable "api_image_tag" {
description = "API Docker image tag"
type = string
default = "latest"
}
variable "log_level" {
description = "Application log level"
type = string
default = "INFO"
}
variable "database_url" {
description = "Database connection URL"
type = string
sensitive = true
}
variable "redis_url" {
description = "Redis connection URL"
type = string
sensitive = true
}
variable "jwt_secret" {
description = "JWT secret key"
type = string
sensitive = true
}