provider "aws" {
  region = var.aws_region
}

# Terraform backends cannot contain interpolations
terraform {
  backend "s3" {
    bucket  = "orcd-terraform-state"
    key     = "prod/iam/groups/accounting-reports/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.20.0"

  group_name = "accounting-reports"
  users = sort([
    "jkass",
    "tmoin",
  ])

  application_families_to_access = []


  iam_roles_to_access = [
    "arn:aws:iam::989790945997:role/accounting-reports-role"
  ]
}
