provider "aws" {
  region = var.aws_region
}

# Terraform backends cannot contain interpolations
terraform {
  backend "s3" {
    bucket  = "orcd-terraform-state"
    key     = "prod/github/python-getstream-connector/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 = {

    python-getstream-connector = {
      branch_protection_enabled        =  true
      branch_protection_enforce_admins = false
      repo_auto_init                   = true
      archived_repository              = false
      github_code_owner_reviews        = false
      has_downloads                    = false
      description                      = "Wrapper for official GetStream library (Managed by Terraform)"
      visibility                       = "private"
      homepage_url                     = ""
    }

  }
}
