/*
module "cross_account_notifications_role" {
  source      = "../../../modules/iam/roles/cross_account_role"
  name        = "${local.name_prefix}-cross_account_notifications_role"
  common_tags = local.common_tags
  require_mfa = false
  principal_list = [
    format("arn:aws:iam::%s:role/${var.platform["prefix"]}-delphi-dae-s3-consumer-events-distribution-lambda-role", module.aws_accounts_list.accounts["gdb-delphi-prod"]),
  ]
  policies_list = [
    module.notifications_s3_rw_policy.policy.arn,
    module.notifications_delphi_s3_ro_policy.policy.arn,
  ]
}

module "notifications_s3_rw_policy" {
  source = "../../../modules/iam/policies/s3/buckets_rw"

  name        = "s3-crossaccount-notifications-rw"
  name_prefix = local.name_prefix

  bucket_masks = [
    module.rti_notifications_bucket.bucket.id,
  ]
}

module "notifications_delphi_s3_ro_policy" {
  source      = "../../../modules/iam/policies/s3/buckets_ro"
  name        = "s3-delphi-notifications-ro"
  name_prefix = local.name_prefix

  bucket_masks = [
    "${local.env_prefix}-delphi-notifications"
  ]
}
*/
