provider "aws" {
  region = var.aws_region
}

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

module "github_repositories" {
  source = "git@github.com:theorchard/terraform-github.git//?ref=4.0.0"
  repository_name                      = var.service_name
  description                          = "Lambda functions for Data Apps Authorizer. Owned by Data Platform. Snowflake Streamlit Authorizer"
  application_family                   = var.application_family
  default_code_owner                   = var.code_owner
}
