1. Packages
  2. AWS
  3. API Docs
  4. networkmanager
  5. ConnectPeer
AWS v7.2.0 published on Thursday, Jul 31, 2025 by Pulumi

aws.networkmanager.ConnectPeer

Explore with Pulumi AI

aws logo
AWS v7.2.0 published on Thursday, Jul 31, 2025 by Pulumi

    Manages an AWS Network Manager Connect Peer.

    Use this resource to create a Connect peer in AWS Network Manager. Connect peers establish BGP sessions with your on-premises networks through Connect attachments, enabling dynamic routing between your core network and external networks.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.networkmanager.VpcAttachment("example", {
        subnetArns: exampleAwsSubnet.map(__item => __item.arn),
        coreNetworkId: exampleAwsccNetworkmanagerCoreNetwork.id,
        vpcArn: exampleAwsVpc.arn,
    });
    const exampleConnectAttachment = new aws.networkmanager.ConnectAttachment("example", {
        coreNetworkId: exampleAwsccNetworkmanagerCoreNetwork.id,
        transportAttachmentId: example.id,
        edgeLocation: example.edgeLocation,
        options: {
            protocol: "GRE",
        },
    });
    const exampleConnectPeer = new aws.networkmanager.ConnectPeer("example", {
        connectAttachmentId: exampleConnectAttachment.id,
        peerAddress: "127.0.0.1",
        bgpOptions: {
            peerAsn: 65000,
        },
        insideCidrBlocks: ["172.16.0.0/16"],
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.networkmanager.VpcAttachment("example",
        subnet_arns=[__item["arn"] for __item in example_aws_subnet],
        core_network_id=example_awscc_networkmanager_core_network["id"],
        vpc_arn=example_aws_vpc["arn"])
    example_connect_attachment = aws.networkmanager.ConnectAttachment("example",
        core_network_id=example_awscc_networkmanager_core_network["id"],
        transport_attachment_id=example.id,
        edge_location=example.edge_location,
        options={
            "protocol": "GRE",
        })
    example_connect_peer = aws.networkmanager.ConnectPeer("example",
        connect_attachment_id=example_connect_attachment.id,
        peer_address="127.0.0.1",
        bgp_options={
            "peer_asn": 65000,
        },
        inside_cidr_blocks=["172.16.0.0/16"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/networkmanager"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
    var splat0 []interface{}
    for _, val0 := range exampleAwsSubnet {
    splat0 = append(splat0, val0.Arn)
    }
    example, err := networkmanager.NewVpcAttachment(ctx, "example", &networkmanager.VpcAttachmentArgs{
    SubnetArns: toPulumiArray(splat0),
    CoreNetworkId: pulumi.Any(exampleAwsccNetworkmanagerCoreNetwork.Id),
    VpcArn: pulumi.Any(exampleAwsVpc.Arn),
    })
    if err != nil {
    return err
    }
    exampleConnectAttachment, err := networkmanager.NewConnectAttachment(ctx, "example", &networkmanager.ConnectAttachmentArgs{
    CoreNetworkId: pulumi.Any(exampleAwsccNetworkmanagerCoreNetwork.Id),
    TransportAttachmentId: example.ID(),
    EdgeLocation: example.EdgeLocation,
    Options: &networkmanager.ConnectAttachmentOptionsArgs{
    Protocol: pulumi.String("GRE"),
    },
    })
    if err != nil {
    return err
    }
    _, err = networkmanager.NewConnectPeer(ctx, "example", &networkmanager.ConnectPeerArgs{
    ConnectAttachmentId: exampleConnectAttachment.ID(),
    PeerAddress: pulumi.String("127.0.0.1"),
    BgpOptions: &networkmanager.ConnectPeerBgpOptionsArgs{
    PeerAsn: pulumi.Int(65000),
    },
    InsideCidrBlocks: pulumi.StringArray{
    pulumi.String("172.16.0.0/16"),
    },
    })
    if err != nil {
    return err
    }
    return nil
    })
    }
    func toPulumiArray(arr []) pulumi.Array {
    var pulumiArr pulumi.Array
    for _, v := range arr {
    pulumiArr = append(pulumiArr, pulumi.(v))
    }
    return pulumiArr
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.NetworkManager.VpcAttachment("example", new()
        {
            SubnetArns = exampleAwsSubnet.Select(__item => __item.Arn).ToList(),
            CoreNetworkId = exampleAwsccNetworkmanagerCoreNetwork.Id,
            VpcArn = exampleAwsVpc.Arn,
        });
    
        var exampleConnectAttachment = new Aws.NetworkManager.ConnectAttachment("example", new()
        {
            CoreNetworkId = exampleAwsccNetworkmanagerCoreNetwork.Id,
            TransportAttachmentId = example.Id,
            EdgeLocation = example.EdgeLocation,
            Options = new Aws.NetworkManager.Inputs.ConnectAttachmentOptionsArgs
            {
                Protocol = "GRE",
            },
        });
    
        var exampleConnectPeer = new Aws.NetworkManager.ConnectPeer("example", new()
        {
            ConnectAttachmentId = exampleConnectAttachment.Id,
            PeerAddress = "127.0.0.1",
            BgpOptions = new Aws.NetworkManager.Inputs.ConnectPeerBgpOptionsArgs
            {
                PeerAsn = 65000,
            },
            InsideCidrBlocks = new[]
            {
                "172.16.0.0/16",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.networkmanager.VpcAttachment;
    import com.pulumi.aws.networkmanager.VpcAttachmentArgs;
    import com.pulumi.aws.networkmanager.ConnectAttachment;
    import com.pulumi.aws.networkmanager.ConnectAttachmentArgs;
    import com.pulumi.aws.networkmanager.inputs.ConnectAttachmentOptionsArgs;
    import com.pulumi.aws.networkmanager.ConnectPeer;
    import com.pulumi.aws.networkmanager.ConnectPeerArgs;
    import com.pulumi.aws.networkmanager.inputs.ConnectPeerBgpOptionsArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new VpcAttachment("example", VpcAttachmentArgs.builder()
                .subnetArns(exampleAwsSubnet.stream().map(element -> element.arn()).collect(toList()))
                .coreNetworkId(exampleAwsccNetworkmanagerCoreNetwork.id())
                .vpcArn(exampleAwsVpc.arn())
                .build());
    
            var exampleConnectAttachment = new ConnectAttachment("exampleConnectAttachment", ConnectAttachmentArgs.builder()
                .coreNetworkId(exampleAwsccNetworkmanagerCoreNetwork.id())
                .transportAttachmentId(example.id())
                .edgeLocation(example.edgeLocation())
                .options(ConnectAttachmentOptionsArgs.builder()
                    .protocol("GRE")
                    .build())
                .build());
    
            var exampleConnectPeer = new ConnectPeer("exampleConnectPeer", ConnectPeerArgs.builder()
                .connectAttachmentId(exampleConnectAttachment.id())
                .peerAddress("127.0.0.1")
                .bgpOptions(ConnectPeerBgpOptionsArgs.builder()
                    .peerAsn(65000)
                    .build())
                .insideCidrBlocks("172.16.0.0/16")
                .build());
    
        }
    }
    
    Example coming soon!
    

    Usage with attachment accepter

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.networkmanager.VpcAttachment("example", {
        subnetArns: exampleAwsSubnet.map(__item => __item.arn),
        coreNetworkId: exampleAwsccNetworkmanagerCoreNetwork.id,
        vpcArn: exampleAwsVpc.arn,
    });
    const exampleAttachmentAccepter = new aws.networkmanager.AttachmentAccepter("example", {
        attachmentId: example.id,
        attachmentType: example.attachmentType,
    });
    const exampleConnectAttachment = new aws.networkmanager.ConnectAttachment("example", {
        coreNetworkId: exampleAwsccNetworkmanagerCoreNetwork.id,
        transportAttachmentId: example.id,
        edgeLocation: example.edgeLocation,
        options: {
            protocol: "GRE",
        },
    }, {
        dependsOn: [exampleAttachmentAccepter],
    });
    const example2 = new aws.networkmanager.AttachmentAccepter("example2", {
        attachmentId: exampleConnectAttachment.id,
        attachmentType: exampleConnectAttachment.attachmentType,
    });
    const exampleConnectPeer = new aws.networkmanager.ConnectPeer("example", {
        connectAttachmentId: exampleConnectAttachment.id,
        peerAddress: "127.0.0.1",
        bgpOptions: {
            peerAsn: 65500,
        },
        insideCidrBlocks: ["172.16.0.0/16"],
    }, {
        dependsOn: [example2],
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.networkmanager.VpcAttachment("example",
        subnet_arns=[__item["arn"] for __item in example_aws_subnet],
        core_network_id=example_awscc_networkmanager_core_network["id"],
        vpc_arn=example_aws_vpc["arn"])
    example_attachment_accepter = aws.networkmanager.AttachmentAccepter("example",
        attachment_id=example.id,
        attachment_type=example.attachment_type)
    example_connect_attachment = aws.networkmanager.ConnectAttachment("example",
        core_network_id=example_awscc_networkmanager_core_network["id"],
        transport_attachment_id=example.id,
        edge_location=example.edge_location,
        options={
            "protocol": "GRE",
        },
        opts = pulumi.ResourceOptions(depends_on=[example_attachment_accepter]))
    example2 = aws.networkmanager.AttachmentAccepter("example2",
        attachment_id=example_connect_attachment.id,
        attachment_type=example_connect_attachment.attachment_type)
    example_connect_peer = aws.networkmanager.ConnectPeer("example",
        connect_attachment_id=example_connect_attachment.id,
        peer_address="127.0.0.1",
        bgp_options={
            "peer_asn": 65500,
        },
        inside_cidr_blocks=["172.16.0.0/16"],
        opts = pulumi.ResourceOptions(depends_on=[example2]))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/networkmanager"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
    var splat0 []interface{}
    for _, val0 := range exampleAwsSubnet {
    splat0 = append(splat0, val0.Arn)
    }
    example, err := networkmanager.NewVpcAttachment(ctx, "example", &networkmanager.VpcAttachmentArgs{
    SubnetArns: toPulumiArray(splat0),
    CoreNetworkId: pulumi.Any(exampleAwsccNetworkmanagerCoreNetwork.Id),
    VpcArn: pulumi.Any(exampleAwsVpc.Arn),
    })
    if err != nil {
    return err
    }
    exampleAttachmentAccepter, err := networkmanager.NewAttachmentAccepter(ctx, "example", &networkmanager.AttachmentAccepterArgs{
    AttachmentId: example.ID(),
    AttachmentType: example.AttachmentType,
    })
    if err != nil {
    return err
    }
    exampleConnectAttachment, err := networkmanager.NewConnectAttachment(ctx, "example", &networkmanager.ConnectAttachmentArgs{
    CoreNetworkId: pulumi.Any(exampleAwsccNetworkmanagerCoreNetwork.Id),
    TransportAttachmentId: example.ID(),
    EdgeLocation: example.EdgeLocation,
    Options: &networkmanager.ConnectAttachmentOptionsArgs{
    Protocol: pulumi.String("GRE"),
    },
    }, pulumi.DependsOn([]pulumi.Resource{
    exampleAttachmentAccepter,
    }))
    if err != nil {
    return err
    }
    example2, err := networkmanager.NewAttachmentAccepter(ctx, "example2", &networkmanager.AttachmentAccepterArgs{
    AttachmentId: exampleConnectAttachment.ID(),
    AttachmentType: exampleConnectAttachment.AttachmentType,
    })
    if err != nil {
    return err
    }
    _, err = networkmanager.NewConnectPeer(ctx, "example", &networkmanager.ConnectPeerArgs{
    ConnectAttachmentId: exampleConnectAttachment.ID(),
    PeerAddress: pulumi.String("127.0.0.1"),
    BgpOptions: &networkmanager.ConnectPeerBgpOptionsArgs{
    PeerAsn: pulumi.Int(65500),
    },
    InsideCidrBlocks: pulumi.StringArray{
    pulumi.String("172.16.0.0/16"),
    },
    }, pulumi.DependsOn([]pulumi.Resource{
    example2,
    }))
    if err != nil {
    return err
    }
    return nil
    })
    }
    func toPulumiArray(arr []) pulumi.Array {
    var pulumiArr pulumi.Array
    for _, v := range arr {
    pulumiArr = append(pulumiArr, pulumi.(v))
    }
    return pulumiArr
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.NetworkManager.VpcAttachment("example", new()
        {
            SubnetArns = exampleAwsSubnet.Select(__item => __item.Arn).ToList(),
            CoreNetworkId = exampleAwsccNetworkmanagerCoreNetwork.Id,
            VpcArn = exampleAwsVpc.Arn,
        });
    
        var exampleAttachmentAccepter = new Aws.NetworkManager.AttachmentAccepter("example", new()
        {
            AttachmentId = example.Id,
            AttachmentType = example.AttachmentType,
        });
    
        var exampleConnectAttachment = new Aws.NetworkManager.ConnectAttachment("example", new()
        {
            CoreNetworkId = exampleAwsccNetworkmanagerCoreNetwork.Id,
            TransportAttachmentId = example.Id,
            EdgeLocation = example.EdgeLocation,
            Options = new Aws.NetworkManager.Inputs.ConnectAttachmentOptionsArgs
            {
                Protocol = "GRE",
            },
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                exampleAttachmentAccepter,
            },
        });
    
        var example2 = new Aws.NetworkManager.AttachmentAccepter("example2", new()
        {
            AttachmentId = exampleConnectAttachment.Id,
            AttachmentType = exampleConnectAttachment.AttachmentType,
        });
    
        var exampleConnectPeer = new Aws.NetworkManager.ConnectPeer("example", new()
        {
            ConnectAttachmentId = exampleConnectAttachment.Id,
            PeerAddress = "127.0.0.1",
            BgpOptions = new Aws.NetworkManager.Inputs.ConnectPeerBgpOptionsArgs
            {
                PeerAsn = 65500,
            },
            InsideCidrBlocks = new[]
            {
                "172.16.0.0/16",
            },
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                example2,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.networkmanager.VpcAttachment;
    import com.pulumi.aws.networkmanager.VpcAttachmentArgs;
    import com.pulumi.aws.networkmanager.AttachmentAccepter;
    import com.pulumi.aws.networkmanager.AttachmentAccepterArgs;
    import com.pulumi.aws.networkmanager.ConnectAttachment;
    import com.pulumi.aws.networkmanager.ConnectAttachmentArgs;
    import com.pulumi.aws.networkmanager.inputs.ConnectAttachmentOptionsArgs;
    import com.pulumi.aws.networkmanager.ConnectPeer;
    import com.pulumi.aws.networkmanager.ConnectPeerArgs;
    import com.pulumi.aws.networkmanager.inputs.ConnectPeerBgpOptionsArgs;
    import com.pulumi.resources.CustomResourceOptions;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new VpcAttachment("example", VpcAttachmentArgs.builder()
                .subnetArns(exampleAwsSubnet.stream().map(element -> element.arn()).collect(toList()))
                .coreNetworkId(exampleAwsccNetworkmanagerCoreNetwork.id())
                .vpcArn(exampleAwsVpc.arn())
                .build());
    
            var exampleAttachmentAccepter = new AttachmentAccepter("exampleAttachmentAccepter", AttachmentAccepterArgs.builder()
                .attachmentId(example.id())
                .attachmentType(example.attachmentType())
                .build());
    
            var exampleConnectAttachment = new ConnectAttachment("exampleConnectAttachment", ConnectAttachmentArgs.builder()
                .coreNetworkId(exampleAwsccNetworkmanagerCoreNetwork.id())
                .transportAttachmentId(example.id())
                .edgeLocation(example.edgeLocation())
                .options(ConnectAttachmentOptionsArgs.builder()
                    .protocol("GRE")
                    .build())
                .build(), CustomResourceOptions.builder()
                    .dependsOn(exampleAttachmentAccepter)
                    .build());
    
            var example2 = new AttachmentAccepter("example2", AttachmentAccepterArgs.builder()
                .attachmentId(exampleConnectAttachment.id())
                .attachmentType(exampleConnectAttachment.attachmentType())
                .build());
    
            var exampleConnectPeer = new ConnectPeer("exampleConnectPeer", ConnectPeerArgs.builder()
                .connectAttachmentId(exampleConnectAttachment.id())
                .peerAddress("127.0.0.1")
                .bgpOptions(ConnectPeerBgpOptionsArgs.builder()
                    .peerAsn(65500)
                    .build())
                .insideCidrBlocks("172.16.0.0/16")
                .build(), CustomResourceOptions.builder()
                    .dependsOn(example2)
                    .build());
    
        }
    }
    
    Example coming soon!
    

    Usage with a Tunnel-less Connect attachment

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.networkmanager.VpcAttachment("example", {
        subnetArns: exampleAwsSubnet.map(__item => __item.arn),
        coreNetworkId: exampleAwsccNetworkmanagerCoreNetwork.id,
        vpcArn: exampleAwsVpc.arn,
    });
    const exampleConnectAttachment = new aws.networkmanager.ConnectAttachment("example", {
        coreNetworkId: exampleAwsccNetworkmanagerCoreNetwork.id,
        transportAttachmentId: example.id,
        edgeLocation: example.edgeLocation,
        options: {
            protocol: "NO_ENCAP",
        },
    });
    const exampleConnectPeer = new aws.networkmanager.ConnectPeer("example", {
        connectAttachmentId: exampleConnectAttachment.id,
        peerAddress: "127.0.0.1",
        bgpOptions: {
            peerAsn: 65000,
        },
        subnetArn: example2.arn,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.networkmanager.VpcAttachment("example",
        subnet_arns=[__item["arn"] for __item in example_aws_subnet],
        core_network_id=example_awscc_networkmanager_core_network["id"],
        vpc_arn=example_aws_vpc["arn"])
    example_connect_attachment = aws.networkmanager.ConnectAttachment("example",
        core_network_id=example_awscc_networkmanager_core_network["id"],
        transport_attachment_id=example.id,
        edge_location=example.edge_location,
        options={
            "protocol": "NO_ENCAP",
        })
    example_connect_peer = aws.networkmanager.ConnectPeer("example",
        connect_attachment_id=example_connect_attachment.id,
        peer_address="127.0.0.1",
        bgp_options={
            "peer_asn": 65000,
        },
        subnet_arn=example2["arn"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/networkmanager"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
    var splat0 []interface{}
    for _, val0 := range exampleAwsSubnet {
    splat0 = append(splat0, val0.Arn)
    }
    example, err := networkmanager.NewVpcAttachment(ctx, "example", &networkmanager.VpcAttachmentArgs{
    SubnetArns: toPulumiArray(splat0),
    CoreNetworkId: pulumi.Any(exampleAwsccNetworkmanagerCoreNetwork.Id),
    VpcArn: pulumi.Any(exampleAwsVpc.Arn),
    })
    if err != nil {
    return err
    }
    exampleConnectAttachment, err := networkmanager.NewConnectAttachment(ctx, "example", &networkmanager.ConnectAttachmentArgs{
    CoreNetworkId: pulumi.Any(exampleAwsccNetworkmanagerCoreNetwork.Id),
    TransportAttachmentId: example.ID(),
    EdgeLocation: example.EdgeLocation,
    Options: &networkmanager.ConnectAttachmentOptionsArgs{
    Protocol: pulumi.String("NO_ENCAP"),
    },
    })
    if err != nil {
    return err
    }
    _, err = networkmanager.NewConnectPeer(ctx, "example", &networkmanager.ConnectPeerArgs{
    ConnectAttachmentId: exampleConnectAttachment.ID(),
    PeerAddress: pulumi.String("127.0.0.1"),
    BgpOptions: &networkmanager.ConnectPeerBgpOptionsArgs{
    PeerAsn: pulumi.Int(65000),
    },
    SubnetArn: pulumi.Any(example2.Arn),
    })
    if err != nil {
    return err
    }
    return nil
    })
    }
    func toPulumiArray(arr []) pulumi.Array {
    var pulumiArr pulumi.Array
    for _, v := range arr {
    pulumiArr = append(pulumiArr, pulumi.(v))
    }
    return pulumiArr
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.NetworkManager.VpcAttachment("example", new()
        {
            SubnetArns = exampleAwsSubnet.Select(__item => __item.Arn).ToList(),
            CoreNetworkId = exampleAwsccNetworkmanagerCoreNetwork.Id,
            VpcArn = exampleAwsVpc.Arn,
        });
    
        var exampleConnectAttachment = new Aws.NetworkManager.ConnectAttachment("example", new()
        {
            CoreNetworkId = exampleAwsccNetworkmanagerCoreNetwork.Id,
            TransportAttachmentId = example.Id,
            EdgeLocation = example.EdgeLocation,
            Options = new Aws.NetworkManager.Inputs.ConnectAttachmentOptionsArgs
            {
                Protocol = "NO_ENCAP",
            },
        });
    
        var exampleConnectPeer = new Aws.NetworkManager.ConnectPeer("example", new()
        {
            ConnectAttachmentId = exampleConnectAttachment.Id,
            PeerAddress = "127.0.0.1",
            BgpOptions = new Aws.NetworkManager.Inputs.ConnectPeerBgpOptionsArgs
            {
                PeerAsn = 65000,
            },
            SubnetArn = example2.Arn,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.networkmanager.VpcAttachment;
    import com.pulumi.aws.networkmanager.VpcAttachmentArgs;
    import com.pulumi.aws.networkmanager.ConnectAttachment;
    import com.pulumi.aws.networkmanager.ConnectAttachmentArgs;
    import com.pulumi.aws.networkmanager.inputs.ConnectAttachmentOptionsArgs;
    import com.pulumi.aws.networkmanager.ConnectPeer;
    import com.pulumi.aws.networkmanager.ConnectPeerArgs;
    import com.pulumi.aws.networkmanager.inputs.ConnectPeerBgpOptionsArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new VpcAttachment("example", VpcAttachmentArgs.builder()
                .subnetArns(exampleAwsSubnet.stream().map(element -> element.arn()).collect(toList()))
                .coreNetworkId(exampleAwsccNetworkmanagerCoreNetwork.id())
                .vpcArn(exampleAwsVpc.arn())
                .build());
    
            var exampleConnectAttachment = new ConnectAttachment("exampleConnectAttachment", ConnectAttachmentArgs.builder()
                .coreNetworkId(exampleAwsccNetworkmanagerCoreNetwork.id())
                .transportAttachmentId(example.id())
                .edgeLocation(example.edgeLocation())
                .options(ConnectAttachmentOptionsArgs.builder()
                    .protocol("NO_ENCAP")
                    .build())
                .build());
    
            var exampleConnectPeer = new ConnectPeer("exampleConnectPeer", ConnectPeerArgs.builder()
                .connectAttachmentId(exampleConnectAttachment.id())
                .peerAddress("127.0.0.1")
                .bgpOptions(ConnectPeerBgpOptionsArgs.builder()
                    .peerAsn(65000)
                    .build())
                .subnetArn(example2.arn())
                .build());
    
        }
    }
    
    Example coming soon!
    

    Create ConnectPeer Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ConnectPeer(name: string, args: ConnectPeerArgs, opts?: CustomResourceOptions);
    @overload
    def ConnectPeer(resource_name: str,
                    args: ConnectPeerArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def ConnectPeer(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    connect_attachment_id: Optional[str] = None,
                    peer_address: Optional[str] = None,
                    bgp_options: Optional[ConnectPeerBgpOptionsArgs] = None,
                    core_network_address: Optional[str] = None,
                    inside_cidr_blocks: Optional[Sequence[str]] = None,
                    subnet_arn: Optional[str] = None,
                    tags: Optional[Mapping[str, str]] = None)
    func NewConnectPeer(ctx *Context, name string, args ConnectPeerArgs, opts ...ResourceOption) (*ConnectPeer, error)
    public ConnectPeer(string name, ConnectPeerArgs args, CustomResourceOptions? opts = null)
    public ConnectPeer(String name, ConnectPeerArgs args)
    public ConnectPeer(String name, ConnectPeerArgs args, CustomResourceOptions options)
    
    type: aws:networkmanager:ConnectPeer
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ConnectPeerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ConnectPeerArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ConnectPeerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ConnectPeerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ConnectPeerArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var awsConnectPeerResource = new Aws.NetworkManager.ConnectPeer("awsConnectPeerResource", new()
    {
        ConnectAttachmentId = "string",
        PeerAddress = "string",
        BgpOptions = new Aws.NetworkManager.Inputs.ConnectPeerBgpOptionsArgs
        {
            PeerAsn = 0,
        },
        CoreNetworkAddress = "string",
        InsideCidrBlocks = new[]
        {
            "string",
        },
        SubnetArn = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := networkmanager.NewConnectPeer(ctx, "awsConnectPeerResource", &networkmanager.ConnectPeerArgs{
    	ConnectAttachmentId: pulumi.String("string"),
    	PeerAddress:         pulumi.String("string"),
    	BgpOptions: &networkmanager.ConnectPeerBgpOptionsArgs{
    		PeerAsn: pulumi.Int(0),
    	},
    	CoreNetworkAddress: pulumi.String("string"),
    	InsideCidrBlocks: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	SubnetArn: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var awsConnectPeerResource = new com.pulumi.aws.networkmanager.ConnectPeer("awsConnectPeerResource", com.pulumi.aws.networkmanager.ConnectPeerArgs.builder()
        .connectAttachmentId("string")
        .peerAddress("string")
        .bgpOptions(ConnectPeerBgpOptionsArgs.builder()
            .peerAsn(0)
            .build())
        .coreNetworkAddress("string")
        .insideCidrBlocks("string")
        .subnetArn("string")
        .tags(Map.of("string", "string"))
        .build());
    
    aws_connect_peer_resource = aws.networkmanager.ConnectPeer("awsConnectPeerResource",
        connect_attachment_id="string",
        peer_address="string",
        bgp_options={
            "peer_asn": 0,
        },
        core_network_address="string",
        inside_cidr_blocks=["string"],
        subnet_arn="string",
        tags={
            "string": "string",
        })
    
    const awsConnectPeerResource = new aws.networkmanager.ConnectPeer("awsConnectPeerResource", {
        connectAttachmentId: "string",
        peerAddress: "string",
        bgpOptions: {
            peerAsn: 0,
        },
        coreNetworkAddress: "string",
        insideCidrBlocks: ["string"],
        subnetArn: "string",
        tags: {
            string: "string",
        },
    });
    
    type: aws:networkmanager:ConnectPeer
    properties:
        bgpOptions:
            peerAsn: 0
        connectAttachmentId: string
        coreNetworkAddress: string
        insideCidrBlocks:
            - string
        peerAddress: string
        subnetArn: string
        tags:
            string: string
    

    ConnectPeer Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ConnectPeer resource accepts the following input properties:

    ConnectAttachmentId string
    ID of the connection attachment.
    PeerAddress string

    Connect peer address.

    The following arguments are optional:

    BgpOptions ConnectPeerBgpOptions
    Connect peer BGP options. See bgp_options for more information.
    CoreNetworkAddress string
    Connect peer core network address.
    InsideCidrBlocks List<string>
    Inside IP addresses used for BGP peering. Required when the Connect attachment protocol is GRE. See aws.networkmanager.ConnectAttachment for details.
    SubnetArn string
    Subnet ARN for the Connect peer. Required when the Connect attachment protocol is NO_ENCAP. See aws.networkmanager.ConnectAttachment for details.
    Tags Dictionary<string, string>
    Key-value tags for the attachment. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    ConnectAttachmentId string
    ID of the connection attachment.
    PeerAddress string

    Connect peer address.

    The following arguments are optional:

    BgpOptions ConnectPeerBgpOptionsArgs
    Connect peer BGP options. See bgp_options for more information.
    CoreNetworkAddress string
    Connect peer core network address.
    InsideCidrBlocks []string
    Inside IP addresses used for BGP peering. Required when the Connect attachment protocol is GRE. See aws.networkmanager.ConnectAttachment for details.
    SubnetArn string
    Subnet ARN for the Connect peer. Required when the Connect attachment protocol is NO_ENCAP. See aws.networkmanager.ConnectAttachment for details.
    Tags map[string]string
    Key-value tags for the attachment. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    connectAttachmentId String
    ID of the connection attachment.
    peerAddress String

    Connect peer address.

    The following arguments are optional:

    bgpOptions ConnectPeerBgpOptions
    Connect peer BGP options. See bgp_options for more information.
    coreNetworkAddress String
    Connect peer core network address.
    insideCidrBlocks List<String>
    Inside IP addresses used for BGP peering. Required when the Connect attachment protocol is GRE. See aws.networkmanager.ConnectAttachment for details.
    subnetArn String
    Subnet ARN for the Connect peer. Required when the Connect attachment protocol is NO_ENCAP. See aws.networkmanager.ConnectAttachment for details.
    tags Map<String,String>
    Key-value tags for the attachment. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    connectAttachmentId string
    ID of the connection attachment.
    peerAddress string

    Connect peer address.

    The following arguments are optional:

    bgpOptions ConnectPeerBgpOptions
    Connect peer BGP options. See bgp_options for more information.
    coreNetworkAddress string
    Connect peer core network address.
    insideCidrBlocks string[]
    Inside IP addresses used for BGP peering. Required when the Connect attachment protocol is GRE. See aws.networkmanager.ConnectAttachment for details.
    subnetArn string
    Subnet ARN for the Connect peer. Required when the Connect attachment protocol is NO_ENCAP. See aws.networkmanager.ConnectAttachment for details.
    tags {[key: string]: string}
    Key-value tags for the attachment. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    connect_attachment_id str
    ID of the connection attachment.
    peer_address str

    Connect peer address.

    The following arguments are optional:

    bgp_options ConnectPeerBgpOptionsArgs
    Connect peer BGP options. See bgp_options for more information.
    core_network_address str
    Connect peer core network address.
    inside_cidr_blocks Sequence[str]
    Inside IP addresses used for BGP peering. Required when the Connect attachment protocol is GRE. See aws.networkmanager.ConnectAttachment for details.
    subnet_arn str
    Subnet ARN for the Connect peer. Required when the Connect attachment protocol is NO_ENCAP. See aws.networkmanager.ConnectAttachment for details.
    tags Mapping[str, str]
    Key-value tags for the attachment. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    connectAttachmentId String
    ID of the connection attachment.
    peerAddress String

    Connect peer address.

    The following arguments are optional:

    bgpOptions Property Map
    Connect peer BGP options. See bgp_options for more information.
    coreNetworkAddress String
    Connect peer core network address.
    insideCidrBlocks List<String>
    Inside IP addresses used for BGP peering. Required when the Connect attachment protocol is GRE. See aws.networkmanager.ConnectAttachment for details.
    subnetArn String
    Subnet ARN for the Connect peer. Required when the Connect attachment protocol is NO_ENCAP. See aws.networkmanager.ConnectAttachment for details.
    tags Map<String>
    Key-value tags for the attachment. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ConnectPeer resource produces the following output properties:

    Arn string
    ARN of the Connect peer.
    Configurations List<ConnectPeerConfiguration>
    Configuration of the Connect peer.
    ConnectPeerId string
    ID of the Connect peer.
    CoreNetworkId string
    ID of a core network.
    CreatedAt string
    Timestamp when the Connect peer was created.
    EdgeLocation string
    Region where the peer is located.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    State of the Connect peer.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    Arn string
    ARN of the Connect peer.
    Configurations []ConnectPeerConfiguration
    Configuration of the Connect peer.
    ConnectPeerId string
    ID of the Connect peer.
    CoreNetworkId string
    ID of a core network.
    CreatedAt string
    Timestamp when the Connect peer was created.
    EdgeLocation string
    Region where the peer is located.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    State of the Connect peer.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn String
    ARN of the Connect peer.
    configurations List<ConnectPeerConfiguration>
    Configuration of the Connect peer.
    connectPeerId String
    ID of the Connect peer.
    coreNetworkId String
    ID of a core network.
    createdAt String
    Timestamp when the Connect peer was created.
    edgeLocation String
    Region where the peer is located.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    State of the Connect peer.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn string
    ARN of the Connect peer.
    configurations ConnectPeerConfiguration[]
    Configuration of the Connect peer.
    connectPeerId string
    ID of the Connect peer.
    coreNetworkId string
    ID of a core network.
    createdAt string
    Timestamp when the Connect peer was created.
    edgeLocation string
    Region where the peer is located.
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    State of the Connect peer.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn str
    ARN of the Connect peer.
    configurations Sequence[ConnectPeerConfiguration]
    Configuration of the Connect peer.
    connect_peer_id str
    ID of the Connect peer.
    core_network_id str
    ID of a core network.
    created_at str
    Timestamp when the Connect peer was created.
    edge_location str
    Region where the peer is located.
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    State of the Connect peer.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn String
    ARN of the Connect peer.
    configurations List<Property Map>
    Configuration of the Connect peer.
    connectPeerId String
    ID of the Connect peer.
    coreNetworkId String
    ID of a core network.
    createdAt String
    Timestamp when the Connect peer was created.
    edgeLocation String
    Region where the peer is located.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    State of the Connect peer.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Look up Existing ConnectPeer Resource

    Get an existing ConnectPeer resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ConnectPeerState, opts?: CustomResourceOptions): ConnectPeer
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            bgp_options: Optional[ConnectPeerBgpOptionsArgs] = None,
            configurations: Optional[Sequence[ConnectPeerConfigurationArgs]] = None,
            connect_attachment_id: Optional[str] = None,
            connect_peer_id: Optional[str] = None,
            core_network_address: Optional[str] = None,
            core_network_id: Optional[str] = None,
            created_at: Optional[str] = None,
            edge_location: Optional[str] = None,
            inside_cidr_blocks: Optional[Sequence[str]] = None,
            peer_address: Optional[str] = None,
            state: Optional[str] = None,
            subnet_arn: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None) -> ConnectPeer
    func GetConnectPeer(ctx *Context, name string, id IDInput, state *ConnectPeerState, opts ...ResourceOption) (*ConnectPeer, error)
    public static ConnectPeer Get(string name, Input<string> id, ConnectPeerState? state, CustomResourceOptions? opts = null)
    public static ConnectPeer get(String name, Output<String> id, ConnectPeerState state, CustomResourceOptions options)
    resources:  _:    type: aws:networkmanager:ConnectPeer    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Arn string
    ARN of the Connect peer.
    BgpOptions ConnectPeerBgpOptions
    Connect peer BGP options. See bgp_options for more information.
    Configurations List<ConnectPeerConfiguration>
    Configuration of the Connect peer.
    ConnectAttachmentId string
    ID of the connection attachment.
    ConnectPeerId string
    ID of the Connect peer.
    CoreNetworkAddress string
    Connect peer core network address.
    CoreNetworkId string
    ID of a core network.
    CreatedAt string
    Timestamp when the Connect peer was created.
    EdgeLocation string
    Region where the peer is located.
    InsideCidrBlocks List<string>
    Inside IP addresses used for BGP peering. Required when the Connect attachment protocol is GRE. See aws.networkmanager.ConnectAttachment for details.
    PeerAddress string

    Connect peer address.

    The following arguments are optional:

    State string
    State of the Connect peer.
    SubnetArn string
    Subnet ARN for the Connect peer. Required when the Connect attachment protocol is NO_ENCAP. See aws.networkmanager.ConnectAttachment for details.
    Tags Dictionary<string, string>
    Key-value tags for the attachment. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    Arn string
    ARN of the Connect peer.
    BgpOptions ConnectPeerBgpOptionsArgs
    Connect peer BGP options. See bgp_options for more information.
    Configurations []ConnectPeerConfigurationArgs
    Configuration of the Connect peer.
    ConnectAttachmentId string
    ID of the connection attachment.
    ConnectPeerId string
    ID of the Connect peer.
    CoreNetworkAddress string
    Connect peer core network address.
    CoreNetworkId string
    ID of a core network.
    CreatedAt string
    Timestamp when the Connect peer was created.
    EdgeLocation string
    Region where the peer is located.
    InsideCidrBlocks []string
    Inside IP addresses used for BGP peering. Required when the Connect attachment protocol is GRE. See aws.networkmanager.ConnectAttachment for details.
    PeerAddress string

    Connect peer address.

    The following arguments are optional:

    State string
    State of the Connect peer.
    SubnetArn string
    Subnet ARN for the Connect peer. Required when the Connect attachment protocol is NO_ENCAP. See aws.networkmanager.ConnectAttachment for details.
    Tags map[string]string
    Key-value tags for the attachment. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn String
    ARN of the Connect peer.
    bgpOptions ConnectPeerBgpOptions
    Connect peer BGP options. See bgp_options for more information.
    configurations List<ConnectPeerConfiguration>
    Configuration of the Connect peer.
    connectAttachmentId String
    ID of the connection attachment.
    connectPeerId String
    ID of the Connect peer.
    coreNetworkAddress String
    Connect peer core network address.
    coreNetworkId String
    ID of a core network.
    createdAt String
    Timestamp when the Connect peer was created.
    edgeLocation String
    Region where the peer is located.
    insideCidrBlocks List<String>
    Inside IP addresses used for BGP peering. Required when the Connect attachment protocol is GRE. See aws.networkmanager.ConnectAttachment for details.
    peerAddress String

    Connect peer address.

    The following arguments are optional:

    state String
    State of the Connect peer.
    subnetArn String
    Subnet ARN for the Connect peer. Required when the Connect attachment protocol is NO_ENCAP. See aws.networkmanager.ConnectAttachment for details.
    tags Map<String,String>
    Key-value tags for the attachment. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn string
    ARN of the Connect peer.
    bgpOptions ConnectPeerBgpOptions
    Connect peer BGP options. See bgp_options for more information.
    configurations ConnectPeerConfiguration[]
    Configuration of the Connect peer.
    connectAttachmentId string
    ID of the connection attachment.
    connectPeerId string
    ID of the Connect peer.
    coreNetworkAddress string
    Connect peer core network address.
    coreNetworkId string
    ID of a core network.
    createdAt string
    Timestamp when the Connect peer was created.
    edgeLocation string
    Region where the peer is located.
    insideCidrBlocks string[]
    Inside IP addresses used for BGP peering. Required when the Connect attachment protocol is GRE. See aws.networkmanager.ConnectAttachment for details.
    peerAddress string

    Connect peer address.

    The following arguments are optional:

    state string
    State of the Connect peer.
    subnetArn string
    Subnet ARN for the Connect peer. Required when the Connect attachment protocol is NO_ENCAP. See aws.networkmanager.ConnectAttachment for details.
    tags {[key: string]: string}
    Key-value tags for the attachment. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn str
    ARN of the Connect peer.
    bgp_options ConnectPeerBgpOptionsArgs
    Connect peer BGP options. See bgp_options for more information.
    configurations Sequence[ConnectPeerConfigurationArgs]
    Configuration of the Connect peer.
    connect_attachment_id str
    ID of the connection attachment.
    connect_peer_id str
    ID of the Connect peer.
    core_network_address str
    Connect peer core network address.
    core_network_id str
    ID of a core network.
    created_at str
    Timestamp when the Connect peer was created.
    edge_location str
    Region where the peer is located.
    inside_cidr_blocks Sequence[str]
    Inside IP addresses used for BGP peering. Required when the Connect attachment protocol is GRE. See aws.networkmanager.ConnectAttachment for details.
    peer_address str

    Connect peer address.

    The following arguments are optional:

    state str
    State of the Connect peer.
    subnet_arn str
    Subnet ARN for the Connect peer. Required when the Connect attachment protocol is NO_ENCAP. See aws.networkmanager.ConnectAttachment for details.
    tags Mapping[str, str]
    Key-value tags for the attachment. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn String
    ARN of the Connect peer.
    bgpOptions Property Map
    Connect peer BGP options. See bgp_options for more information.
    configurations List<Property Map>
    Configuration of the Connect peer.
    connectAttachmentId String
    ID of the connection attachment.
    connectPeerId String
    ID of the Connect peer.
    coreNetworkAddress String
    Connect peer core network address.
    coreNetworkId String
    ID of a core network.
    createdAt String
    Timestamp when the Connect peer was created.
    edgeLocation String
    Region where the peer is located.
    insideCidrBlocks List<String>
    Inside IP addresses used for BGP peering. Required when the Connect attachment protocol is GRE. See aws.networkmanager.ConnectAttachment for details.
    peerAddress String

    Connect peer address.

    The following arguments are optional:

    state String
    State of the Connect peer.
    subnetArn String
    Subnet ARN for the Connect peer. Required when the Connect attachment protocol is NO_ENCAP. See aws.networkmanager.ConnectAttachment for details.
    tags Map<String>
    Key-value tags for the attachment. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Supporting Types

    ConnectPeerBgpOptions, ConnectPeerBgpOptionsArgs

    PeerAsn int
    Peer ASN.
    PeerAsn int
    Peer ASN.
    peerAsn Integer
    Peer ASN.
    peerAsn number
    Peer ASN.
    peer_asn int
    Peer ASN.
    peerAsn Number
    Peer ASN.

    ConnectPeerConfiguration, ConnectPeerConfigurationArgs

    BgpConfigurations List<ConnectPeerConfigurationBgpConfiguration>
    CoreNetworkAddress string
    Connect peer core network address.
    InsideCidrBlocks List<string>
    Inside IP addresses used for BGP peering. Required when the Connect attachment protocol is GRE. See aws.networkmanager.ConnectAttachment for details.
    PeerAddress string

    Connect peer address.

    The following arguments are optional:

    Protocol string
    BgpConfigurations []ConnectPeerConfigurationBgpConfiguration
    CoreNetworkAddress string
    Connect peer core network address.
    InsideCidrBlocks []string
    Inside IP addresses used for BGP peering. Required when the Connect attachment protocol is GRE. See aws.networkmanager.ConnectAttachment for details.
    PeerAddress string

    Connect peer address.

    The following arguments are optional:

    Protocol string
    bgpConfigurations List<ConnectPeerConfigurationBgpConfiguration>
    coreNetworkAddress String
    Connect peer core network address.
    insideCidrBlocks List<String>
    Inside IP addresses used for BGP peering. Required when the Connect attachment protocol is GRE. See aws.networkmanager.ConnectAttachment for details.
    peerAddress String

    Connect peer address.

    The following arguments are optional:

    protocol String
    bgpConfigurations ConnectPeerConfigurationBgpConfiguration[]
    coreNetworkAddress string
    Connect peer core network address.
    insideCidrBlocks string[]
    Inside IP addresses used for BGP peering. Required when the Connect attachment protocol is GRE. See aws.networkmanager.ConnectAttachment for details.
    peerAddress string

    Connect peer address.

    The following arguments are optional:

    protocol string
    bgp_configurations Sequence[ConnectPeerConfigurationBgpConfiguration]
    core_network_address str
    Connect peer core network address.
    inside_cidr_blocks Sequence[str]
    Inside IP addresses used for BGP peering. Required when the Connect attachment protocol is GRE. See aws.networkmanager.ConnectAttachment for details.
    peer_address str

    Connect peer address.

    The following arguments are optional:

    protocol str
    bgpConfigurations List<Property Map>
    coreNetworkAddress String
    Connect peer core network address.
    insideCidrBlocks List<String>
    Inside IP addresses used for BGP peering. Required when the Connect attachment protocol is GRE. See aws.networkmanager.ConnectAttachment for details.
    peerAddress String

    Connect peer address.

    The following arguments are optional:

    protocol String

    ConnectPeerConfigurationBgpConfiguration, ConnectPeerConfigurationBgpConfigurationArgs

    CoreNetworkAddress string
    Connect peer core network address.
    CoreNetworkAsn int
    PeerAddress string

    Connect peer address.

    The following arguments are optional:

    PeerAsn int
    Peer ASN.
    CoreNetworkAddress string
    Connect peer core network address.
    CoreNetworkAsn int
    PeerAddress string

    Connect peer address.

    The following arguments are optional:

    PeerAsn int
    Peer ASN.
    coreNetworkAddress String
    Connect peer core network address.
    coreNetworkAsn Integer
    peerAddress String

    Connect peer address.

    The following arguments are optional:

    peerAsn Integer
    Peer ASN.
    coreNetworkAddress string
    Connect peer core network address.
    coreNetworkAsn number
    peerAddress string

    Connect peer address.

    The following arguments are optional:

    peerAsn number
    Peer ASN.
    core_network_address str
    Connect peer core network address.
    core_network_asn int
    peer_address str

    Connect peer address.

    The following arguments are optional:

    peer_asn int
    Peer ASN.
    coreNetworkAddress String
    Connect peer core network address.
    coreNetworkAsn Number
    peerAddress String

    Connect peer address.

    The following arguments are optional:

    peerAsn Number
    Peer ASN.

    Import

    Using pulumi import, import aws_networkmanager_connect_peer using the connect peer ID. For example:

    $ pulumi import aws:networkmanager/connectPeer:ConnectPeer example connect-peer-061f3e96275db1acc
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v7.2.0 published on Thursday, Jul 31, 2025 by Pulumi