provider "aws" {
  region = var.aws_region
}

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

module "github_repositories" {
  source                     = "git@github.com:theorchard/terraform-github.git//?ref=5.0.0"
  application_family         = "kafka-data-highway"
  repository_name            = "lambda-fan-preference-sync"
  description                = "Lambdas for handling Preference Center Fan updates sync."
  default_code_owner         = "kafka-data-highway-kdh"
  branch_protection_patterns = ["master"]
  github_pull_teams          = []
  github_triage_teams        = ["orcharddevs-ro"]
  github_push_teams          = ["mergers"]
}
