provider "aws" {
  region = var.aws_region
}

provider "github" {
  owner    = var.github_organization
  app_auth {}
}

terraform {
  backend "s3" {
    bucket  = "orcd-terraform-state"
    key     = "prod/github/resonance-engine/terraform.tfstate"
    region  = "us-east-1"
    encrypt = "true"
  }
}

module "github_repositories" {
  source = "git@github.com:theorchard/terraform-github.git//?ref=6.1.2"

  repository_name           = "resonance-engine"
  application_family        = var.application_family
  description               = "Service for collecting DSP fan data (artists, albums, tracks, playlists, etc.)"
  default_code_owner        = "fansifter"
  github_code_owner_reviews = true
}
