provider "aws" {
  region = var.aws_region
}

terraform {
  backend "s3" {
    bucket  = "orcd-terraform-state"
    key     = "prod/github/lambda-audit-log/terraform.tfstate"
    region  = "us-east-1"
    encrypt = "true"
  }
}

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

  repository_name                  = var.service_name
  description                      = "Lambda audit log"
  default_code_owner               = "application-security"
  application_family               = var.application_family
  branch_protection_enforce_admins = false

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

  homepage_url  = "https://github.com/theorchard/lambda-audit-log"
  has_downloads = true
}
