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

getVpcPeeringConnection

# VPC Peering Connection Data Source

The VPC Peering Connection data source provides information about the existing Aiven VPC Peering Connection.

Example Usage

using Pulumi;
using Aiven = Pulumi.Aiven;

class MyStack : Stack
{
    public MyStack()
    {
        var mypeeringconnection = Output.Create(Aiven.GetVpcPeeringConnection.InvokeAsync(new Aiven.GetVpcPeeringConnectionArgs
        {
            PeerCloudAccount = "<PEER_ACCOUNT_ID>",
            PeerVpc = "<PEER_VPC_ID/NAME>",
            VpcId = aiven_project_vpc.Myvpc.Id,
        }));
    }

}
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.LookupVpcPeeringConnection(ctx, &aiven.LookupVpcPeeringConnectionArgs{
            PeerCloudAccount: "<PEER_ACCOUNT_ID>",
            PeerVpc:          "<PEER_VPC_ID/NAME>",
            VpcId:            aiven_project_vpc.Myvpc.Id,
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aiven as aiven

mypeeringconnection = aiven.get_vpc_peering_connection(peer_cloud_account="<PEER_ACCOUNT_ID>",
    peer_vpc="<PEER_VPC_ID/NAME>",
    vpc_id=aiven_project_vpc["myvpc"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";

const mypeeringconnection = aiven_project_vpc_myvpc.id.apply(id => aiven.getVpcPeeringConnection({
    peerCloudAccount: "<PEER_ACCOUNT_ID>",
    peerVpc: "<PEER_VPC_ID/NAME>",
    vpcId: id,
}, { async: true }));

Using getVpcPeeringConnection

function getVpcPeeringConnection(args: GetVpcPeeringConnectionArgs, opts?: InvokeOptions): Promise<GetVpcPeeringConnectionResult>
def get_vpc_peering_connection(peer_azure_app_id: Optional[str] = None, peer_azure_tenant_id: Optional[str] = None, peer_cloud_account: Optional[str] = None, peer_region: Optional[str] = None, peer_resource_group: 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, vpc_id: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetVpcPeeringConnectionResult
func LookupVpcPeeringConnection(ctx *Context, args *LookupVpcPeeringConnectionArgs, opts ...InvokeOption) (*LookupVpcPeeringConnectionResult, error)

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

public static class GetVpcPeeringConnection {
    public static Task<GetVpcPeeringConnectionResult> InvokeAsync(GetVpcPeeringConnectionArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

PeerCloudAccount string

defines the identifier of the cloud account the VPC is being peered with.

PeerVpc string

defines the identifier or name of the remote VPC.

VpcId string

is the Aiven VPC the peering connection is associated with.

PeerAzureAppId string

an Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet.

PeerAzureTenantId string

an Azure tenant id in UUID4 form.

PeerRegion string

defines the region of the remote VPC if it is not in the same region as Aiven VPC.

PeerResourceGroup string

an Azure resource group name of the peered VPC.

PeeringConnectionId string

a cloud provider identifier for the peering connection if available.

State string

is the state of the peering connection. This property is computed by Aiven therefore cannot be set, only read. Where state can be one of: APPROVED, PENDING_PEER, ACTIVE, DELETED, DELETED_BY_PEER, REJECTED_BY_PEER and INVALID_SPECIFICATION.

StateInfo Dictionary<string, object>

state-specific help or error information.

PeerCloudAccount string

defines the identifier of the cloud account the VPC is being peered with.

PeerVpc string

defines the identifier or name of the remote VPC.

VpcId string

is the Aiven VPC the peering connection is associated with.

PeerAzureAppId string

an Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet.

PeerAzureTenantId string

an Azure tenant id in UUID4 form.

PeerRegion string

defines the region of the remote VPC if it is not in the same region as Aiven VPC.

PeerResourceGroup string

an Azure resource group name of the peered VPC.

PeeringConnectionId string

a cloud provider identifier for the peering connection if available.

State string

is the state of the peering connection. This property is computed by Aiven therefore cannot be set, only read. Where state can be one of: APPROVED, PENDING_PEER, ACTIVE, DELETED, DELETED_BY_PEER, REJECTED_BY_PEER and INVALID_SPECIFICATION.

StateInfo map[string]interface{}

state-specific help or error information.

peerCloudAccount string

defines the identifier of the cloud account the VPC is being peered with.

peerVpc string

defines the identifier or name of the remote VPC.

vpcId string

is the Aiven VPC the peering connection is associated with.

peerAzureAppId string

an Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet.

peerAzureTenantId string

an Azure tenant id in UUID4 form.

peerRegion string

defines the region of the remote VPC if it is not in the same region as Aiven VPC.

peerResourceGroup string

an Azure resource group name of the peered VPC.

peeringConnectionId string

a cloud provider identifier for the peering connection if available.

state string

is the state of the peering connection. This property is computed by Aiven therefore cannot be set, only read. Where state can be one of: APPROVED, PENDING_PEER, ACTIVE, DELETED, DELETED_BY_PEER, REJECTED_BY_PEER and INVALID_SPECIFICATION.

stateInfo {[key: string]: any}

state-specific help or error information.

peer_cloud_account str

defines the identifier of the cloud account the VPC is being peered with.

peer_vpc str

defines the identifier or name of the remote VPC.

vpc_id str

is the Aiven VPC the peering connection is associated with.

peer_azure_app_id str

an Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet.

peer_azure_tenant_id str

an Azure tenant id in UUID4 form.

peer_region str

defines the region of the remote VPC if it is not in the same region as Aiven VPC.

peer_resource_group str

an Azure resource group name of the peered VPC.

peering_connection_id str

a cloud provider identifier for the peering connection if available.

state str

is the state of the peering connection. This property is computed by Aiven therefore cannot be set, only read. Where state can be one of: APPROVED, PENDING_PEER, ACTIVE, DELETED, DELETED_BY_PEER, REJECTED_BY_PEER and INVALID_SPECIFICATION.

state_info Mapping[str, Any]

state-specific help or error information.

getVpcPeeringConnection Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

PeerCloudAccount string
PeerVpc string
PeeringConnectionId string

a cloud provider identifier for the peering connection if available.

State string

is the state of the peering connection. This property is computed by Aiven therefore cannot be set, only read. Where state can be one of: APPROVED, PENDING_PEER, ACTIVE, DELETED, DELETED_BY_PEER, REJECTED_BY_PEER and INVALID_SPECIFICATION.

StateInfo Dictionary<string, object>

state-specific help or error information.

VpcId string
PeerAzureAppId string

an Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet.

PeerAzureTenantId string

an Azure tenant id in UUID4 form.

PeerRegion string

defines the region of the remote VPC if it is not in the same region as Aiven VPC.

PeerResourceGroup string

an Azure resource group name of the peered VPC.

Id string

The provider-assigned unique ID for this managed resource.

PeerCloudAccount string
PeerVpc string
PeeringConnectionId string

a cloud provider identifier for the peering connection if available.

State string

is the state of the peering connection. This property is computed by Aiven therefore cannot be set, only read. Where state can be one of: APPROVED, PENDING_PEER, ACTIVE, DELETED, DELETED_BY_PEER, REJECTED_BY_PEER and INVALID_SPECIFICATION.

StateInfo map[string]interface{}

state-specific help or error information.

VpcId string
PeerAzureAppId string

an Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet.

PeerAzureTenantId string

an Azure tenant id in UUID4 form.

PeerRegion string

defines the region of the remote VPC if it is not in the same region as Aiven VPC.

PeerResourceGroup string

an Azure resource group name of the peered VPC.

id string

The provider-assigned unique ID for this managed resource.

peerCloudAccount string
peerVpc string
peeringConnectionId string

a cloud provider identifier for the peering connection if available.

state string

is the state of the peering connection. This property is computed by Aiven therefore cannot be set, only read. Where state can be one of: APPROVED, PENDING_PEER, ACTIVE, DELETED, DELETED_BY_PEER, REJECTED_BY_PEER and INVALID_SPECIFICATION.

stateInfo {[key: string]: any}

state-specific help or error information.

vpcId string
peerAzureAppId string

an Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet.

peerAzureTenantId string

an Azure tenant id in UUID4 form.

peerRegion string

defines the region of the remote VPC if it is not in the same region as Aiven VPC.

peerResourceGroup string

an Azure resource group name of the peered VPC.

id str

The provider-assigned unique ID for this managed resource.

peer_cloud_account str
peer_vpc str
peering_connection_id str

a cloud provider identifier for the peering connection if available.

state str

is the state of the peering connection. This property is computed by Aiven therefore cannot be set, only read. Where state can be one of: APPROVED, PENDING_PEER, ACTIVE, DELETED, DELETED_BY_PEER, REJECTED_BY_PEER and INVALID_SPECIFICATION.

state_info Mapping[str, Any]

state-specific help or error information.

vpc_id str
peer_azure_app_id str

an Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet.

peer_azure_tenant_id str

an Azure tenant id in UUID4 form.

peer_region str

defines the region of the remote VPC if it is not in the same region as Aiven VPC.

peer_resource_group str

an Azure resource group name of the peered VPC.

Package Details

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