aviatrix.AviatrixTransitGatewayPeering
Explore with Pulumi AI
The aviatrix_transit_gateway_peering resource allows the creation and management of peerings between Aviatrix transit gateways.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Aviatrix = Pulumi.Aviatrix;
return await Deployment.RunAsync(() =>
{
// Create an Aviatrix Transit Gateway Peering
var testTransitGatewayPeering = new Aviatrix.AviatrixTransitGatewayPeering("testTransitGatewayPeering", new()
{
EnableInsaneModeEncryptionOverInternet = false,
EnablePeeringOverPrivateNetwork = false,
Gateway1ExcludedNetworkCidrs = new[]
{
"10.0.0.48/28",
},
Gateway1ExcludedTgwConnections = new[]
{
"vpn_connection_a",
},
Gateway2ExcludedNetworkCidrs = new[]
{
"10.0.0.48/28",
},
Gateway2ExcludedTgwConnections = new[]
{
"vpn_connection_b",
},
PrependAsPath1s = new[]
{
"65001",
"65001",
"65001",
},
PrependAsPath2s = new[]
{
"65002",
},
TransitGatewayName1 = "transit-Gw1",
TransitGatewayName2 = "transit-Gw2",
});
});
package main
import (
"github.com/astipkovits/pulumi-aviatrix/sdk/go/aviatrix"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := aviatrix.NewAviatrixTransitGatewayPeering(ctx, "testTransitGatewayPeering", &aviatrix.AviatrixTransitGatewayPeeringArgs{
EnableInsaneModeEncryptionOverInternet: pulumi.Bool(false),
EnablePeeringOverPrivateNetwork: pulumi.Bool(false),
Gateway1ExcludedNetworkCidrs: pulumi.StringArray{
pulumi.String("10.0.0.48/28"),
},
Gateway1ExcludedTgwConnections: pulumi.StringArray{
pulumi.String("vpn_connection_a"),
},
Gateway2ExcludedNetworkCidrs: pulumi.StringArray{
pulumi.String("10.0.0.48/28"),
},
Gateway2ExcludedTgwConnections: pulumi.StringArray{
pulumi.String("vpn_connection_b"),
},
PrependAsPath1s: pulumi.StringArray{
pulumi.String("65001"),
pulumi.String("65001"),
pulumi.String("65001"),
},
PrependAsPath2s: pulumi.StringArray{
pulumi.String("65002"),
},
TransitGatewayName1: pulumi.String("transit-Gw1"),
TransitGatewayName2: pulumi.String("transit-Gw2"),
})
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.aviatrix.AviatrixTransitGatewayPeering;
import com.pulumi.aviatrix.AviatrixTransitGatewayPeeringArgs;
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 testTransitGatewayPeering = new AviatrixTransitGatewayPeering("testTransitGatewayPeering", AviatrixTransitGatewayPeeringArgs.builder()
.enableInsaneModeEncryptionOverInternet(false)
.enablePeeringOverPrivateNetwork(false)
.gateway1ExcludedNetworkCidrs("10.0.0.48/28")
.gateway1ExcludedTgwConnections("vpn_connection_a")
.gateway2ExcludedNetworkCidrs("10.0.0.48/28")
.gateway2ExcludedTgwConnections("vpn_connection_b")
.prependAsPath1s(
"65001",
"65001",
"65001")
.prependAsPath2s("65002")
.transitGatewayName1("transit-Gw1")
.transitGatewayName2("transit-Gw2")
.build());
}
}
import pulumi
import pulumi_aviatrix as aviatrix
# Create an Aviatrix Transit Gateway Peering
test_transit_gateway_peering = aviatrix.AviatrixTransitGatewayPeering("testTransitGatewayPeering",
enable_insane_mode_encryption_over_internet=False,
enable_peering_over_private_network=False,
gateway1_excluded_network_cidrs=["10.0.0.48/28"],
gateway1_excluded_tgw_connections=["vpn_connection_a"],
gateway2_excluded_network_cidrs=["10.0.0.48/28"],
gateway2_excluded_tgw_connections=["vpn_connection_b"],
prepend_as_path1s=[
"65001",
"65001",
"65001",
],
prepend_as_path2s=["65002"],
transit_gateway_name1="transit-Gw1",
transit_gateway_name2="transit-Gw2")
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";
// Create an Aviatrix Transit Gateway Peering
const testTransitGatewayPeering = new aviatrix.AviatrixTransitGatewayPeering("test_transit_gateway_peering", {
enableInsaneModeEncryptionOverInternet: false,
enablePeeringOverPrivateNetwork: false,
gateway1ExcludedNetworkCidrs: ["10.0.0.48/28"],
gateway1ExcludedTgwConnections: ["vpn_connection_a"],
gateway2ExcludedNetworkCidrs: ["10.0.0.48/28"],
gateway2ExcludedTgwConnections: ["vpn_connection_b"],
prependAsPath1s: [
"65001",
"65001",
"65001",
],
prependAsPath2s: ["65002"],
transitGatewayName1: "transit-Gw1",
transitGatewayName2: "transit-Gw2",
});
resources:
# Create an Aviatrix Transit Gateway Peering
testTransitGatewayPeering:
type: aviatrix:AviatrixTransitGatewayPeering
properties:
enableInsaneModeEncryptionOverInternet: false
enablePeeringOverPrivateNetwork: false
gateway1ExcludedNetworkCidrs:
- 10.0.0.48/28
gateway1ExcludedTgwConnections:
- vpn_connection_a
gateway2ExcludedNetworkCidrs:
- 10.0.0.48/28
gateway2ExcludedTgwConnections:
- vpn_connection_b
prependAsPath1s:
- '65001'
- '65001'
- '65001'
prependAsPath2s:
- '65002'
transitGatewayName1: transit-Gw1
transitGatewayName2: transit-Gw2
Create AviatrixTransitGatewayPeering Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AviatrixTransitGatewayPeering(name: string, args: AviatrixTransitGatewayPeeringArgs, opts?: CustomResourceOptions);
@overload
def AviatrixTransitGatewayPeering(resource_name: str,
args: AviatrixTransitGatewayPeeringArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AviatrixTransitGatewayPeering(resource_name: str,
opts: Optional[ResourceOptions] = None,
transit_gateway_name1: Optional[str] = None,
transit_gateway_name2: Optional[str] = None,
gateway2_excluded_network_cidrs: Optional[Sequence[str]] = None,
enable_single_tunnel_mode: Optional[bool] = None,
gateway1_excluded_network_cidrs: Optional[Sequence[str]] = None,
gateway1_excluded_tgw_connections: Optional[Sequence[str]] = None,
enable_insane_mode_encryption_over_internet: Optional[bool] = None,
gateway2_excluded_tgw_connections: Optional[Sequence[str]] = None,
prepend_as_path1s: Optional[Sequence[str]] = None,
prepend_as_path2s: Optional[Sequence[str]] = None,
enable_peering_over_private_network: Optional[bool] = None,
enable_max_performance: Optional[bool] = None,
tunnel_count: Optional[int] = None)
func NewAviatrixTransitGatewayPeering(ctx *Context, name string, args AviatrixTransitGatewayPeeringArgs, opts ...ResourceOption) (*AviatrixTransitGatewayPeering, error)
public AviatrixTransitGatewayPeering(string name, AviatrixTransitGatewayPeeringArgs args, CustomResourceOptions? opts = null)
public AviatrixTransitGatewayPeering(String name, AviatrixTransitGatewayPeeringArgs args)
public AviatrixTransitGatewayPeering(String name, AviatrixTransitGatewayPeeringArgs args, CustomResourceOptions options)
type: aviatrix:AviatrixTransitGatewayPeering
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 AviatrixTransitGatewayPeeringArgs
- 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 AviatrixTransitGatewayPeeringArgs
- 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 AviatrixTransitGatewayPeeringArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AviatrixTransitGatewayPeeringArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AviatrixTransitGatewayPeeringArgs
- 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 aviatrixTransitGatewayPeeringResource = new Aviatrix.AviatrixTransitGatewayPeering("aviatrixTransitGatewayPeeringResource", new()
{
TransitGatewayName1 = "string",
TransitGatewayName2 = "string",
Gateway2ExcludedNetworkCidrs = new[]
{
"string",
},
EnableSingleTunnelMode = false,
Gateway1ExcludedNetworkCidrs = new[]
{
"string",
},
Gateway1ExcludedTgwConnections = new[]
{
"string",
},
EnableInsaneModeEncryptionOverInternet = false,
Gateway2ExcludedTgwConnections = new[]
{
"string",
},
PrependAsPath1s = new[]
{
"string",
},
PrependAsPath2s = new[]
{
"string",
},
EnablePeeringOverPrivateNetwork = false,
EnableMaxPerformance = false,
TunnelCount = 0,
});
example, err := aviatrix.NewAviatrixTransitGatewayPeering(ctx, "aviatrixTransitGatewayPeeringResource", &aviatrix.AviatrixTransitGatewayPeeringArgs{
TransitGatewayName1: pulumi.String("string"),
TransitGatewayName2: pulumi.String("string"),
Gateway2ExcludedNetworkCidrs: pulumi.StringArray{
pulumi.String("string"),
},
EnableSingleTunnelMode: pulumi.Bool(false),
Gateway1ExcludedNetworkCidrs: pulumi.StringArray{
pulumi.String("string"),
},
Gateway1ExcludedTgwConnections: pulumi.StringArray{
pulumi.String("string"),
},
EnableInsaneModeEncryptionOverInternet: pulumi.Bool(false),
Gateway2ExcludedTgwConnections: pulumi.StringArray{
pulumi.String("string"),
},
PrependAsPath1s: pulumi.StringArray{
pulumi.String("string"),
},
PrependAsPath2s: pulumi.StringArray{
pulumi.String("string"),
},
EnablePeeringOverPrivateNetwork: pulumi.Bool(false),
EnableMaxPerformance: pulumi.Bool(false),
TunnelCount: pulumi.Int(0),
})
var aviatrixTransitGatewayPeeringResource = new AviatrixTransitGatewayPeering("aviatrixTransitGatewayPeeringResource", AviatrixTransitGatewayPeeringArgs.builder()
.transitGatewayName1("string")
.transitGatewayName2("string")
.gateway2ExcludedNetworkCidrs("string")
.enableSingleTunnelMode(false)
.gateway1ExcludedNetworkCidrs("string")
.gateway1ExcludedTgwConnections("string")
.enableInsaneModeEncryptionOverInternet(false)
.gateway2ExcludedTgwConnections("string")
.prependAsPath1s("string")
.prependAsPath2s("string")
.enablePeeringOverPrivateNetwork(false)
.enableMaxPerformance(false)
.tunnelCount(0)
.build());
aviatrix_transit_gateway_peering_resource = aviatrix.AviatrixTransitGatewayPeering("aviatrixTransitGatewayPeeringResource",
transit_gateway_name1="string",
transit_gateway_name2="string",
gateway2_excluded_network_cidrs=["string"],
enable_single_tunnel_mode=False,
gateway1_excluded_network_cidrs=["string"],
gateway1_excluded_tgw_connections=["string"],
enable_insane_mode_encryption_over_internet=False,
gateway2_excluded_tgw_connections=["string"],
prepend_as_path1s=["string"],
prepend_as_path2s=["string"],
enable_peering_over_private_network=False,
enable_max_performance=False,
tunnel_count=0)
const aviatrixTransitGatewayPeeringResource = new aviatrix.AviatrixTransitGatewayPeering("aviatrixTransitGatewayPeeringResource", {
transitGatewayName1: "string",
transitGatewayName2: "string",
gateway2ExcludedNetworkCidrs: ["string"],
enableSingleTunnelMode: false,
gateway1ExcludedNetworkCidrs: ["string"],
gateway1ExcludedTgwConnections: ["string"],
enableInsaneModeEncryptionOverInternet: false,
gateway2ExcludedTgwConnections: ["string"],
prependAsPath1s: ["string"],
prependAsPath2s: ["string"],
enablePeeringOverPrivateNetwork: false,
enableMaxPerformance: false,
tunnelCount: 0,
});
type: aviatrix:AviatrixTransitGatewayPeering
properties:
enableInsaneModeEncryptionOverInternet: false
enableMaxPerformance: false
enablePeeringOverPrivateNetwork: false
enableSingleTunnelMode: false
gateway1ExcludedNetworkCidrs:
- string
gateway1ExcludedTgwConnections:
- string
gateway2ExcludedNetworkCidrs:
- string
gateway2ExcludedTgwConnections:
- string
prependAsPath1s:
- string
prependAsPath2s:
- string
transitGatewayName1: string
transitGatewayName2: string
tunnelCount: 0
AviatrixTransitGatewayPeering 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 AviatrixTransitGatewayPeering resource accepts the following input properties:
- Transit
Gateway stringName1 - The first transit gateway name to make a peer pair.
- Transit
Gateway stringName2 - The second transit gateway name to make a peer pair.
- Enable
Insane boolMode Encryption Over Internet - Advanced option. Enable Insane Mode Encryption over Internet. Transit gateways must be in Insane Mode. Currently, only inter-cloud connections between AWS and Azure are supported. Required with valid
tunnel_count
. Conflicts withenable_peering_over_private_network
andenable_single_tunnel_mode
. Type: Boolean. Default: false. Available as of provider version R2.19+. - Enable
Max boolPerformance - Indicates whether the maximum amount of HPE tunnels will be created. Only valid when the two transit gateways are each launched in Insane Mode and in the same cloud type. Default value: true. Available as of provider version R2.22.2+.
- Enable
Peering boolOver Private Network - Advanced option. Enable peering over private network. Only appears and applies to when the two Multi-cloud Transit Gateways are each launched in Insane Mode and in a different cloud type. Conflicts with
enable_insane_mode_encryption_over_internet
andtunnel_count
. Type: Boolean. Default: false. Available in provider version R2.17.1+. - Enable
Single boolTunnel Mode - Advanced option. Enable peering with Single-Tunnel mode. Only appears and applies to when the two Multi-cloud Transit Gateways are each launched in Insane Mode and in a different cloud type. Required with
enable_peering_over_private_network
. Conflicts withenable_insane_mode_encryption_over_internet
andtunnel_count
. Type: Boolean. Default: false. Available as of provider version R2.18+. - Gateway1Excluded
Network List<string>Cidrs - List of excluded network CIDRs for the first transit gateway.
- Gateway1Excluded
Tgw List<string>Connections - List of excluded TGW connections for the first transit gateway.
- Gateway2Excluded
Network List<string>Cidrs - List of excluded network CIDRs for the second transit gateway.
- Gateway2Excluded
Tgw List<string>Connections - List of excluded TGW connections for the second transit gateway.
- Prepend
As List<string>Path1s - AS Path Prepend for BGP connection. Can only use the transit's own local AS number, repeated up to 25 times. Applies on transit_gateway_name1. Available in provider version R2.17.2+.
- Prepend
As List<string>Path2s - AS Path Prepend for BGP connection. Can only use the transit's own local AS number, repeated up to 25 times. Applies on transit_gateway_name2. Available in provider version R2.17.2+.
- Tunnel
Count int - Advanced option. Number of public tunnels. Required with
enable_insane_mode_encryption_over_internet
. Conflicts withenable_peering_over_private_network
andenable_single_tunnel_mode
. Type: Integer. Valid Range: 2-20. Available as of provider version R2.19+.
- Transit
Gateway stringName1 - The first transit gateway name to make a peer pair.
- Transit
Gateway stringName2 - The second transit gateway name to make a peer pair.
- Enable
Insane boolMode Encryption Over Internet - Advanced option. Enable Insane Mode Encryption over Internet. Transit gateways must be in Insane Mode. Currently, only inter-cloud connections between AWS and Azure are supported. Required with valid
tunnel_count
. Conflicts withenable_peering_over_private_network
andenable_single_tunnel_mode
. Type: Boolean. Default: false. Available as of provider version R2.19+. - Enable
Max boolPerformance - Indicates whether the maximum amount of HPE tunnels will be created. Only valid when the two transit gateways are each launched in Insane Mode and in the same cloud type. Default value: true. Available as of provider version R2.22.2+.
- Enable
Peering boolOver Private Network - Advanced option. Enable peering over private network. Only appears and applies to when the two Multi-cloud Transit Gateways are each launched in Insane Mode and in a different cloud type. Conflicts with
enable_insane_mode_encryption_over_internet
andtunnel_count
. Type: Boolean. Default: false. Available in provider version R2.17.1+. - Enable
Single boolTunnel Mode - Advanced option. Enable peering with Single-Tunnel mode. Only appears and applies to when the two Multi-cloud Transit Gateways are each launched in Insane Mode and in a different cloud type. Required with
enable_peering_over_private_network
. Conflicts withenable_insane_mode_encryption_over_internet
andtunnel_count
. Type: Boolean. Default: false. Available as of provider version R2.18+. - Gateway1Excluded
Network []stringCidrs - List of excluded network CIDRs for the first transit gateway.
- Gateway1Excluded
Tgw []stringConnections - List of excluded TGW connections for the first transit gateway.
- Gateway2Excluded
Network []stringCidrs - List of excluded network CIDRs for the second transit gateway.
- Gateway2Excluded
Tgw []stringConnections - List of excluded TGW connections for the second transit gateway.
- Prepend
As []stringPath1s - AS Path Prepend for BGP connection. Can only use the transit's own local AS number, repeated up to 25 times. Applies on transit_gateway_name1. Available in provider version R2.17.2+.
- Prepend
As []stringPath2s - AS Path Prepend for BGP connection. Can only use the transit's own local AS number, repeated up to 25 times. Applies on transit_gateway_name2. Available in provider version R2.17.2+.
- Tunnel
Count int - Advanced option. Number of public tunnels. Required with
enable_insane_mode_encryption_over_internet
. Conflicts withenable_peering_over_private_network
andenable_single_tunnel_mode
. Type: Integer. Valid Range: 2-20. Available as of provider version R2.19+.
- transit
Gateway StringName1 - The first transit gateway name to make a peer pair.
- transit
Gateway StringName2 - The second transit gateway name to make a peer pair.
- enable
Insane BooleanMode Encryption Over Internet - Advanced option. Enable Insane Mode Encryption over Internet. Transit gateways must be in Insane Mode. Currently, only inter-cloud connections between AWS and Azure are supported. Required with valid
tunnel_count
. Conflicts withenable_peering_over_private_network
andenable_single_tunnel_mode
. Type: Boolean. Default: false. Available as of provider version R2.19+. - enable
Max BooleanPerformance - Indicates whether the maximum amount of HPE tunnels will be created. Only valid when the two transit gateways are each launched in Insane Mode and in the same cloud type. Default value: true. Available as of provider version R2.22.2+.
- enable
Peering BooleanOver Private Network - Advanced option. Enable peering over private network. Only appears and applies to when the two Multi-cloud Transit Gateways are each launched in Insane Mode and in a different cloud type. Conflicts with
enable_insane_mode_encryption_over_internet
andtunnel_count
. Type: Boolean. Default: false. Available in provider version R2.17.1+. - enable
Single BooleanTunnel Mode - Advanced option. Enable peering with Single-Tunnel mode. Only appears and applies to when the two Multi-cloud Transit Gateways are each launched in Insane Mode and in a different cloud type. Required with
enable_peering_over_private_network
. Conflicts withenable_insane_mode_encryption_over_internet
andtunnel_count
. Type: Boolean. Default: false. Available as of provider version R2.18+. - gateway1Excluded
Network List<String>Cidrs - List of excluded network CIDRs for the first transit gateway.
- gateway1Excluded
Tgw List<String>Connections - List of excluded TGW connections for the first transit gateway.
- gateway2Excluded
Network List<String>Cidrs - List of excluded network CIDRs for the second transit gateway.
- gateway2Excluded
Tgw List<String>Connections - List of excluded TGW connections for the second transit gateway.
- prepend
As List<String>Path1s - AS Path Prepend for BGP connection. Can only use the transit's own local AS number, repeated up to 25 times. Applies on transit_gateway_name1. Available in provider version R2.17.2+.
- prepend
As List<String>Path2s - AS Path Prepend for BGP connection. Can only use the transit's own local AS number, repeated up to 25 times. Applies on transit_gateway_name2. Available in provider version R2.17.2+.
- tunnel
Count Integer - Advanced option. Number of public tunnels. Required with
enable_insane_mode_encryption_over_internet
. Conflicts withenable_peering_over_private_network
andenable_single_tunnel_mode
. Type: Integer. Valid Range: 2-20. Available as of provider version R2.19+.
- transit
Gateway stringName1 - The first transit gateway name to make a peer pair.
- transit
Gateway stringName2 - The second transit gateway name to make a peer pair.
- enable
Insane booleanMode Encryption Over Internet - Advanced option. Enable Insane Mode Encryption over Internet. Transit gateways must be in Insane Mode. Currently, only inter-cloud connections between AWS and Azure are supported. Required with valid
tunnel_count
. Conflicts withenable_peering_over_private_network
andenable_single_tunnel_mode
. Type: Boolean. Default: false. Available as of provider version R2.19+. - enable
Max booleanPerformance - Indicates whether the maximum amount of HPE tunnels will be created. Only valid when the two transit gateways are each launched in Insane Mode and in the same cloud type. Default value: true. Available as of provider version R2.22.2+.
- enable
Peering booleanOver Private Network - Advanced option. Enable peering over private network. Only appears and applies to when the two Multi-cloud Transit Gateways are each launched in Insane Mode and in a different cloud type. Conflicts with
enable_insane_mode_encryption_over_internet
andtunnel_count
. Type: Boolean. Default: false. Available in provider version R2.17.1+. - enable
Single booleanTunnel Mode - Advanced option. Enable peering with Single-Tunnel mode. Only appears and applies to when the two Multi-cloud Transit Gateways are each launched in Insane Mode and in a different cloud type. Required with
enable_peering_over_private_network
. Conflicts withenable_insane_mode_encryption_over_internet
andtunnel_count
. Type: Boolean. Default: false. Available as of provider version R2.18+. - gateway1Excluded
Network string[]Cidrs - List of excluded network CIDRs for the first transit gateway.
- gateway1Excluded
Tgw string[]Connections - List of excluded TGW connections for the first transit gateway.
- gateway2Excluded
Network string[]Cidrs - List of excluded network CIDRs for the second transit gateway.
- gateway2Excluded
Tgw string[]Connections - List of excluded TGW connections for the second transit gateway.
- prepend
As string[]Path1s - AS Path Prepend for BGP connection. Can only use the transit's own local AS number, repeated up to 25 times. Applies on transit_gateway_name1. Available in provider version R2.17.2+.
- prepend
As string[]Path2s - AS Path Prepend for BGP connection. Can only use the transit's own local AS number, repeated up to 25 times. Applies on transit_gateway_name2. Available in provider version R2.17.2+.
- tunnel
Count number - Advanced option. Number of public tunnels. Required with
enable_insane_mode_encryption_over_internet
. Conflicts withenable_peering_over_private_network
andenable_single_tunnel_mode
. Type: Integer. Valid Range: 2-20. Available as of provider version R2.19+.
- transit_
gateway_ strname1 - The first transit gateway name to make a peer pair.
- transit_
gateway_ strname2 - The second transit gateway name to make a peer pair.
- enable_
insane_ boolmode_ encryption_ over_ internet - Advanced option. Enable Insane Mode Encryption over Internet. Transit gateways must be in Insane Mode. Currently, only inter-cloud connections between AWS and Azure are supported. Required with valid
tunnel_count
. Conflicts withenable_peering_over_private_network
andenable_single_tunnel_mode
. Type: Boolean. Default: false. Available as of provider version R2.19+. - enable_
max_ boolperformance - Indicates whether the maximum amount of HPE tunnels will be created. Only valid when the two transit gateways are each launched in Insane Mode and in the same cloud type. Default value: true. Available as of provider version R2.22.2+.
- enable_
peering_ boolover_ private_ network - Advanced option. Enable peering over private network. Only appears and applies to when the two Multi-cloud Transit Gateways are each launched in Insane Mode and in a different cloud type. Conflicts with
enable_insane_mode_encryption_over_internet
andtunnel_count
. Type: Boolean. Default: false. Available in provider version R2.17.1+. - enable_
single_ booltunnel_ mode - Advanced option. Enable peering with Single-Tunnel mode. Only appears and applies to when the two Multi-cloud Transit Gateways are each launched in Insane Mode and in a different cloud type. Required with
enable_peering_over_private_network
. Conflicts withenable_insane_mode_encryption_over_internet
andtunnel_count
. Type: Boolean. Default: false. Available as of provider version R2.18+. - gateway1_
excluded_ Sequence[str]network_ cidrs - List of excluded network CIDRs for the first transit gateway.
- gateway1_
excluded_ Sequence[str]tgw_ connections - List of excluded TGW connections for the first transit gateway.
- gateway2_
excluded_ Sequence[str]network_ cidrs - List of excluded network CIDRs for the second transit gateway.
- gateway2_
excluded_ Sequence[str]tgw_ connections - List of excluded TGW connections for the second transit gateway.
- prepend_
as_ Sequence[str]path1s - AS Path Prepend for BGP connection. Can only use the transit's own local AS number, repeated up to 25 times. Applies on transit_gateway_name1. Available in provider version R2.17.2+.
- prepend_
as_ Sequence[str]path2s - AS Path Prepend for BGP connection. Can only use the transit's own local AS number, repeated up to 25 times. Applies on transit_gateway_name2. Available in provider version R2.17.2+.
- tunnel_
count int - Advanced option. Number of public tunnels. Required with
enable_insane_mode_encryption_over_internet
. Conflicts withenable_peering_over_private_network
andenable_single_tunnel_mode
. Type: Integer. Valid Range: 2-20. Available as of provider version R2.19+.
- transit
Gateway StringName1 - The first transit gateway name to make a peer pair.
- transit
Gateway StringName2 - The second transit gateway name to make a peer pair.
- enable
Insane BooleanMode Encryption Over Internet - Advanced option. Enable Insane Mode Encryption over Internet. Transit gateways must be in Insane Mode. Currently, only inter-cloud connections between AWS and Azure are supported. Required with valid
tunnel_count
. Conflicts withenable_peering_over_private_network
andenable_single_tunnel_mode
. Type: Boolean. Default: false. Available as of provider version R2.19+. - enable
Max BooleanPerformance - Indicates whether the maximum amount of HPE tunnels will be created. Only valid when the two transit gateways are each launched in Insane Mode and in the same cloud type. Default value: true. Available as of provider version R2.22.2+.
- enable
Peering BooleanOver Private Network - Advanced option. Enable peering over private network. Only appears and applies to when the two Multi-cloud Transit Gateways are each launched in Insane Mode and in a different cloud type. Conflicts with
enable_insane_mode_encryption_over_internet
andtunnel_count
. Type: Boolean. Default: false. Available in provider version R2.17.1+. - enable
Single BooleanTunnel Mode - Advanced option. Enable peering with Single-Tunnel mode. Only appears and applies to when the two Multi-cloud Transit Gateways are each launched in Insane Mode and in a different cloud type. Required with
enable_peering_over_private_network
. Conflicts withenable_insane_mode_encryption_over_internet
andtunnel_count
. Type: Boolean. Default: false. Available as of provider version R2.18+. - gateway1Excluded
Network List<String>Cidrs - List of excluded network CIDRs for the first transit gateway.
- gateway1Excluded
Tgw List<String>Connections - List of excluded TGW connections for the first transit gateway.
- gateway2Excluded
Network List<String>Cidrs - List of excluded network CIDRs for the second transit gateway.
- gateway2Excluded
Tgw List<String>Connections - List of excluded TGW connections for the second transit gateway.
- prepend
As List<String>Path1s - AS Path Prepend for BGP connection. Can only use the transit's own local AS number, repeated up to 25 times. Applies on transit_gateway_name1. Available in provider version R2.17.2+.
- prepend
As List<String>Path2s - AS Path Prepend for BGP connection. Can only use the transit's own local AS number, repeated up to 25 times. Applies on transit_gateway_name2. Available in provider version R2.17.2+.
- tunnel
Count Number - Advanced option. Number of public tunnels. Required with
enable_insane_mode_encryption_over_internet
. Conflicts withenable_peering_over_private_network
andenable_single_tunnel_mode
. Type: Integer. Valid Range: 2-20. Available as of provider version R2.19+.
Outputs
All input properties are implicitly available as output properties. Additionally, the AviatrixTransitGatewayPeering resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AviatrixTransitGatewayPeering Resource
Get an existing AviatrixTransitGatewayPeering 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?: AviatrixTransitGatewayPeeringState, opts?: CustomResourceOptions): AviatrixTransitGatewayPeering
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
enable_insane_mode_encryption_over_internet: Optional[bool] = None,
enable_max_performance: Optional[bool] = None,
enable_peering_over_private_network: Optional[bool] = None,
enable_single_tunnel_mode: Optional[bool] = None,
gateway1_excluded_network_cidrs: Optional[Sequence[str]] = None,
gateway1_excluded_tgw_connections: Optional[Sequence[str]] = None,
gateway2_excluded_network_cidrs: Optional[Sequence[str]] = None,
gateway2_excluded_tgw_connections: Optional[Sequence[str]] = None,
prepend_as_path1s: Optional[Sequence[str]] = None,
prepend_as_path2s: Optional[Sequence[str]] = None,
transit_gateway_name1: Optional[str] = None,
transit_gateway_name2: Optional[str] = None,
tunnel_count: Optional[int] = None) -> AviatrixTransitGatewayPeering
func GetAviatrixTransitGatewayPeering(ctx *Context, name string, id IDInput, state *AviatrixTransitGatewayPeeringState, opts ...ResourceOption) (*AviatrixTransitGatewayPeering, error)
public static AviatrixTransitGatewayPeering Get(string name, Input<string> id, AviatrixTransitGatewayPeeringState? state, CustomResourceOptions? opts = null)
public static AviatrixTransitGatewayPeering get(String name, Output<String> id, AviatrixTransitGatewayPeeringState 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.
- Enable
Insane boolMode Encryption Over Internet - Advanced option. Enable Insane Mode Encryption over Internet. Transit gateways must be in Insane Mode. Currently, only inter-cloud connections between AWS and Azure are supported. Required with valid
tunnel_count
. Conflicts withenable_peering_over_private_network
andenable_single_tunnel_mode
. Type: Boolean. Default: false. Available as of provider version R2.19+. - Enable
Max boolPerformance - Indicates whether the maximum amount of HPE tunnels will be created. Only valid when the two transit gateways are each launched in Insane Mode and in the same cloud type. Default value: true. Available as of provider version R2.22.2+.
- Enable
Peering boolOver Private Network - Advanced option. Enable peering over private network. Only appears and applies to when the two Multi-cloud Transit Gateways are each launched in Insane Mode and in a different cloud type. Conflicts with
enable_insane_mode_encryption_over_internet
andtunnel_count
. Type: Boolean. Default: false. Available in provider version R2.17.1+. - Enable
Single boolTunnel Mode - Advanced option. Enable peering with Single-Tunnel mode. Only appears and applies to when the two Multi-cloud Transit Gateways are each launched in Insane Mode and in a different cloud type. Required with
enable_peering_over_private_network
. Conflicts withenable_insane_mode_encryption_over_internet
andtunnel_count
. Type: Boolean. Default: false. Available as of provider version R2.18+. - Gateway1Excluded
Network List<string>Cidrs - List of excluded network CIDRs for the first transit gateway.
- Gateway1Excluded
Tgw List<string>Connections - List of excluded TGW connections for the first transit gateway.
- Gateway2Excluded
Network List<string>Cidrs - List of excluded network CIDRs for the second transit gateway.
- Gateway2Excluded
Tgw List<string>Connections - List of excluded TGW connections for the second transit gateway.
- Prepend
As List<string>Path1s - AS Path Prepend for BGP connection. Can only use the transit's own local AS number, repeated up to 25 times. Applies on transit_gateway_name1. Available in provider version R2.17.2+.
- Prepend
As List<string>Path2s - AS Path Prepend for BGP connection. Can only use the transit's own local AS number, repeated up to 25 times. Applies on transit_gateway_name2. Available in provider version R2.17.2+.
- Transit
Gateway stringName1 - The first transit gateway name to make a peer pair.
- Transit
Gateway stringName2 - The second transit gateway name to make a peer pair.
- Tunnel
Count int - Advanced option. Number of public tunnels. Required with
enable_insane_mode_encryption_over_internet
. Conflicts withenable_peering_over_private_network
andenable_single_tunnel_mode
. Type: Integer. Valid Range: 2-20. Available as of provider version R2.19+.
- Enable
Insane boolMode Encryption Over Internet - Advanced option. Enable Insane Mode Encryption over Internet. Transit gateways must be in Insane Mode. Currently, only inter-cloud connections between AWS and Azure are supported. Required with valid
tunnel_count
. Conflicts withenable_peering_over_private_network
andenable_single_tunnel_mode
. Type: Boolean. Default: false. Available as of provider version R2.19+. - Enable
Max boolPerformance - Indicates whether the maximum amount of HPE tunnels will be created. Only valid when the two transit gateways are each launched in Insane Mode and in the same cloud type. Default value: true. Available as of provider version R2.22.2+.
- Enable
Peering boolOver Private Network - Advanced option. Enable peering over private network. Only appears and applies to when the two Multi-cloud Transit Gateways are each launched in Insane Mode and in a different cloud type. Conflicts with
enable_insane_mode_encryption_over_internet
andtunnel_count
. Type: Boolean. Default: false. Available in provider version R2.17.1+. - Enable
Single boolTunnel Mode - Advanced option. Enable peering with Single-Tunnel mode. Only appears and applies to when the two Multi-cloud Transit Gateways are each launched in Insane Mode and in a different cloud type. Required with
enable_peering_over_private_network
. Conflicts withenable_insane_mode_encryption_over_internet
andtunnel_count
. Type: Boolean. Default: false. Available as of provider version R2.18+. - Gateway1Excluded
Network []stringCidrs - List of excluded network CIDRs for the first transit gateway.
- Gateway1Excluded
Tgw []stringConnections - List of excluded TGW connections for the first transit gateway.
- Gateway2Excluded
Network []stringCidrs - List of excluded network CIDRs for the second transit gateway.
- Gateway2Excluded
Tgw []stringConnections - List of excluded TGW connections for the second transit gateway.
- Prepend
As []stringPath1s - AS Path Prepend for BGP connection. Can only use the transit's own local AS number, repeated up to 25 times. Applies on transit_gateway_name1. Available in provider version R2.17.2+.
- Prepend
As []stringPath2s - AS Path Prepend for BGP connection. Can only use the transit's own local AS number, repeated up to 25 times. Applies on transit_gateway_name2. Available in provider version R2.17.2+.
- Transit
Gateway stringName1 - The first transit gateway name to make a peer pair.
- Transit
Gateway stringName2 - The second transit gateway name to make a peer pair.
- Tunnel
Count int - Advanced option. Number of public tunnels. Required with
enable_insane_mode_encryption_over_internet
. Conflicts withenable_peering_over_private_network
andenable_single_tunnel_mode
. Type: Integer. Valid Range: 2-20. Available as of provider version R2.19+.
- enable
Insane BooleanMode Encryption Over Internet - Advanced option. Enable Insane Mode Encryption over Internet. Transit gateways must be in Insane Mode. Currently, only inter-cloud connections between AWS and Azure are supported. Required with valid
tunnel_count
. Conflicts withenable_peering_over_private_network
andenable_single_tunnel_mode
. Type: Boolean. Default: false. Available as of provider version R2.19+. - enable
Max BooleanPerformance - Indicates whether the maximum amount of HPE tunnels will be created. Only valid when the two transit gateways are each launched in Insane Mode and in the same cloud type. Default value: true. Available as of provider version R2.22.2+.
- enable
Peering BooleanOver Private Network - Advanced option. Enable peering over private network. Only appears and applies to when the two Multi-cloud Transit Gateways are each launched in Insane Mode and in a different cloud type. Conflicts with
enable_insane_mode_encryption_over_internet
andtunnel_count
. Type: Boolean. Default: false. Available in provider version R2.17.1+. - enable
Single BooleanTunnel Mode - Advanced option. Enable peering with Single-Tunnel mode. Only appears and applies to when the two Multi-cloud Transit Gateways are each launched in Insane Mode and in a different cloud type. Required with
enable_peering_over_private_network
. Conflicts withenable_insane_mode_encryption_over_internet
andtunnel_count
. Type: Boolean. Default: false. Available as of provider version R2.18+. - gateway1Excluded
Network List<String>Cidrs - List of excluded network CIDRs for the first transit gateway.
- gateway1Excluded
Tgw List<String>Connections - List of excluded TGW connections for the first transit gateway.
- gateway2Excluded
Network List<String>Cidrs - List of excluded network CIDRs for the second transit gateway.
- gateway2Excluded
Tgw List<String>Connections - List of excluded TGW connections for the second transit gateway.
- prepend
As List<String>Path1s - AS Path Prepend for BGP connection. Can only use the transit's own local AS number, repeated up to 25 times. Applies on transit_gateway_name1. Available in provider version R2.17.2+.
- prepend
As List<String>Path2s - AS Path Prepend for BGP connection. Can only use the transit's own local AS number, repeated up to 25 times. Applies on transit_gateway_name2. Available in provider version R2.17.2+.
- transit
Gateway StringName1 - The first transit gateway name to make a peer pair.
- transit
Gateway StringName2 - The second transit gateway name to make a peer pair.
- tunnel
Count Integer - Advanced option. Number of public tunnels. Required with
enable_insane_mode_encryption_over_internet
. Conflicts withenable_peering_over_private_network
andenable_single_tunnel_mode
. Type: Integer. Valid Range: 2-20. Available as of provider version R2.19+.
- enable
Insane booleanMode Encryption Over Internet - Advanced option. Enable Insane Mode Encryption over Internet. Transit gateways must be in Insane Mode. Currently, only inter-cloud connections between AWS and Azure are supported. Required with valid
tunnel_count
. Conflicts withenable_peering_over_private_network
andenable_single_tunnel_mode
. Type: Boolean. Default: false. Available as of provider version R2.19+. - enable
Max booleanPerformance - Indicates whether the maximum amount of HPE tunnels will be created. Only valid when the two transit gateways are each launched in Insane Mode and in the same cloud type. Default value: true. Available as of provider version R2.22.2+.
- enable
Peering booleanOver Private Network - Advanced option. Enable peering over private network. Only appears and applies to when the two Multi-cloud Transit Gateways are each launched in Insane Mode and in a different cloud type. Conflicts with
enable_insane_mode_encryption_over_internet
andtunnel_count
. Type: Boolean. Default: false. Available in provider version R2.17.1+. - enable
Single booleanTunnel Mode - Advanced option. Enable peering with Single-Tunnel mode. Only appears and applies to when the two Multi-cloud Transit Gateways are each launched in Insane Mode and in a different cloud type. Required with
enable_peering_over_private_network
. Conflicts withenable_insane_mode_encryption_over_internet
andtunnel_count
. Type: Boolean. Default: false. Available as of provider version R2.18+. - gateway1Excluded
Network string[]Cidrs - List of excluded network CIDRs for the first transit gateway.
- gateway1Excluded
Tgw string[]Connections - List of excluded TGW connections for the first transit gateway.
- gateway2Excluded
Network string[]Cidrs - List of excluded network CIDRs for the second transit gateway.
- gateway2Excluded
Tgw string[]Connections - List of excluded TGW connections for the second transit gateway.
- prepend
As string[]Path1s - AS Path Prepend for BGP connection. Can only use the transit's own local AS number, repeated up to 25 times. Applies on transit_gateway_name1. Available in provider version R2.17.2+.
- prepend
As string[]Path2s - AS Path Prepend for BGP connection. Can only use the transit's own local AS number, repeated up to 25 times. Applies on transit_gateway_name2. Available in provider version R2.17.2+.
- transit
Gateway stringName1 - The first transit gateway name to make a peer pair.
- transit
Gateway stringName2 - The second transit gateway name to make a peer pair.
- tunnel
Count number - Advanced option. Number of public tunnels. Required with
enable_insane_mode_encryption_over_internet
. Conflicts withenable_peering_over_private_network
andenable_single_tunnel_mode
. Type: Integer. Valid Range: 2-20. Available as of provider version R2.19+.
- enable_
insane_ boolmode_ encryption_ over_ internet - Advanced option. Enable Insane Mode Encryption over Internet. Transit gateways must be in Insane Mode. Currently, only inter-cloud connections between AWS and Azure are supported. Required with valid
tunnel_count
. Conflicts withenable_peering_over_private_network
andenable_single_tunnel_mode
. Type: Boolean. Default: false. Available as of provider version R2.19+. - enable_
max_ boolperformance - Indicates whether the maximum amount of HPE tunnels will be created. Only valid when the two transit gateways are each launched in Insane Mode and in the same cloud type. Default value: true. Available as of provider version R2.22.2+.
- enable_
peering_ boolover_ private_ network - Advanced option. Enable peering over private network. Only appears and applies to when the two Multi-cloud Transit Gateways are each launched in Insane Mode and in a different cloud type. Conflicts with
enable_insane_mode_encryption_over_internet
andtunnel_count
. Type: Boolean. Default: false. Available in provider version R2.17.1+. - enable_
single_ booltunnel_ mode - Advanced option. Enable peering with Single-Tunnel mode. Only appears and applies to when the two Multi-cloud Transit Gateways are each launched in Insane Mode and in a different cloud type. Required with
enable_peering_over_private_network
. Conflicts withenable_insane_mode_encryption_over_internet
andtunnel_count
. Type: Boolean. Default: false. Available as of provider version R2.18+. - gateway1_
excluded_ Sequence[str]network_ cidrs - List of excluded network CIDRs for the first transit gateway.
- gateway1_
excluded_ Sequence[str]tgw_ connections - List of excluded TGW connections for the first transit gateway.
- gateway2_
excluded_ Sequence[str]network_ cidrs - List of excluded network CIDRs for the second transit gateway.
- gateway2_
excluded_ Sequence[str]tgw_ connections - List of excluded TGW connections for the second transit gateway.
- prepend_
as_ Sequence[str]path1s - AS Path Prepend for BGP connection. Can only use the transit's own local AS number, repeated up to 25 times. Applies on transit_gateway_name1. Available in provider version R2.17.2+.
- prepend_
as_ Sequence[str]path2s - AS Path Prepend for BGP connection. Can only use the transit's own local AS number, repeated up to 25 times. Applies on transit_gateway_name2. Available in provider version R2.17.2+.
- transit_
gateway_ strname1 - The first transit gateway name to make a peer pair.
- transit_
gateway_ strname2 - The second transit gateway name to make a peer pair.
- tunnel_
count int - Advanced option. Number of public tunnels. Required with
enable_insane_mode_encryption_over_internet
. Conflicts withenable_peering_over_private_network
andenable_single_tunnel_mode
. Type: Integer. Valid Range: 2-20. Available as of provider version R2.19+.
- enable
Insane BooleanMode Encryption Over Internet - Advanced option. Enable Insane Mode Encryption over Internet. Transit gateways must be in Insane Mode. Currently, only inter-cloud connections between AWS and Azure are supported. Required with valid
tunnel_count
. Conflicts withenable_peering_over_private_network
andenable_single_tunnel_mode
. Type: Boolean. Default: false. Available as of provider version R2.19+. - enable
Max BooleanPerformance - Indicates whether the maximum amount of HPE tunnels will be created. Only valid when the two transit gateways are each launched in Insane Mode and in the same cloud type. Default value: true. Available as of provider version R2.22.2+.
- enable
Peering BooleanOver Private Network - Advanced option. Enable peering over private network. Only appears and applies to when the two Multi-cloud Transit Gateways are each launched in Insane Mode and in a different cloud type. Conflicts with
enable_insane_mode_encryption_over_internet
andtunnel_count
. Type: Boolean. Default: false. Available in provider version R2.17.1+. - enable
Single BooleanTunnel Mode - Advanced option. Enable peering with Single-Tunnel mode. Only appears and applies to when the two Multi-cloud Transit Gateways are each launched in Insane Mode and in a different cloud type. Required with
enable_peering_over_private_network
. Conflicts withenable_insane_mode_encryption_over_internet
andtunnel_count
. Type: Boolean. Default: false. Available as of provider version R2.18+. - gateway1Excluded
Network List<String>Cidrs - List of excluded network CIDRs for the first transit gateway.
- gateway1Excluded
Tgw List<String>Connections - List of excluded TGW connections for the first transit gateway.
- gateway2Excluded
Network List<String>Cidrs - List of excluded network CIDRs for the second transit gateway.
- gateway2Excluded
Tgw List<String>Connections - List of excluded TGW connections for the second transit gateway.
- prepend
As List<String>Path1s - AS Path Prepend for BGP connection. Can only use the transit's own local AS number, repeated up to 25 times. Applies on transit_gateway_name1. Available in provider version R2.17.2+.
- prepend
As List<String>Path2s - AS Path Prepend for BGP connection. Can only use the transit's own local AS number, repeated up to 25 times. Applies on transit_gateway_name2. Available in provider version R2.17.2+.
- transit
Gateway StringName1 - The first transit gateway name to make a peer pair.
- transit
Gateway StringName2 - The second transit gateway name to make a peer pair.
- tunnel
Count Number - Advanced option. Number of public tunnels. Required with
enable_insane_mode_encryption_over_internet
. Conflicts withenable_peering_over_private_network
andenable_single_tunnel_mode
. Type: Integer. Valid Range: 2-20. Available as of provider version R2.19+.
Import
transit_gateway_peering can be imported using the transit_gateway_name1
and transit_gateway_name2
, e.g.
$ pulumi import aviatrix:index/aviatrixTransitGatewayPeering:AviatrixTransitGatewayPeering test transit_gateway_name1~transit_gateway_name2
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- aviatrix astipkovits/pulumi-aviatrix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aviatrix
Terraform Provider.