# Terraform backends cannot contain interpolations
provider "aws" {
  region = var.aws_region
}

terraform {
  backend "s3" {
    bucket  = "orcd-terraform-state"
    key     = "prod/github/qa-automation-tools/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           = var.repository_name
  description               = var.description
  default_code_owner        = var.default_code_owner
  homepage_url              = var.homepage_url
  allow_merge_commit        = true
  delete_branch_on_merge    = false
  github_code_owner_reviews = true
  github_pull_teams         = []
}
