published on Monday, Mar 9, 2026 by Pulumi
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:
- 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
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
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
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
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
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
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
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
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
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
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
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_
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_
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_
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
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
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
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.
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.
- 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
- Id string
- The provider-assigned unique ID for this managed 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
- id String
- The provider-assigned unique ID for this managed 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
- id string
- The provider-assigned unique ID for this managed 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
- id str
- The provider-assigned unique ID for this managed 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
- id String
- The provider-assigned unique ID for this managed 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
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) -> VpcPeeringConnectionfunc 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
published on Monday, Mar 9, 2026 by Pulumi
