aws.ec2transitgateway.ConnectPeer
Explore with Pulumi AI
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:
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
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. - 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. - 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. - 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. - 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. - 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. - 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
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.