Creates a connection between two devices. The devices can be a physical or virtual appliance that connects to a third-party appliance in a VPC, or a physical appliance that connects to another physical appliance in an on-premises network.
resource "aws_networkmanager_connection" "example" {
global_network_id = aws_networkmanager_global_network.example.id
device_id = aws_networkmanager_device.example1.id
connected_device_id = aws_networkmanager_device.example2.id
}
This resource supports the following arguments:
connected_device_id
- (Required) The ID of the second device in the connection.connected_link_id
- (Optional) The ID of the link for the second device.description
- (Optional) A description of the connection.device_id
- (Required) The ID of the first device in the connection.global_network_id
- (Required) The ID of the global network.link_id
- (Optional) The ID of the link for the first device.tags
- (Optional) Key-value tags for the connection. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.This resource exports the following attributes in addition to the arguments above:
arn
- The Amazon Resource Name (ARN) of the connection.tags_all
- A map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.In Terraform v1.5.0 and later, use an import
block to import aws_networkmanager_connection
using the connection ARN. For example:
import {
to = aws_networkmanager_connection.example
id = "arn:aws:networkmanager::123456789012:device/global-network-0d47f6t230mz46dy4/connection-07f6fd08867abc123"
}
Using terraform import
, import aws_networkmanager_connection
using the connection ARN. For example:
% terraform import aws_networkmanager_connection.example arn:aws:networkmanager::123456789012:device/global-network-0d47f6t230mz46dy4/connection-07f6fd08867abc123