Associates a link to a device. A device can be associated to multiple links and a link can be associated to multiple devices. The device and link must be in the same global network and the same site.
resource "aws_networkmanager_link_association" "example" {
global_network_id = aws_networkmanager_global_network.example.id
link_id = aws_networkmanager_link.example.id
device_id = aws_networkmanager_device.example.id
}
This resource supports the following arguments:
device_id
- (Required) The ID of the device.global_network_id
- (Required) The ID of the global network.link_id
- (Required) The ID of the link.This resource exports no additional attributes.
In Terraform v1.5.0 and later, use an import
block to import aws_networkmanager_link_association
using the global network ID, link ID and device ID. For example:
import {
to = aws_networkmanager_link_association.example
id = "global-network-0d47f6t230mz46dy4,link-444555aaabbb11223,device-07f6fd08867abc123"
}
Using terraform import
, import aws_networkmanager_link_association
using the global network ID, link ID and device ID. For example:
% terraform import aws_networkmanager_link_association.example global-network-0d47f6t230mz46dy4,link-444555aaabbb11223,device-07f6fd08867abc123