provider "github" {
  owner = var.github_organization
  app_auth {}
}

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

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

  repository_name    = var.service_name
  description        = "Repository for storing machine learning project Winfrey from SME DS team"
  default_code_owner = "sme-ds-team"
  application_family = var.application_family
}
