forked from testdouble/azure-blob
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutput.tf
30 lines (26 loc) · 799 Bytes
/
output.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
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
}