provider "aws" {
  region = "us-east-1"

  default_tags {
    tags = module.default_tags.tags
  }
}

module "mysql" {
  source                             = "../../modules/mysql"
  environment                        = "prod"
  host_name                          = "prod-db-reportsar02"
  teams                              = ["team1", "team2"]
  mysql_disk_space_monitor_enabled   = true
  mysql_availability_monitor_enabled = true
  mysql_connection_monitor_enabled   = true
  mysql_cpu_monitor_enabled          = true
  mysql_memory_monitor_enabled       = true
  mysql_slow_queries_monitor_enabled = true
  mysql_replica_lag_monitor_enabled  = true
  ebs_widgets_enabled                = false
  mysql_data_volume_device_name      = "/dev/nvme1n1"
  mysql_system_disk_device_name      = "/dev/mapper/eql-0-af1ff6-302e9b2ea-e18b0d4094d54469-dbvol01"
  notification_endpoints             = "@endpoint-for-all"
  escalation_notification_endpoints  = "@endpoint-for-all @endpoint-for-escalations"
  alert_notification_endpoints       = "@endpoint-for-alerts"
  no_data_notification_endpoints     = "@endpoint-for-no-data"
}

module "default_tags" {
  source             = "git@github.com:theorchard/terraform-default-tags.git//?ref=2.0.0"
  environment        = "prod"
  application_family = "devops"
  service_name       = "mysql"
  team_name          = "devops"
}
