provider "aws" {
  region = var.aws_region
}

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

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

  repository_name                  = var.service_name
  description                      = "Python library for OWS request context utility functions."
  default_code_owner               = var.default_code_owner
  application_family               = var.application_family
  branch_protection_enabled        = true
  branch_protection_enforce_admins = false
  archived_repository              = false
  github_code_owner_reviews        = false
  has_downloads                    = false
  homepage_url                     = "https://github.com/theorchard/${var.service_name}"
  required_status_checks           = []
}
