1. Packages
  2. Packages
  3. Aiven Provider
  4. API Docs
  5. VpcPeeringConnection
Viewing docs for Aiven v5.6.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
aiven logo
Viewing docs for Aiven v5.6.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Import

     $ pulumi import aiven:index/vpcPeeringConnection:VpcPeeringConnection mypeeringconnection project/vpc_id/peer_cloud_account/peer_vpc/peer_region
    

    Example Usage

    Example coming soon!

    Example coming soon!

    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aiven.VpcPeeringConnection;
    import com.pulumi.aiven.VpcPeeringConnectionArgs;
    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) {
            var mypeeringconnection = new VpcPeeringConnection("mypeeringconnection", VpcPeeringConnectionArgs.builder()        
                .vpcId(aiven_project_vpc.myvpc().id())
                .peerCloudAccount("<PEER_ACCOUNT_ID>")
                .peerVpc("<PEER_VPC_ID/NAME>")
                .peerRegion("<PEER_REGION>")
                .timeouts(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
                .build());
    
        }
    }
    

    Example coming soon!

    Example coming soon!

    resources:
      mypeeringconnection:
        type: aiven:VpcPeeringConnection
        properties:
          vpcId: ${aiven_project_vpc.myvpc.id}
          peerCloudAccount: <PEER_ACCOUNT_ID>
          peerVpc: <PEER_VPC_ID/NAME>
          peerRegion: <PEER_REGION>
          timeouts:
            - create: 10m
    

    Create VpcPeeringConnection Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VpcPeeringConnection(name: string, args: VpcPeeringConnectionArgs, opts?: CustomResourceOptions);
    @overload
    def VpcPeeringConnection(resource_name: str,
                             args: VpcPeeringConnectionArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpcPeeringConnection(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             peer_cloud_account: Optional[str] = None,
                             peer_vpc: Optional[str] = None,
                             vpc_id: Optional[str] = None,
                             peer_azure_app_id: Optional[str] = None,
                             peer_azure_tenant_id: Optional[str] = None,
                             peer_region: Optional[str] = None,
                             peer_resource_group: Optional[str] = None)
    func NewVpcPeeringConnection(ctx *Context, name string, args VpcPeeringConnectionArgs, opts ...ResourceOption) (*VpcPeeringConnection, error)
    public VpcPeeringConnection(string name, VpcPeeringConnectionArgs args, CustomResourceOptions? opts = null)
    public VpcPeeringConnection(String name, VpcPeeringConnectionArgs args)
    public VpcPeeringConnection(String name, VpcPeeringConnectionArgs args, CustomResourceOptions options)
    
    type: aiven:VpcPeeringConnection
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args VpcPeeringConnectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args VpcPeeringConnectionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args VpcPeeringConnectionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpcPeeringConnectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpcPeeringConnectionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var vpcPeeringConnectionResource = new Aiven.VpcPeeringConnection("vpcPeeringConnectionResource", new()
    {
        PeerCloudAccount = "string",
        PeerVpc = "string",
        VpcId = "string",
        PeerAzureAppId = "string",
        PeerAzureTenantId = "string",
        PeerRegion = "string",
        PeerResourceGroup = "string",
    });
    
    example, err := aiven.NewVpcPeeringConnection(ctx, "vpcPeeringConnectionResource", &aiven.VpcPeeringConnectionArgs{
    	PeerCloudAccount:  pulumi.String("string"),
    	PeerVpc:           pulumi.String("string"),
    	VpcId:             pulumi.String("string"),
    	PeerAzureAppId:    pulumi.String("string"),
    	PeerAzureTenantId: pulumi.String("string"),
    	PeerRegion:        pulumi.String("string"),
    	PeerResourceGroup: pulumi.String("string"),
    })
    
    var vpcPeeringConnectionResource = new VpcPeeringConnection("vpcPeeringConnectionResource", VpcPeeringConnectionArgs.builder()
        .peerCloudAccount("string")
        .peerVpc("string")
        .vpcId("string")
        .peerAzureAppId("string")
        .peerAzureTenantId("string")
        .peerRegion("string")
        .peerResourceGroup("string")
        .build());
    
    vpc_peering_connection_resource = aiven.VpcPeeringConnection("vpcPeeringConnectionResource",
        peer_cloud_account="string",
        peer_vpc="string",
        vpc_id="string",
        peer_azure_app_id="string",
        peer_azure_tenant_id="string",
        peer_region="string",
        peer_resource_group="string")
    
    const vpcPeeringConnectionResource = new aiven.VpcPeeringConnection("vpcPeeringConnectionResource", {
        peerCloudAccount: "string",
        peerVpc: "string",
        vpcId: "string",
        peerAzureAppId: "string",
        peerAzureTenantId: "string",
        peerRegion: "string",
        peerResourceGroup: "string",
    });
    
    type: aiven:VpcPeeringConnection
    properties:
        peerAzureAppId: string
        peerAzureTenantId: string
        peerCloudAccount: string
        peerRegion: string
        peerResourceGroup: string
        peerVpc: string
        vpcId: string
    

    VpcPeeringConnection Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The VpcPeeringConnection resource accepts the following input properties:

    PeerCloudAccount string
    AWS account ID or GCP project ID of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
    PeerVpc 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.
    VpcId string
    The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
    PeerAzureAppId string
    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.
    PeerAzureTenantId string
    Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
    PeerRegion 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.
    PeerResourceGroup string
    Azure resource group name of the peered VPC This property cannot be changed, doing so forces recreation of the resource.
    PeerCloudAccount string
    AWS account ID or GCP project ID of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
    PeerVpc 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.
    VpcId string
    The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
    PeerAzureAppId string
    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.
    PeerAzureTenantId string
    Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
    PeerRegion 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.
    PeerResourceGroup string
    Azure resource group name of the peered VPC This property cannot be changed, doing so forces recreation of the resource.
    peerCloudAccount String
    AWS account ID or GCP project ID of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
    peerVpc 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.
    vpcId String
    The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
    peerAzureAppId String
    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.
    peerAzureTenantId String
    Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
    peerRegion 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.
    peerResourceGroup String
    Azure resource group name of the peered VPC This property cannot be changed, doing so forces recreation of the resource.
    peerCloudAccount string
    AWS account ID or GCP project ID of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
    peerVpc 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.
    vpcId string
    The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
    peerAzureAppId string
    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.
    peerAzureTenantId string
    Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
    peerRegion 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.
    peerResourceGroup string
    Azure resource group name of the peered VPC This property cannot be changed, doing so forces recreation of the resource.
    peer_cloud_account str
    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_azure_app_id str
    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_tenant_id str
    Azure tenant id in UUID4 form. 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_group str
    Azure resource group name of the peered VPC This property cannot be changed, doing so forces recreation of the resource.
    peerCloudAccount String
    AWS account ID or GCP project ID of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
    peerVpc 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.
    vpcId String
    The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
    peerAzureAppId String
    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.
    peerAzureTenantId String
    Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
    peerRegion 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.
    peerResourceGroup String
    Azure resource group name of the peered VPC This property cannot be changed, doing so forces recreation of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VpcPeeringConnection resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    PeeringConnectionId string
    Cloud provider identifier for the peering connection if available
    State string
    State of the peering connection
    StateInfo Dictionary<string, object>
    State-specific help or error information
    Id string
    The provider-assigned unique ID for this managed resource.
    PeeringConnectionId string
    Cloud provider identifier for the peering connection if available
    State string
    State of the peering connection
    StateInfo map[string]interface{}
    State-specific help or error information
    id String
    The provider-assigned unique ID for this managed resource.
    peeringConnectionId String
    Cloud provider identifier for the peering connection if available
    state String
    State of the peering connection
    stateInfo Map<String,Object>
    State-specific help or error information
    id string
    The provider-assigned unique ID for this managed resource.
    peeringConnectionId string
    Cloud provider identifier for the peering connection if available
    state string
    State of the peering connection
    stateInfo {[key: string]: any}
    State-specific help or error information
    id str
    The provider-assigned unique ID for this managed resource.
    peering_connection_id str
    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
    id String
    The provider-assigned unique ID for this managed resource.
    peeringConnectionId String
    Cloud provider identifier for the peering connection if available
    state String
    State of the peering connection
    stateInfo Map<Any>
    State-specific help or error information

    Look up Existing VpcPeeringConnection Resource

    Get an existing VpcPeeringConnection resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: VpcPeeringConnectionState, opts?: CustomResourceOptions): VpcPeeringConnection
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            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) -> VpcPeeringConnection
    func GetVpcPeeringConnection(ctx *Context, name string, id IDInput, state *VpcPeeringConnectionState, opts ...ResourceOption) (*VpcPeeringConnection, error)
    public static VpcPeeringConnection Get(string name, Input<string> id, VpcPeeringConnectionState? state, CustomResourceOptions? opts = null)
    public static VpcPeeringConnection get(String name, Output<String> id, VpcPeeringConnectionState state, CustomResourceOptions options)
    resources:  _:    type: aiven:VpcPeeringConnection    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    PeerAzureAppId string
    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.
    PeerAzureTenantId string
    Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
    PeerCloudAccount string
    AWS account ID or GCP project ID of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
    PeerRegion 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.
    PeerResourceGroup string
    Azure resource group name of the peered VPC This property cannot be changed, doing so forces recreation of the resource.
    PeerVpc 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.
    PeeringConnectionId string
    Cloud provider identifier for the peering connection if available
    State string
    State of the peering connection
    StateInfo Dictionary<string, object>
    State-specific help or error information
    VpcId string
    The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
    PeerAzureAppId string
    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.
    PeerAzureTenantId string
    Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
    PeerCloudAccount string
    AWS account ID or GCP project ID of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
    PeerRegion 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.
    PeerResourceGroup string
    Azure resource group name of the peered VPC This property cannot be changed, doing so forces recreation of the resource.
    PeerVpc 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.
    PeeringConnectionId string
    Cloud provider identifier for the peering connection if available
    State string
    State of the peering connection
    StateInfo map[string]interface{}
    State-specific help or error information
    VpcId string
    The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
    peerAzureAppId String
    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.
    peerAzureTenantId String
    Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
    peerCloudAccount String
    AWS account ID or GCP project ID of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
    peerRegion 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.
    peerResourceGroup String
    Azure resource group name of the peered VPC This property cannot be changed, doing so forces recreation of the resource.
    peerVpc 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.
    peeringConnectionId String
    Cloud provider identifier for the peering connection if available
    state String
    State of the peering connection
    stateInfo Map<String,Object>
    State-specific help or error information
    vpcId String
    The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
    peerAzureAppId string
    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.
    peerAzureTenantId string
    Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
    peerCloudAccount string
    AWS account ID or GCP project ID of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
    peerRegion 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.
    peerResourceGroup string
    Azure resource group name of the peered VPC This property cannot be changed, doing so forces recreation of the resource.
    peerVpc 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.
    peeringConnectionId string
    Cloud provider identifier for the peering connection if available
    state string
    State of the peering connection
    stateInfo {[key: string]: any}
    State-specific help or error information
    vpcId string
    The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
    peer_azure_app_id str
    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_tenant_id str
    Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
    peer_cloud_account str
    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_group str
    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_id str
    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.
    peerAzureAppId String
    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.
    peerAzureTenantId String
    Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
    peerCloudAccount String
    AWS account ID or GCP project ID of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
    peerRegion 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.
    peerResourceGroup String
    Azure resource group name of the peered VPC This property cannot be changed, doing so forces recreation of the resource.
    peerVpc 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.
    peeringConnectionId String
    Cloud provider identifier for the peering connection if available
    state String
    State of the peering connection
    stateInfo Map<Any>
    State-specific help or error information
    vpcId 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 aiven Terraform Provider.
    aiven logo
    Viewing docs for Aiven v5.6.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.