##################################
#         Common Variables       #
##################################

variable "common_tags" {
  description = "Common Tags for EC2 and can be used for other resources as well"
  type        = map(string)
  default = {
    Terraform     = "True"
    Environment   = "Prod"
    Business-Unit = "GRPS"
    Owner         = "Richard Mayer"
    Project-Code  = "2000-0497G"
    Project-Name  = "GRPS"
    OPS           = "STND"
    DATA          = "NORMAL"
  }
}

variable "cloudops_firewall_protected_tag" {
  description = "Used to tag an EC2 instance as being protected by a firewall, either Network Firewall or PaloAlto"
  type        = map(string)

  default = {
    CLOPS_FW = "YES"
  }
}

variable "lambda_functions" {
  description = "Lambda functions to monitor with CW alarms"
  type        = list(string)
  default = [
    "LogsToElasticsearch_lcs-prod-es-01",
    "SecretsManager-Normal-User-Rotation",
    "SecretsManager-Super-User-Rotation",
    "MonitorRDSSubnetIPs"
  ]
}

variable "lambda_functions_cloudops_only" {
  description = "Lambda functions to monitor with CW alarms (cloudops.support only, no gras.techsupport)"
  type        = list(string)
  default = [
    "cloudwatch-gsirthec-sme-label-copy-schedule-prod-euc1-cluster-01"
  ]
}

variable "environment" {
  description = "Environment name"
  default     = "prod"
}

variable "account_group" {
  description = "The name of the account group that the account belongs to"
  default     = "grps-p2"
}

variable "resource_share_principals" {
  type        = set(string)
  description = "List of principals to share resources with using RAM"
  default = [
    "arn:aws:organizations::970903126758:ou/o-bqioddgr91/ou-ax9e-vu43qt3i", # The Orchard OU
    "arn:aws:organizations::970903126758:ou/o-bqioddgr91/ou-ax9e-ouayejxi", # Data Strategy aka GDB OU
  ]
}
