provider "aws" {
  region = var.aws_region
}

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

terraform {
  backend "s3" {
    bucket  = "orcd-terraform-state"
    key     = "prod/github/lambda-rdx-schema-registry/terraform.tfstate"
    region  = "us-east-1"
    encrypt = "true"
  }
}

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

  repository_name    = "lambda-rdx-schema-registry"
  description        = "Lambdas for collection subgraphs schemas and registry management."
  
  default_code_owner = "devops-squad"
  application_family = var.application_family
}
