provider "aws" {
  region = var.aws_region
}

provider "github" {
  organization = var.github_organization
  app_auth {}
}

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

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

  repository_name        = "python-test-fixtures"
  description            = "Shared pytest fixtures for integration tests"
  default_code_owner     = "qa-automation-team"
  application_family     = var.application_family
  pull_request_bypassers = ["orchardci"]
  required_status_checks           = []
}
