provider "aws" {
  region = var.aws_region
}

# Terraform backends cannot contain interpolations
terraform {
  backend "s3" {
    bucket  = "orcd-terraform-state"
    key     = "prod/github/daemon-sales-sheets/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        = "product-builder"
  repository_name           = "daemon-sales-sheets"
  description               = "Reads SQS queue, generates pdf files and uploads them to S3"
  default_code_owner        = "content-creation-management-ccm"
  homepage_url              = "https://github.com/theorchard/daemon-sales-sheets"
  allow_merge_commit        = false
  allow_squash_merge        = true
  allow_rebase_merge        = false
  delete_branch_on_merge    = true
  github_code_owner_reviews = false
  github_pull_teams         = []
  github_triage_teams       = ["orcharddevs-ro"]
  github_push_teams         = ["mergers"]
}
