VpcPeeringConnection
Example Usage
using Pulumi;
using Aiven = Pulumi.Aiven;
class MyStack : Stack
{
public MyStack()
{
var mypeeringconnection = new Aiven.VpcPeeringConnection("mypeeringconnection", new Aiven.VpcPeeringConnectionArgs
{
PeerCloudAccount = "<PEER_ACCOUNT_ID>",
PeerRegion = "<PEER_REGION>",
PeerVpc = "<PEER_VPC_ID/NAME>",
VpcId = aiven_project_vpc.Myvpc.Id,
});
}
}
Coming soon!
import pulumi
import pulumi_aiven as aiven
mypeeringconnection = aiven.VpcPeeringConnection("mypeeringconnection",
peer_cloud_account="<PEER_ACCOUNT_ID>",
peer_region="<PEER_REGION>",
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 = new aiven.VpcPeeringConnection("mypeeringconnection", {
peerCloudAccount: "<PEER_ACCOUNT_ID>",
peerRegion: "<PEER_REGION>",
peerVpc: "<PEER_VPC_ID/NAME>",
vpcId: aiven_project_vpc_myvpc.id,
});Create a VpcPeeringConnection Resource
new VpcPeeringConnection(name: string, args: VpcPeeringConnectionArgs, opts?: CustomResourceOptions);def VpcPeeringConnection(resource_name, opts=None, client_timeout=None, peer_cloud_account=None, peer_region=None, peer_vpc=None, vpc_id=None, __props__=None);func NewVpcPeeringConnection(ctx *Context, name string, args VpcPeeringConnectionArgs, opts ...ResourceOption) (*VpcPeeringConnection, error)public VpcPeeringConnection(string name, VpcPeeringConnectionArgs args, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
VpcPeeringConnection Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The VpcPeeringConnection resource accepts the following input properties:
- Peer
Cloud stringAccount AWS account ID or GCP project ID of the peered VPC
- Peer
Vpc string AWS VPC ID or GCP VPC network name of the peered VPC
- Vpc
Id string The VPC the peering connection belongs to
- Client
Timeout VpcPeering Connection Client Timeout Args Custom Terraform Client timeouts
- Peer
Region string AWS region of the peered VPC (if not in the same region as Aiven VPC)
- Peer
Cloud stringAccount AWS account ID or GCP project ID of the peered VPC
- Peer
Vpc string AWS VPC ID or GCP VPC network name of the peered VPC
- Vpc
Id string The VPC the peering connection belongs to
- Client
Timeout VpcPeering Connection Client Timeout Custom Terraform Client timeouts
- Peer
Region string AWS region of the peered VPC (if not in the same region as Aiven VPC)
- peer
Cloud stringAccount AWS account ID or GCP project ID of the peered VPC
- peer
Vpc string AWS VPC ID or GCP VPC network name of the peered VPC
- vpc
Id string The VPC the peering connection belongs to
- client
Timeout VpcPeering Connection Client Timeout Custom Terraform Client timeouts
- peer
Region string AWS region of the peered VPC (if not in the same region as Aiven VPC)
- peer_
cloud_ straccount AWS account ID or GCP project ID of the peered VPC
- peer_
vpc str AWS VPC ID or GCP VPC network name of the peered VPC
- vpc_
id str The VPC the peering connection belongs to
- client_
timeout Dict[VpcPeering Connection Client Timeout] Custom Terraform Client timeouts
- peer_
region str AWS region of the peered VPC (if not in the same region as Aiven VPC)
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcPeeringConnection resource produces the following output properties:
- 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 Dict[str, Any] State-specific help or error information
Look up an 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): VpcPeeringConnectionstatic get(resource_name, id, opts=None, client_timeout=None, peer_cloud_account=None, peer_region=None, peer_vpc=None, peering_connection_id=None, state=None, state_info=None, vpc_id=None, __props__=None);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)- 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.
The following state arguments are supported:
- Client
Timeout VpcPeering Connection Client Timeout Args Custom Terraform Client timeouts
- Peer
Cloud stringAccount AWS account ID or GCP project ID of the peered VPC
- Peer
Region string AWS region of the peered VPC (if not in the same region as Aiven VPC)
- Peer
Vpc string AWS VPC ID or GCP VPC network name of the peered VPC
- 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
- Client
Timeout VpcPeering Connection Client Timeout Custom Terraform Client timeouts
- Peer
Cloud stringAccount AWS account ID or GCP project ID of the peered VPC
- Peer
Region string AWS region of the peered VPC (if not in the same region as Aiven VPC)
- Peer
Vpc string AWS VPC ID or GCP VPC network name of the peered VPC
- 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
- client
Timeout VpcPeering Connection Client Timeout Custom Terraform Client timeouts
- peer
Cloud stringAccount AWS account ID or GCP project ID of the peered VPC
- peer
Region string AWS region of the peered VPC (if not in the same region as Aiven VPC)
- peer
Vpc string AWS VPC ID or GCP VPC network name of the peered VPC
- 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
- client_
timeout Dict[VpcPeering Connection Client Timeout] Custom Terraform Client timeouts
- peer_
cloud_ straccount AWS account ID or GCP project ID of the peered VPC
- peer_
region str AWS region of the peered VPC (if not in the same region as Aiven VPC)
- peer_
vpc str AWS VPC ID or GCP VPC network name of the peered VPC
- peering_
connection_ strid Cloud provider identifier for the peering connection if available
- state str
State of the peering connection
- state_
info Dict[str, Any] State-specific help or error information
- vpc_
id str The VPC the peering connection belongs to
Supporting Types
VpcPeeringConnectionClientTimeout
Package Details
- Repository
- https://github.com/pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aivenTerraform Provider.