variable "aws_region" {
  default     = "us-east-1"
  description = "Name of AWS region"
}

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

variable "service_name" {
  default = "orchard-repo-cron-worker"
}

variable "application_family" {
  default = "php-monolith"
}

variable "config_s3_bucket" {
  description = "S3 bucket where encrypted content is stored"
  default     = "nickelback"
}

variable "config_service_name" {
  description = "Service name for config locations"
  default     = "orchard-repo-cron-worker"
}

variable "map_migrated_tag" {
  type        = string
  description = "Name of MAP migration hub server id for accounting_run"
  default     = "d-server-00oqiwieeb6fpl"
}

variable "notification_endpoints" {
  type    = string
  default = "@slack-security-team @slack-accounting-tech"
}

variable "shared_account_id" {
  description = "AWS Account ID of shared account for ECR images"
  type        = string
  default     = "086679231553"
}

locals {
  pre_existing_iam_policies = [
    "KMS-${var.environment}-tax-id-export-policy",
    "SecretsManager-${var.environment}-ows-machine-to-machine-policy",
    "S3-${var.environment}-orcd-tax-id-export-RW",
  ]
}

locals {
  cron_jobs = {
    "tourdate_reminder" = {
      service_name     = "cron-tourdate-reminder"
      schedule         = "cron(0 * * * ? *)"
      script_arguments = ""
      script_to_run    = "scripts/socialprofile/tourdate_reminder.php"
    }
    "new_ppl" = {
      service_name     = "cron-new-ppl"
      schedule         = "cron(*/5 * * * ? *)"
      script_arguments = ""
      script_to_run    = "scripts/ppl/new_ppl.php"
    }
    #     Bacon is for another day it seems
    #     "bacon_youtube_claiming_agent_cron" = {
    #       service_name     = "bacon-youtube-claiming-agent-cron"
    #       schedule         = "cron(*/5 * * * ? *)"
    #       script_arguments = ""
    #       script_to_run    = "scripts/YoutubeClaiming/Run/YoutubeClaimingAgentCron.php"
    #     }
  }
}

variable "team_name" {
  description = "Team Name"
  default     = "appsec"
}
