aztfmod / terraform-azurerm-caf

Terraform supermodule for the Terraform platform engineering for Azure
https://aztfmod.github.io/documentation/
MIT License
551 stars 692 forks source link

Enable network interface to be created independently #570

Open seanlok opened 3 years ago

seanlok commented 3 years ago

Currently, NIC only be able to be created within each of the component like load balancer and virtual machine. It will be great if we have support to create an NIC that is independent from the resources so that NIC can be reused in some cases.

New module is required and enhancement from the virtual machine networking_interfaces will be required to support this initially.

Remote Landing zone support is probably required in virtual machine with additional key reference

networking_interfaces = {
      nic0 = {
        lz_key = ...
        nic_key = ...
      }
    }

There are existing TF module support NIC creation independently: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/network_interface

arnaudlh commented 3 years ago

@seanlok do you have time to work on it or should I check to queue it in the team?