This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DATALAB-2551
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
The following commit(s) were added to refs/heads/DATALAB-2551 by this push:
new 60e5b1733 [DATALAB-2551]: changed azure tf default ami
60e5b1733 is described below
commit 60e5b17339ab6bd8cdfda96b81e55bf08505257b
Author: leonidfrolov <[email protected]>
AuthorDate: Fri May 20 12:55:59 2022 +0300
[DATALAB-2551]: changed azure tf default ami
---
.../terraform/azure/endpoint/main/instance.tf | 6 +++---
.../terraform/azure/endpoint/main/variables.tf | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git
a/infrastructure-provisioning/terraform/azure/endpoint/main/instance.tf
b/infrastructure-provisioning/terraform/azure/endpoint/main/instance.tf
index 82c1497bb..f5867252b 100644
--- a/infrastructure-provisioning/terraform/azure/endpoint/main/instance.tf
+++ b/infrastructure-provisioning/terraform/azure/endpoint/main/instance.tf
@@ -37,9 +37,9 @@ resource "azurerm_virtual_machine" "endpoint_instance" {
delete_os_disk_on_termination = true
storage_image_reference {
- publisher = element(split("_", var.ami),0)
- offer = element(split("_", var.ami),1)
- sku = element(split("_", var.ami),2)
+ publisher = element(split(":", var.ami),0)
+ offer = element(split(":", var.ami),1)
+ sku = element(split(":", var.ami),2)
version = "latest"
}
storage_os_disk {
diff --git
a/infrastructure-provisioning/terraform/azure/endpoint/main/variables.tf
b/infrastructure-provisioning/terraform/azure/endpoint/main/variables.tf
index ed835f4e0..98605479a 100644
--- a/infrastructure-provisioning/terraform/azure/endpoint/main/variables.tf
+++ b/infrastructure-provisioning/terraform/azure/endpoint/main/variables.tf
@@ -56,7 +56,7 @@ variable "subnet_cidr" {}
variable "endpoint_shape" {}
variable "ami" {
- default = "Canonical_UbuntuServer_20.04-LTS"
+ default = "Canonical:0001-com-ubuntu-server-focal:20_04-lts"
}
variable "endpoint_volume_size" {}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]