Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
stable-website
Go to file
 
 
Cannot retrieve contributors at this time
53 lines (38 sloc) 1.52 KB
layout page_title description
metalcloud
Metalcloud: instance_array_interface
Controls where an InstanceArray's Instances network interface will be connected.

metalcloud_infrastructure/instance_array/interface

An InstanceArrayInterface controls where an InstanceArray's Instances Network interface will be connected. It is part of an instance_array block. It is related to a network block.

Example usage

The following example shows two InstanceArrays, where each Instance has the 2nd interface (index 1) connected to the 'internet' network:

resource "metalcloud_infrastructure" "foo" {
    ...
    
    instance_array {
        ...
        interface{
            interface_index = 1
            network_label = "internet"
		}
    }

    instance_array {
        ...
        interface{
            interface_index = 1
            network_label = "internet"
		}
    }


    network{
			  network_type = "wan"
			  network_label = "internet"
	}
}

Argument Reference

interface_index (Required) The interface index. This index is typicaly the interface number as seen by the OS but it is not guaranteed. However the index will stay the same across restarts but not necessarily across migrations. network_label (Required) The Network (label) to which the interface is to be connected by reconfiguring the network fabric.

Attributes

network_id (computed) The ID of the attached network.