1. Registry
  2. Packages
  3. Aiven Provider
  4. API Docs
  5. getAwsOrgVpcPeeringConnection
Viewing docs for Aiven v6.62.0
published on Thursday, Oct 22, 2026 by Pulumi
aiven logo aiven logo
Viewing docs for Aiven v6.62.0
published on Thursday, Oct 22, 2026 by Pulumi

    Gets information about an AWS VPC peering connection.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aiven from "@pulumi/aiven";
    
    const example = aiven.getAwsOrgVpcPeeringConnection({
        organizationId: "org1a23f456789",
        organizationVpcId: "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
        awsAccountId: "123456789012",
        awsVpcId: "vpc-2f09a348",
        awsVpcRegion: "us-east-1",
    });
    
    import pulumi
    import pulumi_aiven as aiven
    
    example = aiven.get_aws_org_vpc_peering_connection(organization_id="org1a23f456789",
        organization_vpc_id="1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
        aws_account_id="123456789012",
        aws_vpc_id="vpc-2f09a348",
        aws_vpc_region="us-east-1")
    
    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.GetAwsOrgVpcPeeringConnection(ctx, &aiven.LookupAwsOrgVpcPeeringConnectionArgs{
    			OrganizationId:    "org1a23f456789",
    			OrganizationVpcId: "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
    			AwsAccountId:      "123456789012",
    			AwsVpcId:          "vpc-2f09a348",
    			AwsVpcRegion:      "us-east-1",
    		}, 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.GetAwsOrgVpcPeeringConnection.Invoke(new()
        {
            OrganizationId = "org1a23f456789",
            OrganizationVpcId = "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
            AwsAccountId = "123456789012",
            AwsVpcId = "vpc-2f09a348",
            AwsVpcRegion = "us-east-1",
        });
    
    });
    
    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.GetAwsOrgVpcPeeringConnectionArgs;
    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.getAwsOrgVpcPeeringConnection(GetAwsOrgVpcPeeringConnectionArgs.builder()
                .organizationId("org1a23f456789")
                .organizationVpcId("1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d")
                .awsAccountId("123456789012")
                .awsVpcId("vpc-2f09a348")
                .awsVpcRegion("us-east-1")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: aiven:getAwsOrgVpcPeeringConnection
          arguments:
            organizationId: org1a23f456789
            organizationVpcId: 1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
            awsAccountId: '123456789012'
            awsVpcId: vpc-2f09a348
            awsVpcRegion: us-east-1
    
    terraform {
      required_providers {
        aiven = {
          source = "pulumi/aiven"
        }
      }
    }
    
    data "aiven_aws_org_vpc_peering_connection" "example" {
      organization_id     = "org1a23f456789"
      organization_vpc_id = "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
      aws_account_id      = "123456789012"
      aws_vpc_id          = "vpc-2f09a348"
      aws_vpc_region      = "us-east-1"
    }
    

    Using getAwsOrgVpcPeeringConnection

    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 getAwsOrgVpcPeeringConnection(args: GetAwsOrgVpcPeeringConnectionArgs, opts?: InvokeOptions): Promise<GetAwsOrgVpcPeeringConnectionResult>
    function getAwsOrgVpcPeeringConnectionOutput(args: GetAwsOrgVpcPeeringConnectionOutputArgs, opts?: InvokeOutputOptions): Output<GetAwsOrgVpcPeeringConnectionResult>
    def get_aws_org_vpc_peering_connection(aws_account_id: Optional[str] = None,
                                           aws_vpc_id: Optional[str] = None,
                                           aws_vpc_region: Optional[str] = None,
                                           organization_id: Optional[str] = None,
                                           organization_vpc_id: Optional[str] = None,
                                           timeouts: Optional[GetAwsOrgVpcPeeringConnectionTimeouts] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetAwsOrgVpcPeeringConnectionResult
    def get_aws_org_vpc_peering_connection_output(aws_account_id: pulumi.Input[Optional[str]] = None,
                                           aws_vpc_id: pulumi.Input[Optional[str]] = None,
                                           aws_vpc_region: pulumi.Input[Optional[str]] = None,
                                           organization_id: pulumi.Input[Optional[str]] = None,
                                           organization_vpc_id: pulumi.Input[Optional[str]] = None,
                                           timeouts: pulumi.Input[Optional[GetAwsOrgVpcPeeringConnectionTimeoutsArgs]] = None,
                                           opts: Optional[InvokeOutputOptions] = None) -> Output[GetAwsOrgVpcPeeringConnectionResult]
    func LookupAwsOrgVpcPeeringConnection(ctx *Context, args *LookupAwsOrgVpcPeeringConnectionArgs, opts ...InvokeOption) (*LookupAwsOrgVpcPeeringConnectionResult, error)
    func LookupAwsOrgVpcPeeringConnectionOutput(ctx *Context, args *LookupAwsOrgVpcPeeringConnectionOutputArgs, opts ...InvokeOption) LookupAwsOrgVpcPeeringConnectionResultOutput

    > Note: This function is named LookupAwsOrgVpcPeeringConnection in the Go SDK.

    public static class GetAwsOrgVpcPeeringConnection 
    {
        public static Task<GetAwsOrgVpcPeeringConnectionResult> InvokeAsync(GetAwsOrgVpcPeeringConnectionArgs args, InvokeOptions? opts = null)
        public static Output<GetAwsOrgVpcPeeringConnectionResult> Invoke(GetAwsOrgVpcPeeringConnectionInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetAwsOrgVpcPeeringConnectionResult> Invoke(GetAwsOrgVpcPeeringConnectionInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetAwsOrgVpcPeeringConnectionResult> getAwsOrgVpcPeeringConnection(GetAwsOrgVpcPeeringConnectionArgs args, InvokeOptions options)
    public static Output<GetAwsOrgVpcPeeringConnectionResult> getAwsOrgVpcPeeringConnection(GetAwsOrgVpcPeeringConnectionArgs args, InvokeOptions options)
    public static Output<GetAwsOrgVpcPeeringConnectionResult> getAwsOrgVpcPeeringConnection(GetAwsOrgVpcPeeringConnectionArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aiven:index/getAwsOrgVpcPeeringConnection:getAwsOrgVpcPeeringConnection
      arguments:
        # arguments dictionary
    data "aiven_get_aws_org_vpc_peering_connection" "name" {
        # arguments
    }

    The following arguments are supported:

    AwsAccountId string
    AWS account ID.
    AwsVpcId string
    AWS VPC ID.
    AwsVpcRegion string
    The AWS region of the peered VPC. For example, eu-central-1.
    OrganizationId string
    ID of an organization.
    OrganizationVpcId string
    Organization VPC ID.
    Timeouts GetAwsOrgVpcPeeringConnectionTimeouts
    AwsAccountId string
    AWS account ID.
    AwsVpcId string
    AWS VPC ID.
    AwsVpcRegion string
    The AWS region of the peered VPC. For example, eu-central-1.
    OrganizationId string
    ID of an organization.
    OrganizationVpcId string
    Organization VPC ID.
    Timeouts GetAwsOrgVpcPeeringConnectionTimeouts
    aws_account_id string
    AWS account ID.
    aws_vpc_id string
    AWS VPC ID.
    aws_vpc_region string
    The AWS region of the peered VPC. For example, eu-central-1.
    organization_id string
    ID of an organization.
    organization_vpc_id string
    Organization VPC ID.
    timeouts object
    awsAccountId String
    AWS account ID.
    awsVpcId String
    AWS VPC ID.
    awsVpcRegion String
    The AWS region of the peered VPC. For example, eu-central-1.
    organizationId String
    ID of an organization.
    organizationVpcId String
    Organization VPC ID.
    timeouts GetAwsOrgVpcPeeringConnectionTimeouts
    awsAccountId string
    AWS account ID.
    awsVpcId string
    AWS VPC ID.
    awsVpcRegion string
    The AWS region of the peered VPC. For example, eu-central-1.
    organizationId string
    ID of an organization.
    organizationVpcId string
    Organization VPC ID.
    timeouts GetAwsOrgVpcPeeringConnectionTimeouts
    aws_account_id str
    AWS account ID.
    aws_vpc_id str
    AWS VPC ID.
    aws_vpc_region str
    The AWS region of the peered VPC. For example, eu-central-1.
    organization_id str
    ID of an organization.
    organization_vpc_id str
    Organization VPC ID.
    timeouts GetAwsOrgVpcPeeringConnectionTimeouts
    awsAccountId String
    AWS account ID.
    awsVpcId String
    AWS VPC ID.
    awsVpcRegion String
    The AWS region of the peered VPC. For example, eu-central-1.
    organizationId String
    ID of an organization.
    organizationVpcId String
    Organization VPC ID.
    timeouts Property Map

    getAwsOrgVpcPeeringConnection Result

    The following output properties are available:

    AwsAccountId string
    AWS account ID.
    AwsVpcId string
    AWS VPC ID.
    AwsVpcPeeringConnectionId string
    The ID of the AWS VPC peering connection.
    AwsVpcRegion string
    The AWS region of the peered VPC. For example, eu-central-1.
    Id string
    Resource ID composed as: organization_id/organization_vpc_id/aws_account_id/aws_vpc_id/aws_vpc_region.
    OrganizationId string
    ID of an organization.
    OrganizationVpcId string
    Organization VPC ID.
    PeeringConnectionId string
    Organization peering connection ID.
    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_PEER and REJECTED_BY_PEER.
    Timeouts GetAwsOrgVpcPeeringConnectionTimeouts
    AwsAccountId string
    AWS account ID.
    AwsVpcId string
    AWS VPC ID.
    AwsVpcPeeringConnectionId string
    The ID of the AWS VPC peering connection.
    AwsVpcRegion string
    The AWS region of the peered VPC. For example, eu-central-1.
    Id string
    Resource ID composed as: organization_id/organization_vpc_id/aws_account_id/aws_vpc_id/aws_vpc_region.
    OrganizationId string
    ID of an organization.
    OrganizationVpcId string
    Organization VPC ID.
    PeeringConnectionId string
    Organization peering connection ID.
    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_PEER and REJECTED_BY_PEER.
    Timeouts GetAwsOrgVpcPeeringConnectionTimeouts
    aws_account_id string
    AWS account ID.
    aws_vpc_id string
    AWS VPC ID.
    aws_vpc_peering_connection_id string
    The ID of the AWS VPC peering connection.
    aws_vpc_region string
    The AWS region of the peered VPC. For example, eu-central-1.
    id string
    Resource ID composed as: organization_id/organization_vpc_id/aws_account_id/aws_vpc_id/aws_vpc_region.
    organization_id string
    ID of an organization.
    organization_vpc_id string
    Organization VPC ID.
    peering_connection_id string
    Organization peering connection ID.
    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_PEER and REJECTED_BY_PEER.
    timeouts object
    awsAccountId String
    AWS account ID.
    awsVpcId String
    AWS VPC ID.
    awsVpcPeeringConnectionId String
    The ID of the AWS VPC peering connection.
    awsVpcRegion String
    The AWS region of the peered VPC. For example, eu-central-1.
    id String
    Resource ID composed as: organization_id/organization_vpc_id/aws_account_id/aws_vpc_id/aws_vpc_region.
    organizationId String
    ID of an organization.
    organizationVpcId String
    Organization VPC ID.
    peeringConnectionId String
    Organization peering connection ID.
    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_PEER and REJECTED_BY_PEER.
    timeouts GetAwsOrgVpcPeeringConnectionTimeouts
    awsAccountId string
    AWS account ID.
    awsVpcId string
    AWS VPC ID.
    awsVpcPeeringConnectionId string
    The ID of the AWS VPC peering connection.
    awsVpcRegion string
    The AWS region of the peered VPC. For example, eu-central-1.
    id string
    Resource ID composed as: organization_id/organization_vpc_id/aws_account_id/aws_vpc_id/aws_vpc_region.
    organizationId string
    ID of an organization.
    organizationVpcId string
    Organization VPC ID.
    peeringConnectionId string
    Organization peering connection ID.
    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_PEER and REJECTED_BY_PEER.
    timeouts GetAwsOrgVpcPeeringConnectionTimeouts
    aws_account_id str
    AWS account ID.
    aws_vpc_id str
    AWS VPC ID.
    aws_vpc_peering_connection_id str
    The ID of the AWS VPC peering connection.
    aws_vpc_region str
    The AWS region of the peered VPC. For example, eu-central-1.
    id str
    Resource ID composed as: organization_id/organization_vpc_id/aws_account_id/aws_vpc_id/aws_vpc_region.
    organization_id str
    ID of an organization.
    organization_vpc_id str
    Organization VPC ID.
    peering_connection_id str
    Organization peering connection ID.
    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_PEER and REJECTED_BY_PEER.
    timeouts GetAwsOrgVpcPeeringConnectionTimeouts
    awsAccountId String
    AWS account ID.
    awsVpcId String
    AWS VPC ID.
    awsVpcPeeringConnectionId String
    The ID of the AWS VPC peering connection.
    awsVpcRegion String
    The AWS region of the peered VPC. For example, eu-central-1.
    id String
    Resource ID composed as: organization_id/organization_vpc_id/aws_account_id/aws_vpc_id/aws_vpc_region.
    organizationId String
    ID of an organization.
    organizationVpcId String
    Organization VPC ID.
    peeringConnectionId String
    Organization peering connection ID.
    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_PEER and REJECTED_BY_PEER.
    timeouts Property Map

    Supporting Types

    GetAwsOrgVpcPeeringConnectionTimeouts

    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 aiven Terraform Provider.
    aiven logo aiven logo
    Viewing docs for Aiven v6.62.0
    published on Thursday, Oct 22, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial