provider "aws" {
  region = var.aws_region
}

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

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

  repository_name           = var.repository_name
  description               = "Collection of Streamlit apps to handle Fansifter/CRM related background activities."
  default_code_owner        = "fansifter"
  application_family        = var.application_family
  branch_protection_enabled = false
  homepage_url              = "https://github.com/theorchard/streamlit-fansifter-backoffice-app"
  pull_request_bypassers    = var.usernames


}
