provider "aws" {
  region = var.aws_region
}

provider "github" {
  owner = "theorchard"
}

# Terraform backends cannot contain interpolations
terraform {
  backend "s3" {
    bucket  = "orcd-terraform-state"
    key     = "prod/github/hot-updater/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                 = "hot-updater"
  description                     = "OTA updates for mobile apps"
  default_code_owner              = "mobile-suite"
  allow_merge_commit              = false
  allow_rebase_merge              = false
  allow_squash_merge              = true
  application_family              = "mobile"

  github_push_teams = [
    "mergers",
  ]
}
