# ============================================================
# Performance Effective Solutions — Terraform Variables
# ============================================================

variable "aws_region" {
  description = "AWS region for resource deployment"
  type        = string
  default     = "us-east-1"
}

variable "environment" {
  description = "Deployment environment (dev, stage, uat, prod)"
  type        = string
  default     = "dev"

  validation {
    condition     = contains(["dev", "stage", "uat", "prod"], var.environment)
    error_message = "Environment must be one of: dev, stage, uat, prod"
  }
}

variable "ami_id" {
  description = "AMI ID for the EC2 instance (Amazon Linux 2023 or similar)"
  type        = string
}

variable "instance_type" {
  description = "EC2 instance type"
  type        = string
  default     = "t3.micro"
}

variable "vpc_id" {
  description = "VPC ID where the instance will be deployed"
  type        = string
}

variable "allowed_ssh_cidr" {
  description = "CIDR block allowed to SSH into the instance (set to your VPN or office IP range)"
  type        = string
  default     = "10.0.0.0/8"
}
