provider "aws" {
  region = var.aws_region
}

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

module "group_with_attachments" {
  source = "git@github.com:theorchard/terraform-iam-policies.git//modules/groups?ref=1.5.5"

  group_name = "content-review-squad"
  users = [
    "bburton",
    "defanov",
    "dslabozhanin",
    "ingaku",
    "jmlcoch",
    "jzheng",
    "lseal",
    "rkhandeparkar",
    "tmartino",
    "jdiaz",
    "npatel", # to access OS index in qa.
    "vleung",
  ]
  application_families_to_access = [
    "content-review",
    "assets",
    "product-builder",
    "php-monolith"
  ]
}
