Try AWS Native preview for resources not in the classic version.
aws.ec2transitgateway.ConnectPeer
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Manages an EC2 Transit Gateway Connect Peer.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var exampleConnect = new Aws.Ec2TransitGateway.Connect("exampleConnect", new()
{
TransportAttachmentId = aws_ec2_transit_gateway_vpc_attachment.Example.Id,
TransitGatewayId = aws_ec2_transit_gateway.Example.Id,
});
var exampleConnectPeer = new Aws.Ec2TransitGateway.ConnectPeer("exampleConnectPeer", new()
{
PeerAddress = "10.1.2.3",
InsideCidrBlocks = new[]
{
"169.254.100.0/29",
},
TransitGatewayAttachmentId = exampleConnect.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 {
exampleConnect, err := ec2transitgateway.NewConnect(ctx, "exampleConnect", &ec2transitgateway.ConnectArgs{
TransportAttachmentId: pulumi.Any(aws_ec2_transit_gateway_vpc_attachment.Example.Id),
TransitGatewayId: pulumi.Any(aws_ec2_transit_gateway.Example.Id),
})
if err != nil {
return err
}
_, err = ec2transitgateway.NewConnectPeer(ctx, "exampleConnectPeer", &ec2transitgateway.ConnectPeerArgs{
PeerAddress: pulumi.String("10.1.2.3"),
InsideCidrBlocks: pulumi.StringArray{
pulumi.String("169.254.100.0/29"),
},
TransitGatewayAttachmentId: exampleConnect.ID(),
})
if err != nil {
return err
}
return nil
})
}
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 exampleConnect = new Connect("exampleConnect", ConnectArgs.builder()
.transportAttachmentId(aws_ec2_transit_gateway_vpc_attachment.example().id())
.transitGatewayId(aws_ec2_transit_gateway.example().id())
.build());
var exampleConnectPeer = new ConnectPeer("exampleConnectPeer", ConnectPeerArgs.builder()
.peerAddress("10.1.2.3")
.insideCidrBlocks("169.254.100.0/29")
.transitGatewayAttachmentId(exampleConnect.id())
.build());
}
}
import pulumi
import pulumi_aws as aws
example_connect = aws.ec2transitgateway.Connect("exampleConnect",
transport_attachment_id=aws_ec2_transit_gateway_vpc_attachment["example"]["id"],
transit_gateway_id=aws_ec2_transit_gateway["example"]["id"])
example_connect_peer = aws.ec2transitgateway.ConnectPeer("exampleConnectPeer",
peer_address="10.1.2.3",
inside_cidr_blocks=["169.254.100.0/29"],
transit_gateway_attachment_id=example_connect.id)
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const exampleConnect = new aws.ec2transitgateway.Connect("exampleConnect", {
transportAttachmentId: aws_ec2_transit_gateway_vpc_attachment.example.id,
transitGatewayId: aws_ec2_transit_gateway.example.id,
});
const exampleConnectPeer = new aws.ec2transitgateway.ConnectPeer("exampleConnectPeer", {
peerAddress: "10.1.2.3",
insideCidrBlocks: ["169.254.100.0/29"],
transitGatewayAttachmentId: exampleConnect.id,
});
resources:
exampleConnect:
type: aws:ec2transitgateway:Connect
properties:
transportAttachmentId: ${aws_ec2_transit_gateway_vpc_attachment.example.id}
transitGatewayId: ${aws_ec2_transit_gateway.example.id}
exampleConnectPeer:
type: aws:ec2transitgateway:ConnectPeer
properties:
peerAddress: 10.1.2.3
insideCidrBlocks:
- 169.254.100.0/29
transitGatewayAttachmentId: ${exampleConnect.id}
Create ConnectPeer Resource
new ConnectPeer(name: string, args: ConnectPeerArgs, opts?: CustomResourceOptions);
@overload
def ConnectPeer(resource_name: str,
opts: Optional[ResourceOptions] = None,
bgp_asn: Optional[str] = None,
inside_cidr_blocks: Optional[Sequence[str]] = None,
peer_address: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
transit_gateway_address: Optional[str] = None,
transit_gateway_attachment_id: Optional[str] = None)
@overload
def ConnectPeer(resource_name: str,
args: ConnectPeerArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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:
- Inside
Cidr List<string>Blocks 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 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
- Transit
Gateway stringAttachment Id The Transit Gateway Connect
- Bgp
Asn string The BGP ASN number assigned customer device. If not provided, it will use the same BGP ASN as is associated with Transit Gateway.
- 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.- Transit
Gateway stringAddress 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 []stringBlocks 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 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
- Transit
Gateway stringAttachment Id The Transit Gateway Connect
- Bgp
Asn string The BGP ASN number assigned customer device. If not provided, it will use the same BGP ASN as is associated with Transit Gateway.
- 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.- Transit
Gateway stringAddress 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 List<String>Blocks 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 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
- transit
Gateway StringAttachment Id The Transit Gateway Connect
- bgp
Asn String The BGP ASN number assigned customer device. If not provided, it will use the same BGP ASN as is associated with Transit Gateway.
- 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.- transit
Gateway StringAddress 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 string[]Blocks 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 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
- transit
Gateway stringAttachment Id The Transit Gateway Connect
- bgp
Asn string The BGP ASN number assigned customer device. If not provided, it will use the same BGP ASN as is associated with Transit Gateway.
- {[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.- transit
Gateway stringAddress 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_ Sequence[str]blocks 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_ strattachment_ id 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.
- 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_ straddress 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 List<String>Blocks 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 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
- transit
Gateway StringAttachment Id The Transit Gateway Connect
- bgp
Asn String The BGP ASN number assigned customer device. If not provided, it will use the same BGP ASN as is associated with Transit Gateway.
- 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.- transit
Gateway StringAddress 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
- Bgp
Peer stringAddress The IP address assigned to customer device, which is used as BGP IP address.
- Bgp
Transit List<string>Gateway Addresses 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.
- Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
- Arn string
EC2 Transit Gateway Connect Peer ARN
- Bgp
Peer stringAddress The IP address assigned to customer device, which is used as BGP IP address.
- Bgp
Transit []stringGateway Addresses 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.
- map[string]string
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
- arn String
EC2 Transit Gateway Connect Peer ARN
- bgp
Peer StringAddress The IP address assigned to customer device, which is used as BGP IP address.
- bgp
Transit List<String>Gateway Addresses 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.
- Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
- arn string
EC2 Transit Gateway Connect Peer ARN
- bgp
Peer stringAddress The IP address assigned to customer device, which is used as BGP IP address.
- bgp
Transit string[]Gateway Addresses 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.
- {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
- arn str
EC2 Transit Gateway Connect Peer ARN
- bgp_
peer_ straddress The IP address assigned to customer device, which is used as BGP IP address.
- bgp_
transit_ Sequence[str]gateway_ addresses 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.
- Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
- arn String
EC2 Transit Gateway Connect Peer ARN
- bgp
Peer StringAddress The IP address assigned to customer device, which is used as BGP IP address.
- bgp
Transit List<String>Gateway Addresses 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.
- Map<String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.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.
- Arn string
EC2 Transit Gateway Connect Peer ARN
- Bgp
Asn string 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 stringAddress The IP address assigned to customer device, which is used as BGP IP address.
- Bgp
Transit List<string>Gateway Addresses The IP addresses assigned to Transit Gateway, which are used as BGP IP addresses.
- Inside
Cidr List<string>Blocks 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 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
- 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.- Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- Transit
Gateway stringAddress 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 stringAttachment Id The Transit Gateway Connect
- Arn string
EC2 Transit Gateway Connect Peer ARN
- Bgp
Asn string 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 stringAddress The IP address assigned to customer device, which is used as BGP IP address.
- Bgp
Transit []stringGateway Addresses The IP addresses assigned to Transit Gateway, which are used as BGP IP addresses.
- Inside
Cidr []stringBlocks 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 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
- 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.- map[string]string
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- Transit
Gateway stringAddress 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 stringAttachment Id The Transit Gateway Connect
- arn String
EC2 Transit Gateway Connect Peer ARN
- bgp
Asn String 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 StringAddress The IP address assigned to customer device, which is used as BGP IP address.
- bgp
Transit List<String>Gateway Addresses The IP addresses assigned to Transit Gateway, which are used as BGP IP addresses.
- inside
Cidr List<String>Blocks 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 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
- 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.- Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- transit
Gateway StringAddress 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 StringAttachment Id The Transit Gateway Connect
- arn string
EC2 Transit Gateway Connect Peer ARN
- bgp
Asn string 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 stringAddress The IP address assigned to customer device, which is used as BGP IP address.
- bgp
Transit string[]Gateway Addresses The IP addresses assigned to Transit Gateway, which are used as BGP IP addresses.
- inside
Cidr string[]Blocks 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 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
- {[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.- {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- transit
Gateway stringAddress 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 stringAttachment Id 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_ straddress The IP address assigned to customer device, which is used as BGP IP address.
- bgp_
transit_ Sequence[str]gateway_ addresses The IP addresses assigned to Transit Gateway, which are used as BGP IP addresses.
- inside_
cidr_ Sequence[str]blocks 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
- 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.- Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- transit_
gateway_ straddress 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_ strattachment_ id The Transit Gateway Connect
- arn String
EC2 Transit Gateway Connect Peer ARN
- bgp
Asn String 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 StringAddress The IP address assigned to customer device, which is used as BGP IP address.
- bgp
Transit List<String>Gateway Addresses The IP addresses assigned to Transit Gateway, which are used as BGP IP addresses.
- inside
Cidr List<String>Blocks 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 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
- 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.- Map<String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- transit
Gateway StringAddress 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 StringAttachment Id 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
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.