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

variable "environment" {
  description = "Available values: dev, qa, prod."
  type        = string
  default     = "dev"
}

variable "application_family" {
  description = "Name of application family."
  type        = string
  default     = "family1"
}

variable "user_name" {
  description = "Name of application user."
  type        = string
  default     = "dummy"
}

variable "existing_policies_to_attach" {
  description = "List of IAM policies to attach."
  type        = list(string)
  default = [
    "dev-orchard-shared-iam-access-policy",
    "dev-orchard-shared-iam-deny-policy",
    "dev-orchard-shared-read-policy",
    "dev-orchard-shared-write-policy",
  ]
}

locals {
  user_name = "${var.environment}-${var.user_name}"

  tags = {
    owner              = "dpinchukov"
    environment        = var.environment
    application_family = var.application_family
    terraformed        = true
  }
}
