This is an automated email from the ASF dual-hosted git repository. lfrolov pushed a commit to branch DLAB-1595 in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit fd8506d5587691b36a30c635d6123c76d832cfe7 Author: leonidfrolov <[email protected]> AuthorDate: Thu Feb 27 16:42:59 2020 +0200 [DLAB-1595]: added endpoint network interface to security group association --- .../terraform/azure/endpoint/main/network.tf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/infrastructure-provisioning/terraform/azure/endpoint/main/network.tf b/infrastructure-provisioning/terraform/azure/endpoint/main/network.tf index ac782f9..bda422b 100644 --- a/infrastructure-provisioning/terraform/azure/endpoint/main/network.tf +++ b/infrastructure-provisioning/terraform/azure/endpoint/main/network.tf @@ -79,7 +79,6 @@ resource "azurerm_network_interface" "endpoint-nif" { name = local.endpoint_nif_name location = data.azurerm_resource_group.data-endpoint-resource-group.location resource_group_name = data.azurerm_resource_group.data-endpoint-resource-group.name - network_security_group_id = azurerm_network_security_group.enpoint-sg.id ip_configuration { name = "configuration" @@ -96,3 +95,8 @@ resource "azurerm_network_interface" "endpoint-nif" { "${var.service_base_name}-Tag" = local.endpoint_nif_name } } + +resource "azurerm_network_interface_security_group_association" "endpoint-nif-sg" { + network_interface_id = azurerm_network_interface.endpoint-nif.id + network_security_group_id = azurerm_network_security_group.enpoint-sg.id +} \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
