Skip to content

Commit 2ef5c27

Browse files
feat: Add IAM role name to the outputs (#37)
Resolves #36
1 parent d5f4644 commit 2ef5c27

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

outputs.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,9 @@ output "iam_role_arn" {
1717
description = "ARN of the IAM role."
1818
value = var.enabled ? aws_iam_role.github[0].arn : ""
1919
}
20+
21+
output "iam_role_name" {
22+
depends_on = [aws_iam_role.github]
23+
description = "Name of the IAM role."
24+
value = var.enabled ? aws_iam_role.github[0].name : ""
25+
}

0 commit comments

Comments
 (0)