provider "aws" {
  region = var.aws_region
}

terraform {
  backend "s3" {
    bucket  = "qa-ecommerce-terraform-state"
    key     = "qa/cost-anomaly-detection/terraform.tfstate"
    region  = "us-east-1"
    encrypt = "true"
  }
}

module "cost_anomaly_detection" {
  source = "git@github.com:theorchard/terraform-cost-anomaly-detection.git//?ref=1.0.1"

  environment               = var.environment
  cost_threshold_percentage = var.cost_threshold_percentage
  cost_threshold_absolute   = var.cost_threshold_absolute
  application_family        = var.application_family
}
