1. Packages
  2. AWS
  3. API Docs
  4. ec2transitgateway
  5. ConnectPeer
AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi

aws.ec2transitgateway.ConnectPeer

Explore with Pulumi AI

aws logo
AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi

    Manages an EC2 Transit Gateway Connect Peer.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.ec2transitgateway.Connect("example", {
        transportAttachmentId: exampleAwsEc2TransitGatewayVpcAttachment.id,
        transitGatewayId: exampleAwsEc2TransitGateway.id,
    });
    const exampleConnectPeer = new aws.ec2transitgateway.ConnectPeer("example", {
        peerAddress: "10.1.2.3",
        insideCidrBlocks: ["169.254.100.0/29"],
        transitGatewayAttachmentId: example.id,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.ec2transitgateway.Connect("example",
        transport_attachment_id=example_aws_ec2_transit_gateway_vpc_attachment["id"],
        transit_gateway_id=example_aws_ec2_transit_gateway["id"])
    example_connect_peer = aws.ec2transitgateway.ConnectPeer("example",
        peer_address="10.1.2.3",
        inside_cidr_blocks=["169.254.100.0/29"],
        transit_gateway_attachment_id=example.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2transitgateway"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := ec2transitgateway.NewConnect(ctx, "example", &ec2transitgateway.ConnectArgs{
    			TransportAttachmentId: pulumi.Any(exampleAwsEc2TransitGatewayVpcAttachment.Id),
    			TransitGatewayId:      pulumi.Any(exampleAwsEc2TransitGateway.Id),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ec2transitgateway.NewConnectPeer(ctx, "example", &ec2transitgateway.ConnectPeerArgs{
    			PeerAddress: pulumi.String("10.1.2.3"),
    			InsideCidrBlocks: pulumi.StringArray{
    				pulumi.String("169.254.100.0/29"),
    			},
    			TransitGatewayAttachmentId: example.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.Ec2TransitGateway.Connect("example", new()
        {
            TransportAttachmentId = exampleAwsEc2TransitGatewayVpcAttachment.Id,
            TransitGatewayId = exampleAwsEc2TransitGateway.Id,
        });
    
        var exampleConnectPeer = new Aws.Ec2TransitGateway.ConnectPeer("example", new()
        {
            PeerAddress = "10.1.2.3",
            InsideCidrBlocks = new[]
            {
                "169.254.100.0/29",
            },
            TransitGatewayAttachmentId = example.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.ec2transitgateway.Connect;
    import com.pulumi.aws.ec2transitgateway.ConnectArgs;
    import com.pulumi.aws.ec2transitgateway.ConnectPeer;
    import com.pulumi.aws.ec2transitgateway.ConnectPeerArgs;
    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 Connect("example", ConnectArgs.builder()
                .transportAttachmentId(exampleAwsEc2TransitGatewayVpcAttachment.id())
                .transitGatewayId(exampleAwsEc2TransitGateway.id())
                .build());
    
            var exampleConnectPeer = new ConnectPeer("exampleConnectPeer", ConnectPeerArgs.builder()
                .peerAddress("10.1.2.3")
                .insideCidrBlocks("169.254.100.0/29")
                .transitGatewayAttachmentId(example.id())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:ec2transitgateway:Connect
        properties:
          transportAttachmentId: ${exampleAwsEc2TransitGatewayVpcAttachment.id}
          transitGatewayId: ${exampleAwsEc2TransitGateway.id}
      exampleConnectPeer:
        type: aws:ec2transitgateway:ConnectPeer
        name: example
        properties:
          peerAddress: 10.1.2.3
          insideCidrBlocks:
            - 169.254.100.0/29
          transitGatewayAttachmentId: ${example.id}
    

    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,
                    inside_cidr_blocks: Optional[Sequence[str]] = None,
                    peer_address: Optional[str] = None,
                    transit_gateway_attachment_id: Optional[str] = None,
                    bgp_asn: Optional[str] = None,
                    tags: Optional[Mapping[str, str]] = None,
                    transit_gateway_address: Optional[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:ec2transitgateway: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 connectPeerResource = new Aws.Ec2TransitGateway.ConnectPeer("connectPeerResource", new()
    {
        InsideCidrBlocks = new[]
        {
            "string",
        },
        PeerAddress = "string",
        TransitGatewayAttachmentId = "string",
        BgpAsn = "string",
        Tags = 
        {
            { "string", "string" },
        },
        TransitGatewayAddress = "string",
    });
    
    example, err := ec2transitgateway.NewConnectPeer(ctx, "connectPeerResource", &ec2transitgateway.ConnectPeerArgs{
    	InsideCidrBlocks: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	PeerAddress:                pulumi.String("string"),
    	TransitGatewayAttachmentId: pulumi.String("string"),
    	BgpAsn:                     pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	TransitGatewayAddress: pulumi.String("string"),
    })
    
    var connectPeerResource = new ConnectPeer("connectPeerResource", ConnectPeerArgs.builder()
        .insideCidrBlocks("string")
        .peerAddress("string")
        .transitGatewayAttachmentId("string")
        .bgpAsn("string")
        .tags(Map.of("string", "string"))
        .transitGatewayAddress("string")
        .build());
    
    connect_peer_resource = aws.ec2transitgateway.ConnectPeer("connectPeerResource",
        inside_cidr_blocks=["string"],
        peer_address="string",
        transit_gateway_attachment_id="string",
        bgp_asn="string",
        tags={
            "string": "string",
        },
        transit_gateway_address="string")
    
    const connectPeerResource = new aws.ec2transitgateway.ConnectPeer("connectPeerResource", {
        insideCidrBlocks: ["string"],
        peerAddress: "string",
        transitGatewayAttachmentId: "string",
        bgpAsn: "string",
        tags: {
            string: "string",
        },
        transitGatewayAddress: "string",
    });
    
    type: aws:ec2transitgateway:ConnectPeer
    properties:
        bgpAsn: string
        insideCidrBlocks:
            - string
        peerAddress: string
        tags:
            string: string
        transitGatewayAddress: string
        transitGatewayAttachmentId: 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

    The ConnectPeer resource accepts the following input properties:

    InsideCidrBlocks List<string>
    The CIDR block that will be used for addressing within the tunnel. It must contain exactly one IPv4 CIDR block and up to one IPv6 CIDR block. The IPv4 CIDR block must be /29 size and must be within 169.254.0.0/16 range, with exception of: 169.254.0.0/29, 169.254.1.0/29, 169.254.2.0/29, 169.254.3.0/29, 169.254.4.0/29, 169.254.5.0/29, 169.254.169.248/29. The IPv6 CIDR block must be /125 size and must be within fd00::/8. The first IP from each CIDR block is assigned for customer gateway, the second and third is for Transit Gateway (An example: from range 169.254.100.0/29, .1 is assigned to customer gateway and .2 and .3 are assigned to Transit Gateway)
    PeerAddress string
    The IP addressed assigned to customer device, which will be used as tunnel endpoint. It can be IPv4 or IPv6 address, but must be the same address family as transit_gateway_address
    TransitGatewayAttachmentId string
    The Transit Gateway Connect
    BgpAsn string
    The BGP ASN number assigned customer device. If not provided, it will use the same BGP ASN as is associated with Transit Gateway.
    Tags Dictionary<string, string>
    Key-value tags for the EC2 Transit Gateway Connect Peer. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TransitGatewayAddress string
    The IP address assigned to Transit Gateway, which will be used as tunnel endpoint. This address must be from associated Transit Gateway CIDR block. The address must be from the same address family as peer_address. If not set explicitly, it will be selected from associated Transit Gateway CIDR blocks
    InsideCidrBlocks []string
    The CIDR block that will be used for addressing within the tunnel. It must contain exactly one IPv4 CIDR block and up to one IPv6 CIDR block. The IPv4 CIDR block must be /29 size and must be within 169.254.0.0/16 range, with exception of: 169.254.0.0/29, 169.254.1.0/29, 169.254.2.0/29, 169.254.3.0/29, 169.254.4.0/29, 169.254.5.0/29, 169.254.169.248/29. The IPv6 CIDR block must be /125 size and must be within fd00::/8. The first IP from each CIDR block is assigned for customer gateway, the second and third is for Transit Gateway (An example: from range 169.254.100.0/29, .1 is assigned to customer gateway and .2 and .3 are assigned to Transit Gateway)
    PeerAddress string
    The IP addressed assigned to customer device, which will be used as tunnel endpoint. It can be IPv4 or IPv6 address, but must be the same address family as transit_gateway_address
    TransitGatewayAttachmentId string
    The Transit Gateway Connect
    BgpAsn string
    The BGP ASN number assigned customer device. If not provided, it will use the same BGP ASN as is associated with Transit Gateway.
    Tags map[string]string
    Key-value tags for the EC2 Transit Gateway Connect Peer. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TransitGatewayAddress string
    The IP address assigned to Transit Gateway, which will be used as tunnel endpoint. This address must be from associated Transit Gateway CIDR block. The address must be from the same address family as peer_address. If not set explicitly, it will be selected from associated Transit Gateway CIDR blocks
    insideCidrBlocks List<String>
    The CIDR block that will be used for addressing within the tunnel. It must contain exactly one IPv4 CIDR block and up to one IPv6 CIDR block. The IPv4 CIDR block must be /29 size and must be within 169.254.0.0/16 range, with exception of: 169.254.0.0/29, 169.254.1.0/29, 169.254.2.0/29, 169.254.3.0/29, 169.254.4.0/29, 169.254.5.0/29, 169.254.169.248/29. The IPv6 CIDR block must be /125 size and must be within fd00::/8. The first IP from each CIDR block is assigned for customer gateway, the second and third is for Transit Gateway (An example: from range 169.254.100.0/29, .1 is assigned to customer gateway and .2 and .3 are assigned to Transit Gateway)
    peerAddress String
    The IP addressed assigned to customer device, which will be used as tunnel endpoint. It can be IPv4 or IPv6 address, but must be the same address family as transit_gateway_address
    transitGatewayAttachmentId String
    The Transit Gateway Connect
    bgpAsn String
    The BGP ASN number assigned customer device. If not provided, it will use the same BGP ASN as is associated with Transit Gateway.
    tags Map<String,String>
    Key-value tags for the EC2 Transit Gateway Connect Peer. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    transitGatewayAddress String
    The IP address assigned to Transit Gateway, which will be used as tunnel endpoint. This address must be from associated Transit Gateway CIDR block. The address must be from the same address family as peer_address. If not set explicitly, it will be selected from associated Transit Gateway CIDR blocks
    insideCidrBlocks string[]
    The CIDR block that will be used for addressing within the tunnel. It must contain exactly one IPv4 CIDR block and up to one IPv6 CIDR block. The IPv4 CIDR block must be /29 size and must be within 169.254.0.0/16 range, with exception of: 169.254.0.0/29, 169.254.1.0/29, 169.254.2.0/29, 169.254.3.0/29, 169.254.4.0/29, 169.254.5.0/29, 169.254.169.248/29. The IPv6 CIDR block must be /125 size and must be within fd00::/8. The first IP from each CIDR block is assigned for customer gateway, the second and third is for Transit Gateway (An example: from range 169.254.100.0/29, .1 is assigned to customer gateway and .2 and .3 are assigned to Transit Gateway)
    peerAddress string
    The IP addressed assigned to customer device, which will be used as tunnel endpoint. It can be IPv4 or IPv6 address, but must be the same address family as transit_gateway_address
    transitGatewayAttachmentId string
    The Transit Gateway Connect
    bgpAsn string
    The BGP ASN number assigned customer device. If not provided, it will use the same BGP ASN as is associated with Transit Gateway.
    tags {[key: string]: string}
    Key-value tags for the EC2 Transit Gateway Connect Peer. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    transitGatewayAddress string
    The IP address assigned to Transit Gateway, which will be used as tunnel endpoint. This address must be from associated Transit Gateway CIDR block. The address must be from the same address family as peer_address. If not set explicitly, it will be selected from associated Transit Gateway CIDR blocks
    inside_cidr_blocks Sequence[str]
    The CIDR block that will be used for addressing within the tunnel. It must contain exactly one IPv4 CIDR block and up to one IPv6 CIDR block. The IPv4 CIDR block must be /29 size and must be within 169.254.0.0/16 range, with exception of: 169.254.0.0/29, 169.254.1.0/29, 169.254.2.0/29, 169.254.3.0/29, 169.254.4.0/29, 169.254.5.0/29, 169.254.169.248/29. The IPv6 CIDR block must be /125 size and must be within fd00::/8. The first IP from each CIDR block is assigned for customer gateway, the second and third is for Transit Gateway (An example: from range 169.254.100.0/29, .1 is assigned to customer gateway and .2 and .3 are assigned to Transit Gateway)
    peer_address str
    The IP addressed assigned to customer device, which will be used as tunnel endpoint. It can be IPv4 or IPv6 address, but must be the same address family as transit_gateway_address
    transit_gateway_attachment_id str
    The Transit Gateway Connect
    bgp_asn str
    The BGP ASN number assigned customer device. If not provided, it will use the same BGP ASN as is associated with Transit Gateway.
    tags Mapping[str, str]
    Key-value tags for the EC2 Transit Gateway Connect Peer. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    transit_gateway_address str
    The IP address assigned to Transit Gateway, which will be used as tunnel endpoint. This address must be from associated Transit Gateway CIDR block. The address must be from the same address family as peer_address. If not set explicitly, it will be selected from associated Transit Gateway CIDR blocks
    insideCidrBlocks List<String>
    The CIDR block that will be used for addressing within the tunnel. It must contain exactly one IPv4 CIDR block and up to one IPv6 CIDR block. The IPv4 CIDR block must be /29 size and must be within 169.254.0.0/16 range, with exception of: 169.254.0.0/29, 169.254.1.0/29, 169.254.2.0/29, 169.254.3.0/29, 169.254.4.0/29, 169.254.5.0/29, 169.254.169.248/29. The IPv6 CIDR block must be /125 size and must be within fd00::/8. The first IP from each CIDR block is assigned for customer gateway, the second and third is for Transit Gateway (An example: from range 169.254.100.0/29, .1 is assigned to customer gateway and .2 and .3 are assigned to Transit Gateway)
    peerAddress String
    The IP addressed assigned to customer device, which will be used as tunnel endpoint. It can be IPv4 or IPv6 address, but must be the same address family as transit_gateway_address
    transitGatewayAttachmentId String
    The Transit Gateway Connect
    bgpAsn String
    The BGP ASN number assigned customer device. If not provided, it will use the same BGP ASN as is associated with Transit Gateway.
    tags Map<String>
    Key-value tags for the EC2 Transit Gateway Connect Peer. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    transitGatewayAddress String
    The IP address assigned to Transit Gateway, which will be used as tunnel endpoint. This address must be from associated Transit Gateway CIDR block. The address must be from the same address family as peer_address. If not set explicitly, it will be selected from associated Transit Gateway CIDR blocks

    Outputs

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

    Arn string
    EC2 Transit Gateway Connect Peer ARN
    BgpPeerAddress string
    The IP address assigned to customer device, which is used as BGP IP address.
    BgpTransitGatewayAddresses List<string>
    The IP addresses assigned to Transit Gateway, which are used as BGP IP addresses.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Arn string
    EC2 Transit Gateway Connect Peer ARN
    BgpPeerAddress string
    The IP address assigned to customer device, which is used as BGP IP address.
    BgpTransitGatewayAddresses []string
    The IP addresses assigned to Transit Gateway, which are used as BGP IP addresses.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    EC2 Transit Gateway Connect Peer ARN
    bgpPeerAddress String
    The IP address assigned to customer device, which is used as BGP IP address.
    bgpTransitGatewayAddresses List<String>
    The IP addresses assigned to Transit Gateway, which are used as BGP IP addresses.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn string
    EC2 Transit Gateway Connect Peer ARN
    bgpPeerAddress string
    The IP address assigned to customer device, which is used as BGP IP address.
    bgpTransitGatewayAddresses string[]
    The IP addresses assigned to Transit Gateway, which are used as BGP IP addresses.
    id string
    The provider-assigned unique ID for this managed resource.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn str
    EC2 Transit Gateway Connect Peer ARN
    bgp_peer_address str
    The IP address assigned to customer device, which is used as BGP IP address.
    bgp_transit_gateway_addresses Sequence[str]
    The IP addresses assigned to Transit Gateway, which are used as BGP IP addresses.
    id str
    The provider-assigned unique ID for this managed resource.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    EC2 Transit Gateway Connect Peer ARN
    bgpPeerAddress String
    The IP address assigned to customer device, which is used as BGP IP address.
    bgpTransitGatewayAddresses List<String>
    The IP addresses assigned to Transit Gateway, which are used as BGP IP addresses.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    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_asn: Optional[str] = None,
            bgp_peer_address: Optional[str] = None,
            bgp_transit_gateway_addresses: Optional[Sequence[str]] = None,
            inside_cidr_blocks: Optional[Sequence[str]] = None,
            peer_address: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None,
            transit_gateway_address: Optional[str] = None,
            transit_gateway_attachment_id: Optional[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)
    Resource lookup is not supported in YAML
    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
    EC2 Transit Gateway Connect Peer ARN
    BgpAsn string
    The BGP ASN number assigned customer device. If not provided, it will use the same BGP ASN as is associated with Transit Gateway.
    BgpPeerAddress string
    The IP address assigned to customer device, which is used as BGP IP address.
    BgpTransitGatewayAddresses List<string>
    The IP addresses assigned to Transit Gateway, which are used as BGP IP addresses.
    InsideCidrBlocks List<string>
    The CIDR block that will be used for addressing within the tunnel. It must contain exactly one IPv4 CIDR block and up to one IPv6 CIDR block. The IPv4 CIDR block must be /29 size and must be within 169.254.0.0/16 range, with exception of: 169.254.0.0/29, 169.254.1.0/29, 169.254.2.0/29, 169.254.3.0/29, 169.254.4.0/29, 169.254.5.0/29, 169.254.169.248/29. The IPv6 CIDR block must be /125 size and must be within fd00::/8. The first IP from each CIDR block is assigned for customer gateway, the second and third is for Transit Gateway (An example: from range 169.254.100.0/29, .1 is assigned to customer gateway and .2 and .3 are assigned to Transit Gateway)
    PeerAddress string
    The IP addressed assigned to customer device, which will be used as tunnel endpoint. It can be IPv4 or IPv6 address, but must be the same address family as transit_gateway_address
    Tags Dictionary<string, string>
    Key-value tags for the EC2 Transit Gateway Connect Peer. 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>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    TransitGatewayAddress string
    The IP address assigned to Transit Gateway, which will be used as tunnel endpoint. This address must be from associated Transit Gateway CIDR block. The address must be from the same address family as peer_address. If not set explicitly, it will be selected from associated Transit Gateway CIDR blocks
    TransitGatewayAttachmentId string
    The Transit Gateway Connect
    Arn string
    EC2 Transit Gateway Connect Peer ARN
    BgpAsn string
    The BGP ASN number assigned customer device. If not provided, it will use the same BGP ASN as is associated with Transit Gateway.
    BgpPeerAddress string
    The IP address assigned to customer device, which is used as BGP IP address.
    BgpTransitGatewayAddresses []string
    The IP addresses assigned to Transit Gateway, which are used as BGP IP addresses.
    InsideCidrBlocks []string
    The CIDR block that will be used for addressing within the tunnel. It must contain exactly one IPv4 CIDR block and up to one IPv6 CIDR block. The IPv4 CIDR block must be /29 size and must be within 169.254.0.0/16 range, with exception of: 169.254.0.0/29, 169.254.1.0/29, 169.254.2.0/29, 169.254.3.0/29, 169.254.4.0/29, 169.254.5.0/29, 169.254.169.248/29. The IPv6 CIDR block must be /125 size and must be within fd00::/8. The first IP from each CIDR block is assigned for customer gateway, the second and third is for Transit Gateway (An example: from range 169.254.100.0/29, .1 is assigned to customer gateway and .2 and .3 are assigned to Transit Gateway)
    PeerAddress string
    The IP addressed assigned to customer device, which will be used as tunnel endpoint. It can be IPv4 or IPv6 address, but must be the same address family as transit_gateway_address
    Tags map[string]string
    Key-value tags for the EC2 Transit Gateway Connect Peer. 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
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    TransitGatewayAddress string
    The IP address assigned to Transit Gateway, which will be used as tunnel endpoint. This address must be from associated Transit Gateway CIDR block. The address must be from the same address family as peer_address. If not set explicitly, it will be selected from associated Transit Gateway CIDR blocks
    TransitGatewayAttachmentId string
    The Transit Gateway Connect
    arn String
    EC2 Transit Gateway Connect Peer ARN
    bgpAsn String
    The BGP ASN number assigned customer device. If not provided, it will use the same BGP ASN as is associated with Transit Gateway.
    bgpPeerAddress String
    The IP address assigned to customer device, which is used as BGP IP address.
    bgpTransitGatewayAddresses List<String>
    The IP addresses assigned to Transit Gateway, which are used as BGP IP addresses.
    insideCidrBlocks List<String>
    The CIDR block that will be used for addressing within the tunnel. It must contain exactly one IPv4 CIDR block and up to one IPv6 CIDR block. The IPv4 CIDR block must be /29 size and must be within 169.254.0.0/16 range, with exception of: 169.254.0.0/29, 169.254.1.0/29, 169.254.2.0/29, 169.254.3.0/29, 169.254.4.0/29, 169.254.5.0/29, 169.254.169.248/29. The IPv6 CIDR block must be /125 size and must be within fd00::/8. The first IP from each CIDR block is assigned for customer gateway, the second and third is for Transit Gateway (An example: from range 169.254.100.0/29, .1 is assigned to customer gateway and .2 and .3 are assigned to Transit Gateway)
    peerAddress String
    The IP addressed assigned to customer device, which will be used as tunnel endpoint. It can be IPv4 or IPv6 address, but must be the same address family as transit_gateway_address
    tags Map<String,String>
    Key-value tags for the EC2 Transit Gateway Connect Peer. 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>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    transitGatewayAddress String
    The IP address assigned to Transit Gateway, which will be used as tunnel endpoint. This address must be from associated Transit Gateway CIDR block. The address must be from the same address family as peer_address. If not set explicitly, it will be selected from associated Transit Gateway CIDR blocks
    transitGatewayAttachmentId String
    The Transit Gateway Connect
    arn string
    EC2 Transit Gateway Connect Peer ARN
    bgpAsn string
    The BGP ASN number assigned customer device. If not provided, it will use the same BGP ASN as is associated with Transit Gateway.
    bgpPeerAddress string
    The IP address assigned to customer device, which is used as BGP IP address.
    bgpTransitGatewayAddresses string[]
    The IP addresses assigned to Transit Gateway, which are used as BGP IP addresses.
    insideCidrBlocks string[]
    The CIDR block that will be used for addressing within the tunnel. It must contain exactly one IPv4 CIDR block and up to one IPv6 CIDR block. The IPv4 CIDR block must be /29 size and must be within 169.254.0.0/16 range, with exception of: 169.254.0.0/29, 169.254.1.0/29, 169.254.2.0/29, 169.254.3.0/29, 169.254.4.0/29, 169.254.5.0/29, 169.254.169.248/29. The IPv6 CIDR block must be /125 size and must be within fd00::/8. The first IP from each CIDR block is assigned for customer gateway, the second and third is for Transit Gateway (An example: from range 169.254.100.0/29, .1 is assigned to customer gateway and .2 and .3 are assigned to Transit Gateway)
    peerAddress string
    The IP addressed assigned to customer device, which will be used as tunnel endpoint. It can be IPv4 or IPv6 address, but must be the same address family as transit_gateway_address
    tags {[key: string]: string}
    Key-value tags for the EC2 Transit Gateway Connect Peer. 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}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    transitGatewayAddress string
    The IP address assigned to Transit Gateway, which will be used as tunnel endpoint. This address must be from associated Transit Gateway CIDR block. The address must be from the same address family as peer_address. If not set explicitly, it will be selected from associated Transit Gateway CIDR blocks
    transitGatewayAttachmentId string
    The Transit Gateway Connect
    arn str
    EC2 Transit Gateway Connect Peer ARN
    bgp_asn str
    The BGP ASN number assigned customer device. If not provided, it will use the same BGP ASN as is associated with Transit Gateway.
    bgp_peer_address str
    The IP address assigned to customer device, which is used as BGP IP address.
    bgp_transit_gateway_addresses Sequence[str]
    The IP addresses assigned to Transit Gateway, which are used as BGP IP addresses.
    inside_cidr_blocks Sequence[str]
    The CIDR block that will be used for addressing within the tunnel. It must contain exactly one IPv4 CIDR block and up to one IPv6 CIDR block. The IPv4 CIDR block must be /29 size and must be within 169.254.0.0/16 range, with exception of: 169.254.0.0/29, 169.254.1.0/29, 169.254.2.0/29, 169.254.3.0/29, 169.254.4.0/29, 169.254.5.0/29, 169.254.169.248/29. The IPv6 CIDR block must be /125 size and must be within fd00::/8. The first IP from each CIDR block is assigned for customer gateway, the second and third is for Transit Gateway (An example: from range 169.254.100.0/29, .1 is assigned to customer gateway and .2 and .3 are assigned to Transit Gateway)
    peer_address str
    The IP addressed assigned to customer device, which will be used as tunnel endpoint. It can be IPv4 or IPv6 address, but must be the same address family as transit_gateway_address
    tags Mapping[str, str]
    Key-value tags for the EC2 Transit Gateway Connect Peer. 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]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    transit_gateway_address str
    The IP address assigned to Transit Gateway, which will be used as tunnel endpoint. This address must be from associated Transit Gateway CIDR block. The address must be from the same address family as peer_address. If not set explicitly, it will be selected from associated Transit Gateway CIDR blocks
    transit_gateway_attachment_id str
    The Transit Gateway Connect
    arn String
    EC2 Transit Gateway Connect Peer ARN
    bgpAsn String
    The BGP ASN number assigned customer device. If not provided, it will use the same BGP ASN as is associated with Transit Gateway.
    bgpPeerAddress String
    The IP address assigned to customer device, which is used as BGP IP address.
    bgpTransitGatewayAddresses List<String>
    The IP addresses assigned to Transit Gateway, which are used as BGP IP addresses.
    insideCidrBlocks List<String>
    The CIDR block that will be used for addressing within the tunnel. It must contain exactly one IPv4 CIDR block and up to one IPv6 CIDR block. The IPv4 CIDR block must be /29 size and must be within 169.254.0.0/16 range, with exception of: 169.254.0.0/29, 169.254.1.0/29, 169.254.2.0/29, 169.254.3.0/29, 169.254.4.0/29, 169.254.5.0/29, 169.254.169.248/29. The IPv6 CIDR block must be /125 size and must be within fd00::/8. The first IP from each CIDR block is assigned for customer gateway, the second and third is for Transit Gateway (An example: from range 169.254.100.0/29, .1 is assigned to customer gateway and .2 and .3 are assigned to Transit Gateway)
    peerAddress String
    The IP addressed assigned to customer device, which will be used as tunnel endpoint. It can be IPv4 or IPv6 address, but must be the same address family as transit_gateway_address
    tags Map<String>
    Key-value tags for the EC2 Transit Gateway Connect Peer. 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>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    transitGatewayAddress String
    The IP address assigned to Transit Gateway, which will be used as tunnel endpoint. This address must be from associated Transit Gateway CIDR block. The address must be from the same address family as peer_address. If not set explicitly, it will be selected from associated Transit Gateway CIDR blocks
    transitGatewayAttachmentId String
    The Transit Gateway Connect

    Import

    Using pulumi import, import aws_ec2_transit_gateway_connect_peer using the EC2 Transit Gateway Connect Peer identifier. For example:

    $ pulumi import aws:ec2transitgateway/connectPeer:ConnectPeer example tgw-connect-peer-12345678
    

    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 v6.54.0 published on Friday, Sep 27, 2024 by Pulumi