output "read_only_policy_json" {
  value = join(
    ",",
    concat(
      data.aws_iam_policy_document.read_only.*.json,
      data.aws_iam_policy_document.read_only_mfa.*.json,
    ),
  )
}

output "power_user_policy_json" {
  value = join(
    ",",
    concat(
      data.aws_iam_policy_document.power_user.*.json,
      data.aws_iam_policy_document.power_user_mfa.*.json,
    ),
  )
}

output "admin_user_policy_json" {
  value = join(
    ",",
    concat(
      data.aws_iam_policy_document.admin_user.*.json,
      data.aws_iam_policy_document.admin_user_mfa.*.json
    )
  )
}

output "qa_user_policy_json" {
  value = join(
    ",",
    concat(
      data.aws_iam_policy_document.qa_user.*.json,
      data.aws_iam_policy_document.qa_user_mfa.*.json
    )
  )
}

output "self_credentials_management_policy_json" {
  value = data.aws_iam_policy_document.self_credentials_management_policy.json
}
