output "role_arn" { description = "The role GitHub Actions assumes." value = aws_iam_role.github.arn } output "pod_role_arn" { description = "The role pods using the named service account receive, when a cluster was given." value = var.eks_cluster_name == "" ? null : aws_iam_role.pod[0].arn } output "verify" { description = "How to prove only the named subjects can sign in." value = <<-EOT Run a workflow with id-token: write and aws-actions/configure-aws-credentials from an allowed branch or environment: aws sts get-caller-identity shows ${aws_iam_role.github.arn}. Run it from any other branch: the sign-in fails with Not authorized to perform sts:AssumeRoleWithWebIdentity. In CloudTrail, each AssumeRoleWithWebIdentity event names the repository and branch in its subject. EOT }