forked from Cloud-Direct-Monitoring/cd-monitoring-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
69 lines (51 loc) · 1.78 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
output "rbac_commands" {
value = var.rbac ? null : <<-EOF
az role assignment create --assignee ${azurerm_user_assigned_identity.github.principal_id} --role "Azure Deployment Stack Owner" \
--scope ${azurerm_resource_group.rg.id}
az role assignment create --assignee ${azurerm_user_assigned_identity.github.principal_id} --role "Monitoring Contributor" \
--scope ${azurerm_resource_group.rg.id}
az role assignment create --assignee ${azurerm_user_assigned_identity.github.principal_id} --role "Storage Blob Data Contributor" \
--scope ${azurerm_resource_group.rg.id}
az role assignment create --assignee ${azurerm_user_assigned_identity.github.principal_id} --role "Contributor" \
--scope ${var.workspace_id}
EOF
}
output "workspace_id" {
value = var.workspace_id
}
output "resource_group_id" {
value = azurerm_resource_group.rg.id
}
output "user_assigned_identity_id" {
value = azurerm_user_assigned_identity.github.id
}
output "user_assigned_identity_client_id" {
value = azurerm_user_assigned_identity.github.client_id
}
output "user_assigned_identity_principal_id" {
value = azurerm_user_assigned_identity.github.principal_id
}
output "storage_account_id" {
value = azurerm_storage_account.state.id
}
output "tenant_id" {
value = var.customer_tenant_id
}
output "subscription_id" {
value = var.customer_subscription_id
}
output "resource_group_name" {
value = azurerm_resource_group.rg.name
}
output "storage_account_name" {
value = azurerm_storage_account.state.name
}
output "federated_credential_subject" {
value = azurerm_federated_identity_credential.github.subject
}
output "client_repository" {
value = var.cd_github_repo_name
}
output "client_repository_url" {
value = "https://github.com/${var.cd_github_org_name}/${var.cd_github_repo_name}"
}