provider "aws" {
  region = var.aws_region
}

terraform {
  backend "s3" {
    bucket  = "orcd-terraform-state"
    key     = "prod/github/graphql-publishing/terraform.tfstate"
    region  = "us-east-1"
    encrypt = "true"
  }
}

module "github_repositories" {
  source                     = "git@github.com:theorchard/terraform-github.git//?ref=5.0.0"
  application_family         = var.application_family
  repository_name            = "graphql-publishing"
  description                = "GraphQL Publishing"
  default_code_owner         = "collections-publishing-and-compositions"
  branch_protection_patterns = ["master"]
  delete_branch_on_merge     = true
  github_code_owner_reviews  = true
}
