This is an automated email from the ASF dual-hosted git repository.
omartushevskyi pushed a commit to branch DLAB-1467
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/DLAB-1467 by this push:
new db9264d [DLAB-1467]: Added terraform scripts for deploying DLab
endpoint
db9264d is described below
commit db9264d9ae57ca9fed61a362704cb5060ce4b0bb
Author: Oleh Martushevskyi <[email protected]>
AuthorDate: Tue Feb 4 11:41:06 2020 +0200
[DLAB-1467]: Added terraform scripts for deploying DLab endpoint
---
.../terraform/azure/endpoint/main/instance.tf | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git
a/infrastructure-provisioning/terraform/azure/endpoint/main/instance.tf
b/infrastructure-provisioning/terraform/azure/endpoint/main/instance.tf
index 6cadd36..545def7 100644
--- a/infrastructure-provisioning/terraform/azure/endpoint/main/instance.tf
+++ b/infrastructure-provisioning/terraform/azure/endpoint/main/instance.tf
@@ -22,7 +22,6 @@
locals {
endpoint_instance_name =
"${var.service_base_name}-${var.endpoint_id}-endpoint"
endpoint_instance_disk_name =
"${var.service_base_name}-${var.endpoint_id}-endpoint-disk"
- endpoimt_image = split(var.ami, "_")
}
data "tls_public_key" "enpoint_key" {
@@ -38,9 +37,9 @@ resource "azurerm_virtual_machine" "endpoint_instance" {
delete_os_disk_on_termination = true
storage_image_reference {
- publisher = local.endpoimt_image[0]
- offer = local.endpoimt_image[1]
- sku = local.endpoimt_image[2]
+ publisher = element(split("_", var.ami),0)
+ offer = element(split("_", var.ami),1)
+ sku = element(split("_", var.ami),2)
version = "latest"
}
storage_os_disk {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]