provider "aws" {
  region = var.aws_region
}

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

module "github_repositories" {
  source                     = "git@github.com:theorchard/terraform-github.git//?ref=6.0.0"
  repository_name            = "lambda-publishing-changelog"
  description                = "Lambda for Publishing Changelog"
  default_code_owner         = "collections-publishing-and-compositions"
  application_family         = var.application_family
  homepage_url               = "https://github.com/theorchard/lambda-publishing-changelog"
  branch_protection_patterns = ["master"]
}
