provider "aws" {
  region = var.aws_region
}

# Terraform backends cannot contain interpolations
terraform {
  backend "s3" {
    bucket  = "orcd-terraform-state"
    key     = "prod/github/auth0-block-users-lambda/terraform.tfstate"
    region  = "us-east-1"
    encrypt = "true"
  }
}

module "github_repositories" {
  source = "git@github.com:theorchard/terraform-github.git//?ref=2.1.3"
  github_repository_names = {
    auth0-block-users-lambda = {
      branch_protection_enabled        = true
      branch_protection_enforce_admins = true
      repo_auto_init                   = false
      archived_repository              = true
      github_code_owner_reviews        = true
      visibility                       = "private"
      description                      = "Lambda function for blocking auth0 users access. Managed by Terraform. (deprecated)"
      homepage_url                     = ""
      has_downloads                    = false
    }
  }
}
