provider "aws" {
  region = var.aws_region
}

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

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


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

  repository_name           = "dra-performanceclearance-service"
  application_family        = "digsys"
  description               = "A Spring Boot microservice that calculates performance resultant clearance data, storing results in MongoDB "
  default_code_owner        = "digital-systems-dra"
  github_code_owner_reviews = true
}
