forked from mineiros-io/terraform-github-team
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
41 lines (33 loc) · 1.28 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# ------------------------------------------------------------------------------
# OUTPUT CALCULATED VARIABLES (prefer full objects)
# ------------------------------------------------------------------------------
output "id" {
description = "The ID of the team."
value = try(github_team.team[0].id, null)
}
output "name" {
description = "The name of the team."
value = try(github_team.team[0].name, null)
}
output "slug" {
description = "The Slug of the team."
value = try(github_team.team[0].slug, null)
}
# ------------------------------------------------------------------------------
# OUTPUT ALL RESOURCES AS FULL OBJECTS
# ------------------------------------------------------------------------------
output "team" {
description = "The full team object."
value = one(github_team.team)
}
output "team_memberships" {
description = "A list of all team memberships."
value = github_team_membership.team_membership
}
output "team_repositories" {
description = "A list of all team repositories"
value = github_team_repository.team_repository
}
# ------------------------------------------------------------------------------
# OUTPUT MODULE CONFIGURATION
# ------------------------------------------------------------------------------