-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathoutput.tf
More file actions
50 lines (41 loc) · 1.23 KB
/
output.tf
File metadata and controls
50 lines (41 loc) · 1.23 KB
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
output "devenv_local_nix" {
sensitive = true
value = <<EOT
{pkgs, lib, ...}:{
env = {
AZURE_ACCOUNT_NAME = "${azurerm_storage_account.main.name}";
AZURE_ACCESS_KEY = "${azurerm_storage_account.main.primary_access_key}";
AZURE_PRIVATE_CONTAINER = "${azurerm_storage_container.private.name}";
AZURE_PUBLIC_CONTAINER = "${azurerm_storage_container.public.name}";
AZURE_PRINCIPAL_ID = "${azurerm_user_assigned_identity.vm.principal_id}";
};
}
EOT
}
output "vm_ip" {
value = var.create_vm ? azurerm_public_ip.main[0].ip_address : ""
}
output "vm_username" {
value = var.vm_username
}
output "app_service_app_name" {
value = var.create_app_service ? azurerm_linux_web_app.main[0].name : ""
}
output "resource_group" {
value = azurerm_resource_group.main.name
}
output "aks_cluster_name" {
value = var.create_aks ? azurerm_kubernetes_cluster.main[0].name : ""
}
output "aks_ssh_ip" {
value = try(kubernetes_service.ssh[0].status[0].load_balancer[0].ingress[0].ip, "")
}
output "aks_ssh_username" {
value = var.aks_ssh_username
}
output "aks_workload_identity_client_id" {
value = azurerm_user_assigned_identity.vm.client_id
}
output "azure_tenant_id" {
value = azurerm_user_assigned_identity.vm.tenant_id
}