getVpcPeeringConnection
# VPC Peering Connection Data Source
The VPC Peering Connection data source provides information about the existing Aiven VPC Peering Connection.
Example Usage
using Pulumi;
using Aiven = Pulumi.Aiven;
class MyStack : Stack
{
public MyStack()
{
var mypeeringconnection = Output.Create(Aiven.GetVpcPeeringConnection.InvokeAsync(new Aiven.GetVpcPeeringConnectionArgs
{
PeerCloudAccount = "<PEER_ACCOUNT_ID>",
PeerVpc = "<PEER_VPC_ID/NAME>",
VpcId = aiven_project_vpc.Myvpc.Id,
}));
}
}
package main
import (
"github.com/pulumi/pulumi-aiven/sdk/v3/go/aiven"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := aiven.LookupVpcPeeringConnection(ctx, &aiven.LookupVpcPeeringConnectionArgs{
PeerCloudAccount: "<PEER_ACCOUNT_ID>",
PeerVpc: "<PEER_VPC_ID/NAME>",
VpcId: aiven_project_vpc.Myvpc.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
import pulumi
import pulumi_aiven as aiven
mypeeringconnection = aiven.get_vpc_peering_connection(peer_cloud_account="<PEER_ACCOUNT_ID>",
peer_vpc="<PEER_VPC_ID/NAME>",
vpc_id=aiven_project_vpc["myvpc"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const mypeeringconnection = aiven_project_vpc_myvpc.id.apply(id => aiven.getVpcPeeringConnection({
peerCloudAccount: "<PEER_ACCOUNT_ID>",
peerVpc: "<PEER_VPC_ID/NAME>",
vpcId: id,
}, { async: true }));
Using getVpcPeeringConnection
function getVpcPeeringConnection(args: GetVpcPeeringConnectionArgs, opts?: InvokeOptions): Promise<GetVpcPeeringConnectionResult>
def get_vpc_peering_connection(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, opts: Optional[InvokeOptions] = None) -> GetVpcPeeringConnectionResult
func LookupVpcPeeringConnection(ctx *Context, args *LookupVpcPeeringConnectionArgs, opts ...InvokeOption) (*LookupVpcPeeringConnectionResult, error)
Note: This function is named
LookupVpcPeeringConnection
in the Go SDK.
public static class GetVpcPeeringConnection {
public static Task<GetVpcPeeringConnectionResult> InvokeAsync(GetVpcPeeringConnectionArgs args, InvokeOptions? opts = null)
}
The following arguments are supported:
- Peer
Cloud stringAccount defines the identifier of the cloud account the VPC is being peered with.
- Peer
Vpc string defines the identifier or name of the remote VPC.
- Vpc
Id string is the Aiven VPC the peering connection is associated with.
- Peer
Azure stringApp Id an Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet.
- Peer
Azure stringTenant Id an Azure tenant id in UUID4 form.
- Peer
Region string defines the region of the remote VPC if it is not in the same region as Aiven VPC.
- Peer
Resource stringGroup an Azure resource group name of the peered VPC.
- Peering
Connection stringId a cloud provider identifier for the peering connection if available.
- State string
is the state of the peering connection. This property is computed by Aiven therefore cannot be set, only read. Where state can be one of:
APPROVED
,PENDING_PEER
,ACTIVE
,DELETED
,DELETED_BY_PEER
,REJECTED_BY_PEER
andINVALID_SPECIFICATION
.- State
Info Dictionary<string, object> state-specific help or error information.
- Peer
Cloud stringAccount defines the identifier of the cloud account the VPC is being peered with.
- Peer
Vpc string defines the identifier or name of the remote VPC.
- Vpc
Id string is the Aiven VPC the peering connection is associated with.
- Peer
Azure stringApp Id an Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet.
- Peer
Azure stringTenant Id an Azure tenant id in UUID4 form.
- Peer
Region string defines the region of the remote VPC if it is not in the same region as Aiven VPC.
- Peer
Resource stringGroup an Azure resource group name of the peered VPC.
- Peering
Connection stringId a cloud provider identifier for the peering connection if available.
- State string
is the state of the peering connection. This property is computed by Aiven therefore cannot be set, only read. Where state can be one of:
APPROVED
,PENDING_PEER
,ACTIVE
,DELETED
,DELETED_BY_PEER
,REJECTED_BY_PEER
andINVALID_SPECIFICATION
.- State
Info map[string]interface{} state-specific help or error information.
- peer
Cloud stringAccount defines the identifier of the cloud account the VPC is being peered with.
- peer
Vpc string defines the identifier or name of the remote VPC.
- vpc
Id string is the Aiven VPC the peering connection is associated with.
- peer
Azure stringApp Id an Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet.
- peer
Azure stringTenant Id an Azure tenant id in UUID4 form.
- peer
Region string defines the region of the remote VPC if it is not in the same region as Aiven VPC.
- peer
Resource stringGroup an Azure resource group name of the peered VPC.
- peering
Connection stringId a cloud provider identifier for the peering connection if available.
- state string
is the state of the peering connection. This property is computed by Aiven therefore cannot be set, only read. Where state can be one of:
APPROVED
,PENDING_PEER
,ACTIVE
,DELETED
,DELETED_BY_PEER
,REJECTED_BY_PEER
andINVALID_SPECIFICATION
.- state
Info {[key: string]: any} state-specific help or error information.
- peer_
cloud_ straccount defines the identifier of the cloud account the VPC is being peered with.
- peer_
vpc str defines the identifier or name of the remote VPC.
- vpc_
id str is the Aiven VPC the peering connection is associated with.
- peer_
azure_ strapp_ id an Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet.
- peer_
azure_ strtenant_ id an Azure tenant id in UUID4 form.
- peer_
region str defines the region of the remote VPC if it is not in the same region as Aiven VPC.
- peer_
resource_ strgroup an Azure resource group name of the peered VPC.
- peering_
connection_ strid a cloud provider identifier for the peering connection if available.
- state str
is the state of the peering connection. This property is computed by Aiven therefore cannot be set, only read. Where state can be one of:
APPROVED
,PENDING_PEER
,ACTIVE
,DELETED
,DELETED_BY_PEER
,REJECTED_BY_PEER
andINVALID_SPECIFICATION
.- state_
info Mapping[str, Any] state-specific help or error information.
getVpcPeeringConnection Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Peer
Cloud stringAccount - Peer
Vpc string - Peering
Connection stringId a cloud provider identifier for the peering connection if available.
- State string
is the state of the peering connection. This property is computed by Aiven therefore cannot be set, only read. Where state can be one of:
APPROVED
,PENDING_PEER
,ACTIVE
,DELETED
,DELETED_BY_PEER
,REJECTED_BY_PEER
andINVALID_SPECIFICATION
.- State
Info Dictionary<string, object> state-specific help or error information.
- Vpc
Id string - Peer
Azure stringApp Id an Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet.
- Peer
Azure stringTenant Id an Azure tenant id in UUID4 form.
- Peer
Region string defines the region of the remote VPC if it is not in the same region as Aiven VPC.
- Peer
Resource stringGroup an Azure resource group name of the peered VPC.
- Id string
The provider-assigned unique ID for this managed resource.
- Peer
Cloud stringAccount - Peer
Vpc string - Peering
Connection stringId a cloud provider identifier for the peering connection if available.
- State string
is the state of the peering connection. This property is computed by Aiven therefore cannot be set, only read. Where state can be one of:
APPROVED
,PENDING_PEER
,ACTIVE
,DELETED
,DELETED_BY_PEER
,REJECTED_BY_PEER
andINVALID_SPECIFICATION
.- State
Info map[string]interface{} state-specific help or error information.
- Vpc
Id string - Peer
Azure stringApp Id an Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet.
- Peer
Azure stringTenant Id an Azure tenant id in UUID4 form.
- Peer
Region string defines the region of the remote VPC if it is not in the same region as Aiven VPC.
- Peer
Resource stringGroup an Azure resource group name of the peered VPC.
- id string
The provider-assigned unique ID for this managed resource.
- peer
Cloud stringAccount - peer
Vpc string - peering
Connection stringId a cloud provider identifier for the peering connection if available.
- state string
is the state of the peering connection. This property is computed by Aiven therefore cannot be set, only read. Where state can be one of:
APPROVED
,PENDING_PEER
,ACTIVE
,DELETED
,DELETED_BY_PEER
,REJECTED_BY_PEER
andINVALID_SPECIFICATION
.- state
Info {[key: string]: any} state-specific help or error information.
- vpc
Id string - peer
Azure stringApp Id an Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet.
- peer
Azure stringTenant Id an Azure tenant id in UUID4 form.
- peer
Region string defines the region of the remote VPC if it is not in the same region as Aiven VPC.
- peer
Resource stringGroup an Azure resource group name of the peered VPC.
- id str
The provider-assigned unique ID for this managed resource.
- peer_
cloud_ straccount - peer_
vpc str - peering_
connection_ strid a cloud provider identifier for the peering connection if available.
- state str
is the state of the peering connection. This property is computed by Aiven therefore cannot be set, only read. Where state can be one of:
APPROVED
,PENDING_PEER
,ACTIVE
,DELETED
,DELETED_BY_PEER
,REJECTED_BY_PEER
andINVALID_SPECIFICATION
.- state_
info Mapping[str, Any] state-specific help or error information.
- vpc_
id str - peer_
azure_ strapp_ id an Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet.
- peer_
azure_ strtenant_ id an Azure tenant id in UUID4 form.
- peer_
region str defines the region of the remote VPC if it is not in the same region as Aiven VPC.
- peer_
resource_ strgroup an Azure resource group name of the peered VPC.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aiven
Terraform Provider.