terraform {
  backend "s3" {
    bucket  = "prod-ecommerce-terraform-state"
    key     = "prod/iam/auth0-m2m-config/terraform.tfstate"
    region  = "us-east-1"
    encrypt = "true"
  }
}

# Make sure the AWS Account has the auth0-m2m-config policy
# to assume-auth0-m2m-config role
module "auth0_m2m_config" {
  source      = "git@github.com:theorchard/terraform-iam-policies.git//modules/auth0-m2m-config?ref=1.22.0"
  aws_region  = var.aws_region
  environment = var.environment
}
