# Terraform backends cannot contain interpolations
terraform {
  backend "s3" {
    bucket  = "orcd-terraform-state"
    key     = "prod/github/orchard-analytics-dbt-knr/terraform.tfstate"
    region  = "us-east-1"
    encrypt = "true"
  }
}

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

  application_family = "data-platform"

  github_repository_names = {
    orchard-analytics-dbt-knr = {
      branch_protection_enabled        = true
      branch_protection_enforce_admins = true
      repo_auto_init                   = false
      archived_repository              = false
      github_code_owner_reviews        = true
      visibility                       = "private"
      description                      = "dbt project for orchard strategy team"
      has_downloads                    = false
      homepage_url                     = ""
    }
  }

  github_push_teams = [
    "data-analytics-eng",
    "mergers",
  ]

  allow_merge_commit = true

  branch_protection_required_status_checks = true
  github_code_owner_reviews                = false
}
