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

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

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

  repository_name    = var.repository_name
  description        = var.repository_description
  default_code_owner = var.default_code_owner
  application_family = var.application_family
}
