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

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

variable "service_name" {
  default = "datadog-archives"
}

variable "bucket_name" {
  description = "S3 bucket to create as a storage for log archives."
  default     = "prod-orcd-datadog-archives"
}

variable "bucket_key_prefix_list" {
  description = "List of S3 key prefixes to allow access to. Empty list allows access to all objects in the bucket."
  default     = []
}

variable "datadog_integration_role_name" {
  description = "Existing IAM role that is used by DataDog integration."
  default     = "datadog-integration-role"
}

variable "datadog_s3_log_archives" {
  description = "List of DataDog log archives to be stored on S3."

  type = list(object({
    name   = string
    path   = string
    filter = string
  }))

  default = [
    {
      name   = "prod-elb"
      path   = "/prod/elb"
      filter = "environment:prod service:elb -@aws.s3.key:*fluentd-applications*"
    },
    {
      name   = "auth0"
      path   = "/shared/auth0"
      filter = "service:auth0"
    }
  ]
}
