Viewing docs for Aiven v5.6.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Viewing docs for Aiven v5.6.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
The VPC Peering Connection data source provides information about the existing Aiven VPC Peering Connection.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Aiven = Pulumi.Aiven;
return await Deployment.RunAsync(() =>
{
var mypeeringconnection = Aiven.GetVpcPeeringConnection.Invoke(new()
{
VpcId = aiven_project_vpc.Myvpc.Id,
PeerCloudAccount = "<PEER_ACCOUNT_ID>",
PeerVpc = "<PEER_VPC_ID/NAME>",
});
});
package main
import (
"github.com/pulumi/pulumi-aiven/sdk/v5/go/aiven"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := aiven.LookupVpcPeeringConnection(ctx, &aiven.LookupVpcPeeringConnectionArgs{
VpcId: aiven_project_vpc.Myvpc.Id,
PeerCloudAccount: "<PEER_ACCOUNT_ID>",
PeerVpc: "<PEER_VPC_ID/NAME>",
}, nil)
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.aiven.AivenFunctions;
import com.pulumi.aiven.inputs.GetVpcPeeringConnectionArgs;
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) {
final var mypeeringconnection = AivenFunctions.getVpcPeeringConnection(GetVpcPeeringConnectionArgs.builder()
.vpcId(aiven_project_vpc.myvpc().id())
.peerCloudAccount("<PEER_ACCOUNT_ID>")
.peerVpc("<PEER_VPC_ID/NAME>")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const mypeeringconnection = aiven.getVpcPeeringConnection({
vpcId: aiven_project_vpc.myvpc.id,
peerCloudAccount: "<PEER_ACCOUNT_ID>",
peerVpc: "<PEER_VPC_ID/NAME>",
});
import pulumi
import pulumi_aiven as aiven
mypeeringconnection = aiven.get_vpc_peering_connection(vpc_id=aiven_project_vpc["myvpc"]["id"],
peer_cloud_account="<PEER_ACCOUNT_ID>",
peer_vpc="<PEER_VPC_ID/NAME>")
variables:
mypeeringconnection:
fn::invoke:
Function: aiven:getVpcPeeringConnection
Arguments:
vpcId: ${aiven_project_vpc.myvpc.id}
peerCloudAccount: <PEER_ACCOUNT_ID>
peerVpc: <PEER_VPC_ID/NAME>
Using getVpcPeeringConnection
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getVpcPeeringConnection(args: GetVpcPeeringConnectionArgs, opts?: InvokeOptions): Promise<GetVpcPeeringConnectionResult>
function getVpcPeeringConnectionOutput(args: GetVpcPeeringConnectionOutputArgs, opts?: InvokeOptions): Output<GetVpcPeeringConnectionResult>def get_vpc_peering_connection(peer_cloud_account: Optional[str] = None,
peer_vpc: Optional[str] = None,
vpc_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVpcPeeringConnectionResult
def get_vpc_peering_connection_output(peer_cloud_account: Optional[pulumi.Input[str]] = None,
peer_vpc: Optional[pulumi.Input[str]] = None,
vpc_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVpcPeeringConnectionResult]func LookupVpcPeeringConnection(ctx *Context, args *LookupVpcPeeringConnectionArgs, opts ...InvokeOption) (*LookupVpcPeeringConnectionResult, error)
func LookupVpcPeeringConnectionOutput(ctx *Context, args *LookupVpcPeeringConnectionOutputArgs, opts ...InvokeOption) LookupVpcPeeringConnectionResultOutput> Note: This function is named LookupVpcPeeringConnection in the Go SDK.
public static class GetVpcPeeringConnection
{
public static Task<GetVpcPeeringConnectionResult> InvokeAsync(GetVpcPeeringConnectionArgs args, InvokeOptions? opts = null)
public static Output<GetVpcPeeringConnectionResult> Invoke(GetVpcPeeringConnectionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVpcPeeringConnectionResult> getVpcPeeringConnection(GetVpcPeeringConnectionArgs args, InvokeOptions options)
public static Output<GetVpcPeeringConnectionResult> getVpcPeeringConnection(GetVpcPeeringConnectionArgs args, InvokeOptions options)
fn::invoke:
function: aiven:index/getVpcPeeringConnection:getVpcPeeringConnection
arguments:
# arguments dictionaryThe following arguments are supported:
- Peer
Cloud stringAccount - AWS account ID or GCP project ID of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- Peer
Vpc string - AWS VPC ID or GCP VPC network name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- Vpc
Id string - The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
- Peer
Cloud stringAccount - AWS account ID or GCP project ID of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- Peer
Vpc string - AWS VPC ID or GCP VPC network name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- Vpc
Id string - The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
- peer
Cloud StringAccount - AWS account ID or GCP project ID of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- peer
Vpc String - AWS VPC ID or GCP VPC network name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- vpc
Id String - The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
- peer
Cloud stringAccount - AWS account ID or GCP project ID of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- peer
Vpc string - AWS VPC ID or GCP VPC network name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- vpc
Id string - The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
- peer_
cloud_ straccount - AWS account ID or GCP project ID of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- peer_
vpc str - AWS VPC ID or GCP VPC network name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- vpc_
id str - The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
- peer
Cloud StringAccount - AWS account ID or GCP project ID of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- peer
Vpc String - AWS VPC ID or GCP VPC network name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- vpc
Id String - The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
getVpcPeeringConnection Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Peer
Azure stringApp Id - Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet This property cannot be changed, doing so forces recreation of the resource.
- Peer
Azure stringTenant Id - Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
- Peer
Cloud stringAccount - AWS account ID or GCP project ID of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- Peer
Region string - AWS region of the peered VPC (if not in the same region as Aiven VPC). This property cannot be changed, doing so forces recreation of the resource.
- Peer
Resource stringGroup - Azure resource group name of the peered VPC This property cannot be changed, doing so forces recreation of the resource.
- Peer
Vpc string - AWS VPC ID or GCP VPC network name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- Peering
Connection stringId - Cloud provider identifier for the peering connection if available
- State string
- State of the peering connection
- State
Info Dictionary<string, object> - State-specific help or error information
- Vpc
Id string - The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Peer
Azure stringApp Id - Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet This property cannot be changed, doing so forces recreation of the resource.
- Peer
Azure stringTenant Id - Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
- Peer
Cloud stringAccount - AWS account ID or GCP project ID of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- Peer
Region string - AWS region of the peered VPC (if not in the same region as Aiven VPC). This property cannot be changed, doing so forces recreation of the resource.
- Peer
Resource stringGroup - Azure resource group name of the peered VPC This property cannot be changed, doing so forces recreation of the resource.
- Peer
Vpc string - AWS VPC ID or GCP VPC network name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- Peering
Connection stringId - Cloud provider identifier for the peering connection if available
- State string
- State of the peering connection
- State
Info map[string]interface{} - State-specific help or error information
- Vpc
Id string - The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- peer
Azure StringApp Id - Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet This property cannot be changed, doing so forces recreation of the resource.
- peer
Azure StringTenant Id - Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
- peer
Cloud StringAccount - AWS account ID or GCP project ID of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- peer
Region String - AWS region of the peered VPC (if not in the same region as Aiven VPC). This property cannot be changed, doing so forces recreation of the resource.
- peer
Resource StringGroup - Azure resource group name of the peered VPC This property cannot be changed, doing so forces recreation of the resource.
- peer
Vpc String - AWS VPC ID or GCP VPC network name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- peering
Connection StringId - Cloud provider identifier for the peering connection if available
- state String
- State of the peering connection
- state
Info Map<String,Object> - State-specific help or error information
- vpc
Id String - The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- peer
Azure stringApp Id - Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet This property cannot be changed, doing so forces recreation of the resource.
- peer
Azure stringTenant Id - Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
- peer
Cloud stringAccount - AWS account ID or GCP project ID of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- peer
Region string - AWS region of the peered VPC (if not in the same region as Aiven VPC). This property cannot be changed, doing so forces recreation of the resource.
- peer
Resource stringGroup - Azure resource group name of the peered VPC This property cannot be changed, doing so forces recreation of the resource.
- peer
Vpc string - AWS VPC ID or GCP VPC network name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- peering
Connection stringId - Cloud provider identifier for the peering connection if available
- state string
- State of the peering connection
- state
Info {[key: string]: any} - State-specific help or error information
- vpc
Id string - The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- peer_
azure_ strapp_ id - Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet This property cannot be changed, doing so forces recreation of the resource.
- peer_
azure_ strtenant_ id - Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
- peer_
cloud_ straccount - AWS account ID or GCP project ID of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- peer_
region str - AWS region of the peered VPC (if not in the same region as Aiven VPC). This property cannot be changed, doing so forces recreation of the resource.
- peer_
resource_ strgroup - Azure resource group name of the peered VPC This property cannot be changed, doing so forces recreation of the resource.
- peer_
vpc str - AWS VPC ID or GCP VPC network name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- peering_
connection_ strid - Cloud provider identifier for the peering connection if available
- state str
- State of the peering connection
- state_
info Mapping[str, Any] - State-specific help or error information
- vpc_
id str - The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- peer
Azure StringApp Id - Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet This property cannot be changed, doing so forces recreation of the resource.
- peer
Azure StringTenant Id - Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
- peer
Cloud StringAccount - AWS account ID or GCP project ID of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- peer
Region String - AWS region of the peered VPC (if not in the same region as Aiven VPC). This property cannot be changed, doing so forces recreation of the resource.
- peer
Resource StringGroup - Azure resource group name of the peered VPC This property cannot be changed, doing so forces recreation of the resource.
- peer
Vpc String - AWS VPC ID or GCP VPC network name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- peering
Connection StringId - Cloud provider identifier for the peering connection if available
- state String
- State of the peering connection
- state
Info Map<Any> - State-specific help or error information
- vpc
Id String - The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
Package Details
- Repository
- Aiven pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aivenTerraform Provider.
Viewing docs for Aiven v5.6.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
