aiven.AzureVpcPeeringConnection
Explore with Pulumi AI
Creates and manages an Azure VPC peering connection with an Aiven VPC.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const exampleVpc = new aiven.ProjectVpc("example_vpc", {
project: exampleProject.project,
cloudName: "google-europe-west1",
networkCidr: "192.168.1.0/24",
});
const azureToAivenPeering = new aiven.AzureVpcPeeringConnection("azure_to_aiven_peering", {
vpcId: exampleVpc.id,
azureSubscriptionId: "00000000-0000-0000-0000-000000000000",
peerResourceGroup: "example-resource-group",
vnetName: "example-vnet",
peerAzureAppId: "00000000-0000-0000-0000-000000000000",
peerAzureTenantId: "00000000-0000-0000-0000-000000000000",
});
import pulumi
import pulumi_aiven as aiven
example_vpc = aiven.ProjectVpc("example_vpc",
project=example_project["project"],
cloud_name="google-europe-west1",
network_cidr="192.168.1.0/24")
azure_to_aiven_peering = aiven.AzureVpcPeeringConnection("azure_to_aiven_peering",
vpc_id=example_vpc.id,
azure_subscription_id="00000000-0000-0000-0000-000000000000",
peer_resource_group="example-resource-group",
vnet_name="example-vnet",
peer_azure_app_id="00000000-0000-0000-0000-000000000000",
peer_azure_tenant_id="00000000-0000-0000-0000-000000000000")
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 {
exampleVpc, err := aiven.NewProjectVpc(ctx, "example_vpc", &aiven.ProjectVpcArgs{
Project: pulumi.Any(exampleProject.Project),
CloudName: pulumi.String("google-europe-west1"),
NetworkCidr: pulumi.String("192.168.1.0/24"),
})
if err != nil {
return err
}
_, err = aiven.NewAzureVpcPeeringConnection(ctx, "azure_to_aiven_peering", &aiven.AzureVpcPeeringConnectionArgs{
VpcId: exampleVpc.ID(),
AzureSubscriptionId: pulumi.String("00000000-0000-0000-0000-000000000000"),
PeerResourceGroup: pulumi.String("example-resource-group"),
VnetName: pulumi.String("example-vnet"),
PeerAzureAppId: pulumi.String("00000000-0000-0000-0000-000000000000"),
PeerAzureTenantId: pulumi.String("00000000-0000-0000-0000-000000000000"),
})
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 exampleVpc = new Aiven.ProjectVpc("example_vpc", new()
{
Project = exampleProject.Project,
CloudName = "google-europe-west1",
NetworkCidr = "192.168.1.0/24",
});
var azureToAivenPeering = new Aiven.AzureVpcPeeringConnection("azure_to_aiven_peering", new()
{
VpcId = exampleVpc.Id,
AzureSubscriptionId = "00000000-0000-0000-0000-000000000000",
PeerResourceGroup = "example-resource-group",
VnetName = "example-vnet",
PeerAzureAppId = "00000000-0000-0000-0000-000000000000",
PeerAzureTenantId = "00000000-0000-0000-0000-000000000000",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aiven.ProjectVpc;
import com.pulumi.aiven.ProjectVpcArgs;
import com.pulumi.aiven.AzureVpcPeeringConnection;
import com.pulumi.aiven.AzureVpcPeeringConnectionArgs;
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 exampleVpc = new ProjectVpc("exampleVpc", ProjectVpcArgs.builder()
.project(exampleProject.project())
.cloudName("google-europe-west1")
.networkCidr("192.168.1.0/24")
.build());
var azureToAivenPeering = new AzureVpcPeeringConnection("azureToAivenPeering", AzureVpcPeeringConnectionArgs.builder()
.vpcId(exampleVpc.id())
.azureSubscriptionId("00000000-0000-0000-0000-000000000000")
.peerResourceGroup("example-resource-group")
.vnetName("example-vnet")
.peerAzureAppId("00000000-0000-0000-0000-000000000000")
.peerAzureTenantId("00000000-0000-0000-0000-000000000000")
.build());
}
}
resources:
exampleVpc:
type: aiven:ProjectVpc
name: example_vpc
properties:
project: ${exampleProject.project}
cloudName: google-europe-west1
networkCidr: 192.168.1.0/24
azureToAivenPeering:
type: aiven:AzureVpcPeeringConnection
name: azure_to_aiven_peering
properties:
vpcId: ${exampleVpc.id}
azureSubscriptionId: 00000000-0000-0000-0000-000000000000
peerResourceGroup: example-resource-group
vnetName: example-vnet
peerAzureAppId: 00000000-0000-0000-0000-000000000000
peerAzureTenantId: 00000000-0000-0000-0000-000000000000
Create AzureVpcPeeringConnection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AzureVpcPeeringConnection(name: string, args: AzureVpcPeeringConnectionArgs, opts?: CustomResourceOptions);
@overload
def AzureVpcPeeringConnection(resource_name: str,
args: AzureVpcPeeringConnectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AzureVpcPeeringConnection(resource_name: str,
opts: Optional[ResourceOptions] = None,
azure_subscription_id: Optional[str] = None,
peer_azure_app_id: Optional[str] = None,
peer_azure_tenant_id: Optional[str] = None,
peer_resource_group: Optional[str] = None,
vnet_name: Optional[str] = None,
vpc_id: Optional[str] = None)
func NewAzureVpcPeeringConnection(ctx *Context, name string, args AzureVpcPeeringConnectionArgs, opts ...ResourceOption) (*AzureVpcPeeringConnection, error)
public AzureVpcPeeringConnection(string name, AzureVpcPeeringConnectionArgs args, CustomResourceOptions? opts = null)
public AzureVpcPeeringConnection(String name, AzureVpcPeeringConnectionArgs args)
public AzureVpcPeeringConnection(String name, AzureVpcPeeringConnectionArgs args, CustomResourceOptions options)
type: aiven:AzureVpcPeeringConnection
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 AzureVpcPeeringConnectionArgs
- 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 AzureVpcPeeringConnectionArgs
- 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 AzureVpcPeeringConnectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AzureVpcPeeringConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AzureVpcPeeringConnectionArgs
- 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 azureVpcPeeringConnectionResource = new Aiven.AzureVpcPeeringConnection("azureVpcPeeringConnectionResource", new()
{
AzureSubscriptionId = "string",
PeerAzureAppId = "string",
PeerAzureTenantId = "string",
PeerResourceGroup = "string",
VnetName = "string",
VpcId = "string",
});
example, err := aiven.NewAzureVpcPeeringConnection(ctx, "azureVpcPeeringConnectionResource", &aiven.AzureVpcPeeringConnectionArgs{
AzureSubscriptionId: pulumi.String("string"),
PeerAzureAppId: pulumi.String("string"),
PeerAzureTenantId: pulumi.String("string"),
PeerResourceGroup: pulumi.String("string"),
VnetName: pulumi.String("string"),
VpcId: pulumi.String("string"),
})
var azureVpcPeeringConnectionResource = new AzureVpcPeeringConnection("azureVpcPeeringConnectionResource", AzureVpcPeeringConnectionArgs.builder()
.azureSubscriptionId("string")
.peerAzureAppId("string")
.peerAzureTenantId("string")
.peerResourceGroup("string")
.vnetName("string")
.vpcId("string")
.build());
azure_vpc_peering_connection_resource = aiven.AzureVpcPeeringConnection("azureVpcPeeringConnectionResource",
azure_subscription_id="string",
peer_azure_app_id="string",
peer_azure_tenant_id="string",
peer_resource_group="string",
vnet_name="string",
vpc_id="string")
const azureVpcPeeringConnectionResource = new aiven.AzureVpcPeeringConnection("azureVpcPeeringConnectionResource", {
azureSubscriptionId: "string",
peerAzureAppId: "string",
peerAzureTenantId: "string",
peerResourceGroup: "string",
vnetName: "string",
vpcId: "string",
});
type: aiven:AzureVpcPeeringConnection
properties:
azureSubscriptionId: string
peerAzureAppId: string
peerAzureTenantId: string
peerResourceGroup: string
vnetName: string
vpcId: string
AzureVpcPeeringConnection 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 AzureVpcPeeringConnection resource accepts the following input properties:
- Azure
Subscription stringId - The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
- Peer
Azure stringApp Id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
- Peer
Azure stringTenant Id - The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- Peer
Resource stringGroup - The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- Vnet
Name string - The name of the Azure VNet. Changing this property forces recreation of the resource.
- Vpc
Id string - The ID of the Aiven VPC. Changing this property forces recreation of the resource.
- Azure
Subscription stringId - The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
- Peer
Azure stringApp Id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
- Peer
Azure stringTenant Id - The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- Peer
Resource stringGroup - The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- Vnet
Name string - The name of the Azure VNet. Changing this property forces recreation of the resource.
- Vpc
Id string - The ID of the Aiven VPC. Changing this property forces recreation of the resource.
- azure
Subscription StringId - The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
- peer
Azure StringApp Id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
- peer
Azure StringTenant Id - The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- peer
Resource StringGroup - The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- vnet
Name String - The name of the Azure VNet. Changing this property forces recreation of the resource.
- vpc
Id String - The ID of the Aiven VPC. Changing this property forces recreation of the resource.
- azure
Subscription stringId - The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
- peer
Azure stringApp Id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
- peer
Azure stringTenant Id - The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- peer
Resource stringGroup - The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- vnet
Name string - The name of the Azure VNet. Changing this property forces recreation of the resource.
- vpc
Id string - The ID of the Aiven VPC. Changing this property forces recreation of the resource.
- azure_
subscription_ strid - The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
- peer_
azure_ strapp_ id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
- peer_
azure_ strtenant_ id - The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- peer_
resource_ strgroup - The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- vnet_
name str - The name of the Azure VNet. Changing this property forces recreation of the resource.
- vpc_
id str - The ID of the Aiven VPC. Changing this property forces recreation of the resource.
- azure
Subscription StringId - The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
- peer
Azure StringApp Id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
- peer
Azure StringTenant Id - The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- peer
Resource StringGroup - The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- vnet
Name String - The name of the Azure VNet. Changing this property forces recreation of the resource.
- vpc
Id String - The ID of the Aiven VPC. Changing this property forces recreation of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the AzureVpcPeeringConnection resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Peering
Connection stringId - The ID of the cloud provider for the peering connection.
- State string
- State of the peering connection
- State
Info Dictionary<string, string> - State-specific help or error information.
- Id string
- The provider-assigned unique ID for this managed resource.
- Peering
Connection stringId - The ID of the cloud provider for the peering connection.
- State string
- State of the peering connection
- State
Info map[string]string - State-specific help or error information.
- id String
- The provider-assigned unique ID for this managed resource.
- peering
Connection StringId - The ID of the cloud provider for the peering connection.
- state String
- State of the peering connection
- state
Info Map<String,String> - State-specific help or error information.
- id string
- The provider-assigned unique ID for this managed resource.
- peering
Connection stringId - The ID of the cloud provider for the peering connection.
- state string
- State of the peering connection
- state
Info {[key: string]: string} - State-specific help or error information.
- id str
- The provider-assigned unique ID for this managed resource.
- peering_
connection_ strid - The ID of the cloud provider for the peering connection.
- state str
- State of the peering connection
- state_
info Mapping[str, str] - State-specific help or error information.
- id String
- The provider-assigned unique ID for this managed resource.
- peering
Connection StringId - The ID of the cloud provider for the peering connection.
- state String
- State of the peering connection
- state
Info Map<String> - State-specific help or error information.
Look up Existing AzureVpcPeeringConnection Resource
Get an existing AzureVpcPeeringConnection 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?: AzureVpcPeeringConnectionState, opts?: CustomResourceOptions): AzureVpcPeeringConnection
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
azure_subscription_id: Optional[str] = None,
peer_azure_app_id: Optional[str] = None,
peer_azure_tenant_id: Optional[str] = None,
peer_resource_group: Optional[str] = None,
peering_connection_id: Optional[str] = None,
state: Optional[str] = None,
state_info: Optional[Mapping[str, str]] = None,
vnet_name: Optional[str] = None,
vpc_id: Optional[str] = None) -> AzureVpcPeeringConnection
func GetAzureVpcPeeringConnection(ctx *Context, name string, id IDInput, state *AzureVpcPeeringConnectionState, opts ...ResourceOption) (*AzureVpcPeeringConnection, error)
public static AzureVpcPeeringConnection Get(string name, Input<string> id, AzureVpcPeeringConnectionState? state, CustomResourceOptions? opts = null)
public static AzureVpcPeeringConnection get(String name, Output<String> id, AzureVpcPeeringConnectionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Azure
Subscription stringId - The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
- Peer
Azure stringApp Id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
- Peer
Azure stringTenant Id - The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- Peer
Resource stringGroup - The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- Peering
Connection stringId - The ID of the cloud provider for the peering connection.
- State string
- State of the peering connection
- State
Info Dictionary<string, string> - State-specific help or error information.
- Vnet
Name string - The name of the Azure VNet. Changing this property forces recreation of the resource.
- Vpc
Id string - The ID of the Aiven VPC. Changing this property forces recreation of the resource.
- Azure
Subscription stringId - The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
- Peer
Azure stringApp Id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
- Peer
Azure stringTenant Id - The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- Peer
Resource stringGroup - The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- Peering
Connection stringId - The ID of the cloud provider for the peering connection.
- State string
- State of the peering connection
- State
Info map[string]string - State-specific help or error information.
- Vnet
Name string - The name of the Azure VNet. Changing this property forces recreation of the resource.
- Vpc
Id string - The ID of the Aiven VPC. Changing this property forces recreation of the resource.
- azure
Subscription StringId - The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
- peer
Azure StringApp Id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
- peer
Azure StringTenant Id - The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- peer
Resource StringGroup - The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- peering
Connection StringId - The ID of the cloud provider for the peering connection.
- state String
- State of the peering connection
- state
Info Map<String,String> - State-specific help or error information.
- vnet
Name String - The name of the Azure VNet. Changing this property forces recreation of the resource.
- vpc
Id String - The ID of the Aiven VPC. Changing this property forces recreation of the resource.
- azure
Subscription stringId - The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
- peer
Azure stringApp Id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
- peer
Azure stringTenant Id - The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- peer
Resource stringGroup - The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- peering
Connection stringId - The ID of the cloud provider for the peering connection.
- state string
- State of the peering connection
- state
Info {[key: string]: string} - State-specific help or error information.
- vnet
Name string - The name of the Azure VNet. Changing this property forces recreation of the resource.
- vpc
Id string - The ID of the Aiven VPC. Changing this property forces recreation of the resource.
- azure_
subscription_ strid - The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
- peer_
azure_ strapp_ id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
- peer_
azure_ strtenant_ id - The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- peer_
resource_ strgroup - The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- peering_
connection_ strid - The ID of the cloud provider for the peering connection.
- state str
- State of the peering connection
- state_
info Mapping[str, str] - State-specific help or error information.
- vnet_
name str - The name of the Azure VNet. Changing this property forces recreation of the resource.
- vpc_
id str - The ID of the Aiven VPC. Changing this property forces recreation of the resource.
- azure
Subscription StringId - The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
- peer
Azure StringApp Id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
- peer
Azure StringTenant Id - The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- peer
Resource StringGroup - The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- peering
Connection StringId - The ID of the cloud provider for the peering connection.
- state String
- State of the peering connection
- state
Info Map<String> - State-specific help or error information.
- vnet
Name String - The name of the Azure VNet. Changing this property forces recreation of the resource.
- vpc
Id String - The ID of the Aiven VPC. Changing this property forces recreation of the resource.
Import
$ pulumi import aiven:index/azureVpcPeeringConnection:AzureVpcPeeringConnection azure_to_aiven_peering PROJECT/VPC_ID/AZURE_SUBSCRIPTION_ID/VNET_NAME
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Aiven pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aiven
Terraform Provider.