Resource: aws_networkmanager_link_association

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.

Example Usage

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
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports no additional attributes.

Import

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