provider "aws" {
  region = var.aws_region
}

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

module "github_repositories" {
  source             = "git@github.com:theorchard/terraform-github.git//?ref=5.0.0"
  application_family = var.application_family
  branch_protection_enabled        = true
  branch_protection_enforce_admins = true
  archived_repository              = true
  github_code_owner_reviews        = true
  description                      = "The Orchard's Accounting Run Acceptance Test Framework"
  has_downloads                    = true
  homepage_url                     = "https://github.com/theorchard/accounting-run-atf"
  default_code_owner               = "devops-squad"
  repository_name                  = "accounting-run-atf"
  allow_merge_commit               = false
  delete_branch_on_merge           = true
  github_pull_teams                = []
  github_push_teams                = ["devops-squad", "mergers"]
}
