provider "aws" {
  region = var.aws_region
}

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

module "github_repositories" {
  source = "git@github.com:theorchard/terraform-github.git//?ref=5.0.0"
  description        = "Orchard web service for resolving IP addresses to location"
  repository_name    = var.service_name
  application_family = "fansifter"
  default_code_owner = "fansifter"
  github_code_owner_reviews = true
  has_downloads       = false
  archived_repository = true
}
