forked from smaftoul/terraform-github-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
89 lines (72 loc) · 3.24 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# ----------------------------------------------------------------------------------------------------------------------
# OUTPUT CALCULATED VARIABLES (prefer full objects)
# ----------------------------------------------------------------------------------------------------------------------
output "full_name" {
value = github_repository.repository.full_name
description = "A string of the form 'orgname/reponame'."
}
output "html_url" {
value = github_repository.repository.html_url
description = "URL to the repository on the web."
}
output "ssh_clone_url" {
value = github_repository.repository.ssh_clone_url
description = "URL that can be provided to git clone to clone the repository via SSH."
}
output "http_clone_url" {
value = github_repository.repository.http_clone_url
description = "URL that can be provided to git clone to clone the repository via HTTPS."
}
output "git_clone_url" {
value = github_repository.repository.git_clone_url
description = "URL that can be provided to git clone to clone the repository anonymously via the git protocol."
}
# ----------------------------------------------------------------------------------------------------------------------
# OUTPUT ALL RESOURCES AS FULL OBJECTS
# ----------------------------------------------------------------------------------------------------------------------
output "repository" {
value = github_repository.repository
description = "All attributes and arguments as returned by the github_repository resource."
}
output "branches" {
value = github_branch.branch
description = "A map of branch objects keyed by branch name."
}
output "collaborators" {
value = github_repository_collaborator.collaborator
description = "A map of collaborator objects keyed by collaborator.name."
}
output "projects" {
value = github_repository_project.repository_project
description = "A map of projects keyed by project input id."
}
output "issue_labels" {
value = github_issue_label.label
description = "A map of issue labels keyed by label input id or name."
}
locals {
deploy_keys_output = merge({
for i, d in github_repository_deploy_key.deploy_key_computed :
lookup(local.deploy_keys_computed_temp[i], "id", md5(d.key)) => d
}, github_repository_deploy_key.deploy_key)
}
output "deploy_keys" {
value = local.deploy_keys_output
description = "A map of deploy keys keyed by input id."
}
output "webhooks" {
value = github_repository_webhook.repository_webhook
sensitive = true
description = "All attributes and arguments as returned by the github_repository_webhook resource."
}
output "secrets" {
value = [for secret in github_actions_secret.repository_secret : secret.secret_name]
description = "List of secrets available."
}
output "app_installations" {
value = github_app_installation_repository.app_installation_repository
description = "A map of deploy app installations keyed by installation id."
}
# ----------------------------------------------------------------------------------------------------------------------
# OUTPUT MODULE CONFIGURATION
# ----------------------------------------------------------------------------------------------------------------------