Viewing docs for Aiven v6.62.0
published on Thursday, Oct 22, 2026 by Pulumi
published on Thursday, Oct 22, 2026 by Pulumi
Viewing docs for Aiven v6.62.0
published on Thursday, Oct 22, 2026 by Pulumi
published on Thursday, Oct 22, 2026 by Pulumi
The GCP VPC Peering Connection data source provides information about the existing Aiven VPC Peering Connection.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const example = aiven.getGcpOrgVpcPeeringConnection({
organizationId: "org1a23f456789",
organizationVpcId: "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
gcpProjectId: "my-gcp-project",
peerVpc: "my-vpc",
});
import pulumi
import pulumi_aiven as aiven
example = aiven.get_gcp_org_vpc_peering_connection(organization_id="org1a23f456789",
organization_vpc_id="1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
gcp_project_id="my-gcp-project",
peer_vpc="my-vpc")
package main
import (
"github.com/pulumi/pulumi-aiven/sdk/v6/go/aiven"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := aiven.GetGcpOrgVpcPeeringConnection(ctx, &aiven.LookupGcpOrgVpcPeeringConnectionArgs{
OrganizationId: "org1a23f456789",
OrganizationVpcId: "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
GcpProjectId: "my-gcp-project",
PeerVpc: "my-vpc",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aiven = Pulumi.Aiven;
return await Deployment.RunAsync(() =>
{
var example = Aiven.GetGcpOrgVpcPeeringConnection.Invoke(new()
{
OrganizationId = "org1a23f456789",
OrganizationVpcId = "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
GcpProjectId = "my-gcp-project",
PeerVpc = "my-vpc",
});
});
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.GetGcpOrgVpcPeeringConnectionArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 example = AivenFunctions.getGcpOrgVpcPeeringConnection(GetGcpOrgVpcPeeringConnectionArgs.builder()
.organizationId("org1a23f456789")
.organizationVpcId("1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d")
.gcpProjectId("my-gcp-project")
.peerVpc("my-vpc")
.build());
}
}
variables:
example:
fn::invoke:
function: aiven:getGcpOrgVpcPeeringConnection
arguments:
organizationId: org1a23f456789
organizationVpcId: 1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
gcpProjectId: my-gcp-project
peerVpc: my-vpc
terraform {
required_providers {
aiven = {
source = "pulumi/aiven"
}
}
}
data "aiven_gcp_org_vpc_peering_connection" "example" {
organization_id = "org1a23f456789"
organization_vpc_id = "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
gcp_project_id = "my-gcp-project"
peer_vpc = "my-vpc"
}
Using getGcpOrgVpcPeeringConnection
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 getGcpOrgVpcPeeringConnection(args: GetGcpOrgVpcPeeringConnectionArgs, opts?: InvokeOptions): Promise<GetGcpOrgVpcPeeringConnectionResult>
function getGcpOrgVpcPeeringConnectionOutput(args: GetGcpOrgVpcPeeringConnectionOutputArgs, opts?: InvokeOutputOptions): Output<GetGcpOrgVpcPeeringConnectionResult>def get_gcp_org_vpc_peering_connection(gcp_project_id: Optional[str] = None,
organization_id: Optional[str] = None,
organization_vpc_id: Optional[str] = None,
peer_vpc: Optional[str] = None,
timeouts: Optional[GetGcpOrgVpcPeeringConnectionTimeouts] = None,
opts: Optional[InvokeOptions] = None) -> GetGcpOrgVpcPeeringConnectionResult
def get_gcp_org_vpc_peering_connection_output(gcp_project_id: pulumi.Input[Optional[str]] = None,
organization_id: pulumi.Input[Optional[str]] = None,
organization_vpc_id: pulumi.Input[Optional[str]] = None,
peer_vpc: pulumi.Input[Optional[str]] = None,
timeouts: pulumi.Input[Optional[GetGcpOrgVpcPeeringConnectionTimeoutsArgs]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetGcpOrgVpcPeeringConnectionResult]func LookupGcpOrgVpcPeeringConnection(ctx *Context, args *LookupGcpOrgVpcPeeringConnectionArgs, opts ...InvokeOption) (*LookupGcpOrgVpcPeeringConnectionResult, error)
func LookupGcpOrgVpcPeeringConnectionOutput(ctx *Context, args *LookupGcpOrgVpcPeeringConnectionOutputArgs, opts ...InvokeOption) LookupGcpOrgVpcPeeringConnectionResultOutput> Note: This function is named LookupGcpOrgVpcPeeringConnection in the Go SDK.
public static class GetGcpOrgVpcPeeringConnection
{
public static Task<GetGcpOrgVpcPeeringConnectionResult> InvokeAsync(GetGcpOrgVpcPeeringConnectionArgs args, InvokeOptions? opts = null)
public static Output<GetGcpOrgVpcPeeringConnectionResult> Invoke(GetGcpOrgVpcPeeringConnectionInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetGcpOrgVpcPeeringConnectionResult> Invoke(GetGcpOrgVpcPeeringConnectionInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetGcpOrgVpcPeeringConnectionResult> getGcpOrgVpcPeeringConnection(GetGcpOrgVpcPeeringConnectionArgs args, InvokeOptions options)
public static Output<GetGcpOrgVpcPeeringConnectionResult> getGcpOrgVpcPeeringConnection(GetGcpOrgVpcPeeringConnectionArgs args, InvokeOptions options)
public static Output<GetGcpOrgVpcPeeringConnectionResult> getGcpOrgVpcPeeringConnection(GetGcpOrgVpcPeeringConnectionArgs args, InvokeOutputOptions options)
fn::invoke:
function: aiven:index/getGcpOrgVpcPeeringConnection:getGcpOrgVpcPeeringConnection
arguments:
# arguments dictionarydata "aiven_get_gcp_org_vpc_peering_connection" "name" {
# arguments
}The following arguments are supported:
- Gcp
Project stringId - Google Cloud project ID.
- Organization
Id string - ID of an organization.
- Organization
Vpc stringId - Organization VPC ID.
- Peer
Vpc string - Google Cloud VPC network name.
- Timeouts
Get
Gcp Org Vpc Peering Connection Timeouts
- Gcp
Project stringId - Google Cloud project ID.
- Organization
Id string - ID of an organization.
- Organization
Vpc stringId - Organization VPC ID.
- Peer
Vpc string - Google Cloud VPC network name.
- Timeouts
Get
Gcp Org Vpc Peering Connection Timeouts
- gcp_
project_ stringid - Google Cloud project ID.
- organization_
id string - ID of an organization.
- organization_
vpc_ stringid - Organization VPC ID.
- peer_
vpc string - Google Cloud VPC network name.
- timeouts object
- gcp
Project StringId - Google Cloud project ID.
- organization
Id String - ID of an organization.
- organization
Vpc StringId - Organization VPC ID.
- peer
Vpc String - Google Cloud VPC network name.
- timeouts
Get
Gcp Org Vpc Peering Connection Timeouts
- gcp
Project stringId - Google Cloud project ID.
- organization
Id string - ID of an organization.
- organization
Vpc stringId - Organization VPC ID.
- peer
Vpc string - Google Cloud VPC network name.
- timeouts
Get
Gcp Org Vpc Peering Connection Timeouts
- gcp_
project_ strid - Google Cloud project ID.
- organization_
id str - ID of an organization.
- organization_
vpc_ strid - Organization VPC ID.
- peer_
vpc str - Google Cloud VPC network name.
- timeouts
Get
Gcp Org Vpc Peering Connection Timeouts
- gcp
Project StringId - Google Cloud project ID.
- organization
Id String - ID of an organization.
- organization
Vpc StringId - Organization VPC ID.
- peer
Vpc String - Google Cloud VPC network name.
- timeouts Property Map
getGcpOrgVpcPeeringConnection Result
The following output properties are available:
- Gcp
Project stringId - Google Cloud project ID.
- Id string
- Resource ID composed as:
organization_id/organization_vpc_id/gcp_project_id/peer_vpc. - Organization
Id string - ID of an organization.
- Organization
Vpc stringId - Organization VPC ID.
- Peer
Vpc string - Google Cloud VPC network name.
- Self
Link string - Computed Google Cloud network peering link.
- State string
- State of the peering connection. The possible values are
ACTIVE,APPROVED,APPROVED_PEER_REQUESTED,DELETED,DELETED_BY_PEER,DELETING,ERROR,INVALID_SPECIFICATION,PENDING_PEERandREJECTED_BY_PEER. - Timeouts
Get
Gcp Org Vpc Peering Connection Timeouts
- Gcp
Project stringId - Google Cloud project ID.
- Id string
- Resource ID composed as:
organization_id/organization_vpc_id/gcp_project_id/peer_vpc. - Organization
Id string - ID of an organization.
- Organization
Vpc stringId - Organization VPC ID.
- Peer
Vpc string - Google Cloud VPC network name.
- Self
Link string - Computed Google Cloud network peering link.
- State string
- State of the peering connection. The possible values are
ACTIVE,APPROVED,APPROVED_PEER_REQUESTED,DELETED,DELETED_BY_PEER,DELETING,ERROR,INVALID_SPECIFICATION,PENDING_PEERandREJECTED_BY_PEER. - Timeouts
Get
Gcp Org Vpc Peering Connection Timeouts
- gcp_
project_ stringid - Google Cloud project ID.
- id string
- Resource ID composed as:
organization_id/organization_vpc_id/gcp_project_id/peer_vpc. - organization_
id string - ID of an organization.
- organization_
vpc_ stringid - Organization VPC ID.
- peer_
vpc string - Google Cloud VPC network name.
- self_
link string - Computed Google Cloud network peering link.
- state string
- State of the peering connection. The possible values are
ACTIVE,APPROVED,APPROVED_PEER_REQUESTED,DELETED,DELETED_BY_PEER,DELETING,ERROR,INVALID_SPECIFICATION,PENDING_PEERandREJECTED_BY_PEER. - timeouts object
- gcp
Project StringId - Google Cloud project ID.
- id String
- Resource ID composed as:
organization_id/organization_vpc_id/gcp_project_id/peer_vpc. - organization
Id String - ID of an organization.
- organization
Vpc StringId - Organization VPC ID.
- peer
Vpc String - Google Cloud VPC network name.
- self
Link String - Computed Google Cloud network peering link.
- state String
- State of the peering connection. The possible values are
ACTIVE,APPROVED,APPROVED_PEER_REQUESTED,DELETED,DELETED_BY_PEER,DELETING,ERROR,INVALID_SPECIFICATION,PENDING_PEERandREJECTED_BY_PEER. - timeouts
Get
Gcp Org Vpc Peering Connection Timeouts
- gcp
Project stringId - Google Cloud project ID.
- id string
- Resource ID composed as:
organization_id/organization_vpc_id/gcp_project_id/peer_vpc. - organization
Id string - ID of an organization.
- organization
Vpc stringId - Organization VPC ID.
- peer
Vpc string - Google Cloud VPC network name.
- self
Link string - Computed Google Cloud network peering link.
- state string
- State of the peering connection. The possible values are
ACTIVE,APPROVED,APPROVED_PEER_REQUESTED,DELETED,DELETED_BY_PEER,DELETING,ERROR,INVALID_SPECIFICATION,PENDING_PEERandREJECTED_BY_PEER. - timeouts
Get
Gcp Org Vpc Peering Connection Timeouts
- gcp_
project_ strid - Google Cloud project ID.
- id str
- Resource ID composed as:
organization_id/organization_vpc_id/gcp_project_id/peer_vpc. - organization_
id str - ID of an organization.
- organization_
vpc_ strid - Organization VPC ID.
- peer_
vpc str - Google Cloud VPC network name.
- self_
link str - Computed Google Cloud network peering link.
- state str
- State of the peering connection. The possible values are
ACTIVE,APPROVED,APPROVED_PEER_REQUESTED,DELETED,DELETED_BY_PEER,DELETING,ERROR,INVALID_SPECIFICATION,PENDING_PEERandREJECTED_BY_PEER. - timeouts
Get
Gcp Org Vpc Peering Connection Timeouts
- gcp
Project StringId - Google Cloud project ID.
- id String
- Resource ID composed as:
organization_id/organization_vpc_id/gcp_project_id/peer_vpc. - organization
Id String - ID of an organization.
- organization
Vpc StringId - Organization VPC ID.
- peer
Vpc String - Google Cloud VPC network name.
- self
Link String - Computed Google Cloud network peering link.
- state String
- State of the peering connection. The possible values are
ACTIVE,APPROVED,APPROVED_PEER_REQUESTED,DELETED,DELETED_BY_PEER,DELETING,ERROR,INVALID_SPECIFICATION,PENDING_PEERandREJECTED_BY_PEER. - timeouts Property Map
Supporting Types
GetGcpOrgVpcPeeringConnectionTimeouts
- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- read str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
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 v6.62.0
published on Thursday, Oct 22, 2026 by Pulumi
published on Thursday, Oct 22, 2026 by Pulumi