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

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

  application_family               = var.application_family
  repository_name                  = "lambda-looker"
  description                      = "Looker automation Lambda (Managed by Terraform)"
  default_code_owner               = "data-platform"
  homepage_url                     = ""
  branch_protection_patterns       = ["master"]
  branch_protection_enforce_admins = false
  has_downloads                    = true

  github_pull_teams   = ["orcharddevs-ro", "orcharddevs-rw"]
  github_triage_teams = []
  github_push_teams   = ["mergers"]
}
