provider "aws" {
  region = var.aws_region
}

# Terraform backends cannot contain interpolations
terraform {
  backend "s3" {
    bucket  = "orcd-terraform-state"
    key     = "prod/github/fansifter-prototypes/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.service_name
  description               = "Fansifter web service for hosting internal PoC services"
  default_code_owner        = "fansifter"
  delete_branch_on_merge    = false
  github_code_owner_reviews = true
  github_pull_teams         = []
  github_push_teams         = ["fansifter"]
  pull_request_bypassers    = var.usernames
}
