provider "aws" {
  region = var.aws_region
}

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

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

    ows-dmp-workflows = {
      branch_protection_enabled        = true
      branch_protection_enforce_admins = true
      repo_auto_init                   = true
      archived_repository              = true
      github_code_owner_reviews        = false
      visibility                       = "private"
      description                      = "Orchard workflows service for access to data management platform"
      has_downloads                    = false,
      homepage_url                     = "https://github.com/theorchard/ows-dmp-workflows"
    }
  }
}
