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 dcadd6912 [DATALAB-2551]: fixed some azure terraform errors
dcadd6912 is described below
commit dcadd6912a2b52ee3f9979480b49dbcc335f407c
Author: leonidfrolov <[email protected]>
AuthorDate: Fri May 20 12:11:09 2022 +0300
[DATALAB-2551]: fixed some azure terraform errors
---
.../terraform/azure/endpoint/main/network.tf | 2 +-
infrastructure-provisioning/terraform/azure/endpoint/main/sg.tf | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git
a/infrastructure-provisioning/terraform/azure/endpoint/main/network.tf
b/infrastructure-provisioning/terraform/azure/endpoint/main/network.tf
index 738f062df..85c9d73de 100644
--- a/infrastructure-provisioning/terraform/azure/endpoint/main/network.tf
+++ b/infrastructure-provisioning/terraform/azure/endpoint/main/network.tf
@@ -52,7 +52,7 @@ resource "azurerm_subnet" "endpoint-subnet" {
name = local.endpoint_subnet_name
resource_group_name =
data.azurerm_resource_group.data-endpoint-resource-group.name
virtual_network_name =
data.azurerm_virtual_network.data-endpoint-network.name
- address_prefix = var.subnet_cidr
+ address_prefixes = [var.subnet_cidr]
}
data "azurerm_subnet" "data-endpoint-subnet" {
diff --git a/infrastructure-provisioning/terraform/azure/endpoint/main/sg.tf
b/infrastructure-provisioning/terraform/azure/endpoint/main/sg.tf
index 08984f379..8befe80b4 100644
--- a/infrastructure-provisioning/terraform/azure/endpoint/main/sg.tf
+++ b/infrastructure-provisioning/terraform/azure/endpoint/main/sg.tf
@@ -40,7 +40,7 @@ resource "azurerm_network_security_rule" "inbound-1" {
source_port_range = "*"
destination_address_prefix = "*"
destination_port_range = "22"
- protocol = "TCP"
+ protocol = "Tcp"
}
resource "azurerm_network_security_rule" "inbound-2" {
@@ -54,7 +54,7 @@ resource "azurerm_network_security_rule" "inbound-2" {
source_port_range = "*"
destination_address_prefix = "*"
destination_port_range = "8084"
- protocol = "TCP"
+ protocol = "Tcp"
}
resource "azurerm_network_security_rule" "inbound-3" {
@@ -68,7 +68,7 @@ resource "azurerm_network_security_rule" "inbound-3" {
source_port_range = "*"
destination_address_prefix = "*"
destination_port_range = "8088"
- protocol = "TCP"
+ protocol = "Tcp"
}
resource "azurerm_network_security_rule" "outbound-1" {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]