| # Variables for AWS deployment | |
| variable "aws_region" { | |
| description = "AWS region" | |
| type = string | |
| default = "us-west-2" | |
| } | |
| variable "environment" { | |
| description = "Environment name" | |
| type = string | |
| default = "dev" | |
| } | |
| variable "vpc_cidr" { | |
| description = "CIDR block for VPC" | |
| type = string | |
| default = "10.0.0.0/16" | |
| } | |
| variable "private_subnets" { | |
| description = "Private subnets CIDR blocks" | |
| type = list(string) | |
| default = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"] | |
| } | |
| variable "public_subnets" { | |
| description = "Public subnets CIDR blocks" | |
| type = list(string) | |
| default = ["10.0.101.0/24", "10.0.102.0/24", "10.0.103.0/24"] | |
| } | |
| variable "kubernetes_version" { | |
| description = "Kubernetes version" | |
| type = string | |
| default = "1.28" | |
| } | |
| variable "allowed_cidr_blocks" { | |
| description = "CIDR blocks allowed to access EKS API" | |
| type = list(string) | |
| default = ["0.0.0.0/0"] # Restrict in production | |
| } | |
| # Database variables | |
| variable "db_instance_class" { | |
| description = "RDS instance class" | |
| type = string | |
| default = "db.t3.medium" | |
| } | |
| variable "db_allocated_storage" { | |
| description = "RDS allocated storage in GB" | |
| type = number | |
| default = 100 | |
| } | |
| variable "db_max_allocated_storage" { | |
| description = "RDS max allocated storage in GB" | |
| type = number | |
| default = 1000 | |
| } | |
| variable "db_username" { | |
| description = "RDS master username" | |
| type = string | |
| default = "cyber_llm" | |
| } | |
| variable "db_password" { | |
| description = "RDS master password" | |
| type = string | |
| sensitive = true | |
| } | |
| # Redis variables | |
| variable "redis_node_type" { | |
| description = "ElastiCache node type" | |
| type = string | |
| default = "cache.r6g.large" | |
| } | |
| variable "redis_num_cache_nodes" { | |
| description = "Number of cache nodes" | |
| type = number | |
| default = 2 | |
| } | |
| variable "redis_auth_token" { | |
| description = "Redis AUTH token" | |
| type = string | |
| sensitive = true | |
| } | |