File size: 2,009 Bytes
23804b3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
# 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
}
|