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

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

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

  repository_name                  = var.service_name
  description                      = "dbt Core transformations for Shopify data ingested from multiple sources and unified in one model for the Fansifter app"
  application_family               = var.application_family
  default_code_owner               = var.default_code_owner
  github_code_owner_reviews        = true
}
