Skip to content

Resource: awsNetworkmanagerTransitGatewayPeering

Creates a peering connection between an AWS Cloud WAN core network and an AWS Transit Gateway.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.networkmanagerTransitGatewayPeering.NetworkmanagerTransitGatewayPeering(
  this,
  "example",
  {
    coreNetworkId: "${awscc_networkmanager_core_network.example.id}",
    transitGatewayArn: "${aws_ec2_transit_gateway.example.arn}",
  }
);

Argument Reference

The following arguments are supported:

  • coreNetworkId - (Required) The ID of a core network.
  • tags - (Optional) Key-value tags for the peering. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
  • transitGatewayArn - (Required) The ARN of the transit gateway for the peering request.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • arn - Peering Amazon Resource Name (ARN).
  • coreNetworkArn - The ARN of the core network.
  • edgeLocation - The edge location for the peer.
  • id - Peering ID.
  • ownerAccountId - The ID of the account owner.
  • peeringType - The type of peering. This will be TRANSIT_GATEWAY.
  • resourceArn - The resource ARN of the peer.
  • tagsAll - A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
  • transitGatewayPeeringAttachmentId - The ID of the transit gateway peering attachment.

Import

awsNetworkmanagerTransitGatewayPeering can be imported using the peering ID, e.g.

$ terraform import aws_networkmanager_transit_gateway_peering.example peering-444555aaabbb11223