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

provider "github" {
  token = var.github_token != "" ? var.github_token : null
  owner = var.github_organization
}

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

  repository_name        = var.repository_name
  description            = var.description
  default_code_owner     = var.code_owner
  application_family     = var.application_family
  required_status_checks = []
}
