provider "aws" {
  region = var.aws_region
}

# Terraform backends cannot contain interpolations
terraform {
  backend "s3" {
    bucket  = "orcd-terraform-state"
    key     = "prod/github/lambda-aws-break-glass/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-aws-break-glass"
  default_code_owner = "devops-squad"
  application_family = var.application_family

  github_triage_teams = ["orcharddevs-ro"]
  github_push_teams   = ["mergers"]

  homepage_url               = "DEVEX-122"
  delete_branch_on_merge     = true
  branch_protection_patterns = ["master"]
}

