Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

getTransitGatewayVpcAttachment

# Transit Gateway VPC Attachment Data Source

The Transit Gateway VPC Attachment resource allows the creation and management Transit Gateway VPC Attachment VPC peering connection between Aiven and AWS.

Example Usage

using Pulumi;
using Aiven = Pulumi.Aiven;

class MyStack : Stack
{
    public MyStack()
    {
        var attachment = Output.Create(Aiven.GetTransitGatewayVpcAttachment.InvokeAsync(new Aiven.GetTransitGatewayVpcAttachmentArgs
        {
            VpcId = aiven_project_vpc.Bar.Id,
            PeerCloudAccount = "<PEER_ACCOUNT_ID>",
            PeerVpc = "google-project1",
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-aiven/sdk/v3/go/aiven"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := aiven.LookupTransitGatewayVpcAttachment(ctx, &aiven.LookupTransitGatewayVpcAttachmentArgs{
            VpcId:            aiven_project_vpc.Bar.Id,
            PeerCloudAccount: "<PEER_ACCOUNT_ID>",
            PeerVpc:          "google-project1",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aiven as aiven

attachment = aiven.get_transit_gateway_vpc_attachment(vpc_id=aiven_project_vpc["bar"]["id"],
    peer_cloud_account="<PEER_ACCOUNT_ID>",
    peer_vpc="google-project1")
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";

const attachment = aiven.getTransitGatewayVpcAttachment({
    vpcId: aiven_project_vpc.bar.id,
    peerCloudAccount: "<PEER_ACCOUNT_ID>",
    peerVpc: "google-project1",
});

Using getTransitGatewayVpcAttachment

function getTransitGatewayVpcAttachment(args: GetTransitGatewayVpcAttachmentArgs, opts?: InvokeOptions): Promise<GetTransitGatewayVpcAttachmentResult>
def get_transit_gateway_vpc_attachment(peer_cloud_account: Optional[str] = None, peer_region: Optional[str] = None, peer_vpc: Optional[str] = None, peering_connection_id: Optional[str] = None, state: Optional[str] = None, state_info: Optional[Mapping[str, Any]] = None, user_peer_network_cidrs: Optional[Sequence[str]] = None, vpc_id: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetTransitGatewayVpcAttachmentResult
func LookupTransitGatewayVpcAttachment(ctx *Context, args *LookupTransitGatewayVpcAttachmentArgs, opts ...InvokeOption) (*LookupTransitGatewayVpcAttachmentResult, error)

Note: This function is named LookupTransitGatewayVpcAttachment in the Go SDK.

public static class GetTransitGatewayVpcAttachment {
    public static Task<GetTransitGatewayVpcAttachmentResult> InvokeAsync(GetTransitGatewayVpcAttachmentArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

PeerCloudAccount string

AWS account ID of the peered VPC.

PeerVpc string

Transit gateway ID

VpcId string

is the Aiven VPC the peering connection is associated with.

PeerRegion string

AWS region of the peered VPC (if not in the same region as Aiven VPC).

PeeringConnectionId string
State string
StateInfo Dictionary<string, object>
UserPeerNetworkCidrs List<string>

List of private IPv4 ranges to route through the peering connection.

PeerCloudAccount string

AWS account ID of the peered VPC.

PeerVpc string

Transit gateway ID

VpcId string

is the Aiven VPC the peering connection is associated with.

PeerRegion string

AWS region of the peered VPC (if not in the same region as Aiven VPC).

PeeringConnectionId string
State string
StateInfo map[string]interface{}
UserPeerNetworkCidrs []string

List of private IPv4 ranges to route through the peering connection.

peerCloudAccount string

AWS account ID of the peered VPC.

peerVpc string

Transit gateway ID

vpcId string

is the Aiven VPC the peering connection is associated with.

peerRegion string

AWS region of the peered VPC (if not in the same region as Aiven VPC).

peeringConnectionId string
state string
stateInfo {[key: string]: any}
userPeerNetworkCidrs string[]

List of private IPv4 ranges to route through the peering connection.

peer_cloud_account str

AWS account ID of the peered VPC.

peer_vpc str

Transit gateway ID

vpc_id str

is the Aiven VPC the peering connection is associated with.

peer_region str

AWS region of the peered VPC (if not in the same region as Aiven VPC).

peering_connection_id str
state str
state_info Mapping[str, Any]
user_peer_network_cidrs Sequence[str]

List of private IPv4 ranges to route through the peering connection.

getTransitGatewayVpcAttachment Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

PeerCloudAccount string
PeerVpc string
PeeringConnectionId string
State string
StateInfo Dictionary<string, object>
VpcId string
PeerRegion string

AWS region of the peered VPC (if not in the same region as Aiven VPC).

UserPeerNetworkCidrs List<string>

List of private IPv4 ranges to route through the peering connection.

Id string

The provider-assigned unique ID for this managed resource.

PeerCloudAccount string
PeerVpc string
PeeringConnectionId string
State string
StateInfo map[string]interface{}
VpcId string
PeerRegion string

AWS region of the peered VPC (if not in the same region as Aiven VPC).

UserPeerNetworkCidrs []string

List of private IPv4 ranges to route through the peering connection.

id string

The provider-assigned unique ID for this managed resource.

peerCloudAccount string
peerVpc string
peeringConnectionId string
state string
stateInfo {[key: string]: any}
vpcId string
peerRegion string

AWS region of the peered VPC (if not in the same region as Aiven VPC).

userPeerNetworkCidrs string[]

List of private IPv4 ranges to route through the peering connection.

id str

The provider-assigned unique ID for this managed resource.

peer_cloud_account str
peer_vpc str
peering_connection_id str
state str
state_info Mapping[str, Any]
vpc_id str
peer_region str

AWS region of the peered VPC (if not in the same region as Aiven VPC).

user_peer_network_cidrs Sequence[str]

List of private IPv4 ranges to route through the peering connection.

Package Details

Repository
https://github.com/pulumi/pulumi-aiven
License
Apache-2.0
Notes
This Pulumi package is based on the aiven Terraform Provider.