# Compute Module Variables
variable "project_name" {
description = "Name of the project"
type = string
}
variable "environment" {
description = "Environment (dev, staging, prod)"
type = string
}
variable "vpc_id" {
description = "ID of the VPC"
type = string
}
variable "subnet_ids" {
description = "List of subnet IDs for the Auto Scaling Group"
type = list(string)
}
variable "security_group_id" {
description = "ID of the security group for the EC2 instances"
type = string
}
variable "iam_instance_profile" {
description = "Name of the IAM instance profile for the EC2 instances"
type = string
}
variable "instance_type" {
description = "Instance type for the EC2 instances"
type = string
default = "t3.micro"
}
variable "key_name" {
description = "Name of the key pair for SSH access"
type = string
default = ""
}
variable "min_size" {
description = "Minimum size of the Auto Scaling Group"
type = number
default = 2
}
variable "max_size" {
description = "Maximum size of the Auto Scaling Group"
type = number
default = 4
}
variable "desired_capacity" {
description = "Desired capacity of the Auto Scaling Group"
type = number
default = 2
}
variable "target_group_arns" {
description = "List of target group ARNs for the Auto Scaling Group"
type = list(string)
}
variable "efs_id" {
description = "ID of the EFS file system"
type = string
}
variable "efs_mount_point" {
description = "Mount point for the EFS file system"
type = string
default = "/var/www/html/shared"
}
variable "db_endpoint" {
description = "Endpoint of the RDS instance"
type = string
}
variable "db_name" {
description = "Name of the database"
type = string
}
variable "db_username" {
description = "Username for the database"
type = string
}
variable "db_password" {
description = "Password for the database"
type = string
sensitive = true
}
variable "tags" {
description = "A map of tags to add to all resources"
type = map(string)
default = {}
}