provider "aws" {
  region = var.aws_region
}

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

module "github_repositories" {
  source                  = "git@github.com:theorchard/terraform-github.git//?ref=3.0.2"
  application_family      = var.application_family
  github_repository_names = {

    streamlit-call-delete-smeanalyticsdummy-product = {
      branch_protection_enabled        = false
      branch_protection_enforce_admins = true
      repo_auto_init                   = true
      archived_repository              = false
      github_code_owner_reviews        = false
      pull_request_bypassers           = var.usernames
      visibility                       = "private"
      description                      = "Streamlit app for deleting ows product"
      has_downloads                    = false
      homepage_url                     = "https://github.com/theorchard/streamlit-call-delete-smeanalyticsdummy-product"
    }
  }
}
