variable "region" {
  description = "The AWS resources region"
  default     = "us-east-1"
}

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

variable "service_name" {
  description = "The name of the associated application."
  default     = "rds-backup"
}

variable "application_family" {
  description = "The name of the application family."
  default     = "devops"
}

variable "account_ids_to_back_up" {
  type = list(object(
    {
      account_id = string
      kms_key_id = string
    }
  ))
  description = "List of AWS account IDs to back up"
  default     = [
    {
      "account_id": "437795906767",
      "kms_key_id": "772ea637-a9dd-49aa-a888-284ececbeb88",
    },
  ]
}

variable "cross_account_backup_role_name" {
  description = "Name of IAM role to assume in each AWS account. Should be the same across accounts"
  default     = "prod-rds-backup-role"
}

variable "external_id" {
  description = "External ID for cross-account role"
  default     = "Yx20tijzVMwQ9eVYvdMv7nbTJijU4RBB"
}

locals {
  tags = {
    environment        = var.environment
    service_name       = var.service_name
    application_family = var.application_family
    terraformed        = true
  }
}
