# Terraform backends cannot contain interpolations
terraform {
  backend "s3" {
    bucket  = "orcd-terraform-state"
    key     = "prod/github/product-catalog-uploader/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 = var.application_family
  github_repository_names = {

    product-catalog-uploader = {
      branch_protection_enabled        = true
      branch_protection_enforce_admins = true
      repo_auto_init                   = true
      archived_repository              = false
      github_code_owner_reviews        = true
      visibility                       = "private"
      description                      = "Repo for product-catalog-uploader service. Deployed in gdb-delphi-dev."
      has_downloads                    = false,
      homepage_url                     = "https://github.com/theorchard/product-catalog-uploader"
    }
  }
}
