aiven.TransitGatewayVpcAttachment
Explore with Pulumi AI
The Transit Gateway VPC Attachment resource allows the creation and management Transit Gateway VPC Attachment VPC peering connection between Aiven and AWS.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aiven = Pulumi.Aiven;
return await Deployment.RunAsync(() =>
{
var attachment = new Aiven.TransitGatewayVpcAttachment("attachment", new()
{
VpcId = aiven_project_vpc.Bar.Id,
PeerCloudAccount = "<PEER_ACCOUNT_ID>",
PeerVpc = "google-project1",
PeerRegion = "aws-eu-west-1",
UserPeerNetworkCidrs = new[]
{
"10.0.0.0/24",
},
});
});
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 {
_, err := aiven.NewTransitGatewayVpcAttachment(ctx, "attachment", &aiven.TransitGatewayVpcAttachmentArgs{
VpcId: pulumi.Any(aiven_project_vpc.Bar.Id),
PeerCloudAccount: pulumi.String("<PEER_ACCOUNT_ID>"),
PeerVpc: pulumi.String("google-project1"),
PeerRegion: pulumi.String("aws-eu-west-1"),
UserPeerNetworkCidrs: pulumi.StringArray{
pulumi.String("10.0.0.0/24"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aiven.TransitGatewayVpcAttachment;
import com.pulumi.aiven.TransitGatewayVpcAttachmentArgs;
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 attachment = new TransitGatewayVpcAttachment("attachment", TransitGatewayVpcAttachmentArgs.builder()
.vpcId(aiven_project_vpc.bar().id())
.peerCloudAccount("<PEER_ACCOUNT_ID>")
.peerVpc("google-project1")
.peerRegion("aws-eu-west-1")
.userPeerNetworkCidrs("10.0.0.0/24")
.build());
}
}
import pulumi
import pulumi_aiven as aiven
attachment = aiven.TransitGatewayVpcAttachment("attachment",
vpc_id=aiven_project_vpc["bar"]["id"],
peer_cloud_account="<PEER_ACCOUNT_ID>",
peer_vpc="google-project1",
peer_region="aws-eu-west-1",
user_peer_network_cidrs=["10.0.0.0/24"])
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const attachment = new aiven.TransitGatewayVpcAttachment("attachment", {
vpcId: aiven_project_vpc.bar.id,
peerCloudAccount: "<PEER_ACCOUNT_ID>",
peerVpc: "google-project1",
peerRegion: "aws-eu-west-1",
userPeerNetworkCidrs: ["10.0.0.0/24"],
});
resources:
attachment:
type: aiven:TransitGatewayVpcAttachment
properties:
vpcId: ${aiven_project_vpc.bar.id}
peerCloudAccount: <PEER_ACCOUNT_ID>
peerVpc: google-project1
peerRegion: aws-eu-west-1
userPeerNetworkCidrs:
- 10.0.0.0/24
Create TransitGatewayVpcAttachment Resource
new TransitGatewayVpcAttachment(name: string, args: TransitGatewayVpcAttachmentArgs, opts?: CustomResourceOptions);
@overload
def TransitGatewayVpcAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
peer_cloud_account: Optional[str] = None,
peer_region: Optional[str] = None,
peer_vpc: Optional[str] = None,
user_peer_network_cidrs: Optional[Sequence[str]] = None,
vpc_id: Optional[str] = None)
@overload
def TransitGatewayVpcAttachment(resource_name: str,
args: TransitGatewayVpcAttachmentArgs,
opts: Optional[ResourceOptions] = None)
func NewTransitGatewayVpcAttachment(ctx *Context, name string, args TransitGatewayVpcAttachmentArgs, opts ...ResourceOption) (*TransitGatewayVpcAttachment, error)
public TransitGatewayVpcAttachment(string name, TransitGatewayVpcAttachmentArgs args, CustomResourceOptions? opts = null)
public TransitGatewayVpcAttachment(String name, TransitGatewayVpcAttachmentArgs args)
public TransitGatewayVpcAttachment(String name, TransitGatewayVpcAttachmentArgs args, CustomResourceOptions options)
type: aiven:TransitGatewayVpcAttachment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TransitGatewayVpcAttachmentArgs
- 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 TransitGatewayVpcAttachmentArgs
- 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 TransitGatewayVpcAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TransitGatewayVpcAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TransitGatewayVpcAttachmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TransitGatewayVpcAttachment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The TransitGatewayVpcAttachment 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 Transit gateway ID. This property cannot be changed, doing so forces recreation of the resource.
- User
Peer List<string>Network Cidrs List of private IPv4 ranges to route through the peering connection
- Vpc
Id string The VPC the peering connection belongs to. To set up proper dependencies please refer to this variable as a reference. 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 field is deprecated and will be removed in the next major release.
- 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 Transit gateway ID. This property cannot be changed, doing so forces recreation of the resource.
- User
Peer []stringNetwork Cidrs List of private IPv4 ranges to route through the peering connection
- Vpc
Id string The VPC the peering connection belongs to. To set up proper dependencies please refer to this variable as a reference. 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 field is deprecated and will be removed in the next major release.
- 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 Transit gateway ID. This property cannot be changed, doing so forces recreation of the resource.
- user
Peer List<String>Network Cidrs List of private IPv4 ranges to route through the peering connection
- vpc
Id String The VPC the peering connection belongs to. To set up proper dependencies please refer to this variable as a reference. 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 field is deprecated and will be removed in the next major release.
- 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 Transit gateway ID. This property cannot be changed, doing so forces recreation of the resource.
- user
Peer string[]Network Cidrs List of private IPv4 ranges to route through the peering connection
- vpc
Id string The VPC the peering connection belongs to. To set up proper dependencies please refer to this variable as a reference. 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 field is deprecated and will be removed in the next major release.
- 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 Transit gateway ID. This property cannot be changed, doing so forces recreation of the resource.
- user_
peer_ Sequence[str]network_ cidrs List of private IPv4 ranges to route through the peering connection
- vpc_
id str The VPC the peering connection belongs to. To set up proper dependencies please refer to this variable as a reference. 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 field is deprecated and will be removed in the next major release.
- 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 Transit gateway ID. This property cannot be changed, doing so forces recreation of the resource.
- user
Peer List<String>Network Cidrs List of private IPv4 ranges to route through the peering connection
- vpc
Id String The VPC the peering connection belongs to. To set up proper dependencies please refer to this variable as a reference. 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 field is deprecated and will be removed in the next major release.
Outputs
All input properties are implicitly available as output properties. Additionally, the TransitGatewayVpcAttachment 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 TransitGatewayVpcAttachment Resource
Get an existing TransitGatewayVpcAttachment 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?: TransitGatewayVpcAttachmentState, opts?: CustomResourceOptions): TransitGatewayVpcAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
peer_cloud_account: Optional[str] = None,
peer_region: 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,
user_peer_network_cidrs: Optional[Sequence[str]] = None,
vpc_id: Optional[str] = None) -> TransitGatewayVpcAttachment
func GetTransitGatewayVpcAttachment(ctx *Context, name string, id IDInput, state *TransitGatewayVpcAttachmentState, opts ...ResourceOption) (*TransitGatewayVpcAttachment, error)
public static TransitGatewayVpcAttachment Get(string name, Input<string> id, TransitGatewayVpcAttachmentState? state, CustomResourceOptions? opts = null)
public static TransitGatewayVpcAttachment get(String name, Output<String> id, TransitGatewayVpcAttachmentState 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.
- 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 field is deprecated and will be removed in the next major release.
- Peer
Vpc string Transit gateway ID. 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
- User
Peer List<string>Network Cidrs List of private IPv4 ranges to route through the peering connection
- Vpc
Id string The VPC the peering connection belongs to. To set up proper dependencies please refer to this variable as a reference. 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 field is deprecated and will be removed in the next major release.
- Peer
Vpc string Transit gateway ID. 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
- User
Peer []stringNetwork Cidrs List of private IPv4 ranges to route through the peering connection
- Vpc
Id string The VPC the peering connection belongs to. To set up proper dependencies please refer to this variable as a reference. 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 field is deprecated and will be removed in the next major release.
- peer
Vpc String Transit gateway ID. 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
- user
Peer List<String>Network Cidrs List of private IPv4 ranges to route through the peering connection
- vpc
Id String The VPC the peering connection belongs to. To set up proper dependencies please refer to this variable as a reference. 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 field is deprecated and will be removed in the next major release.
- peer
Vpc string Transit gateway ID. 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
- user
Peer string[]Network Cidrs List of private IPv4 ranges to route through the peering connection
- vpc
Id string The VPC the peering connection belongs to. To set up proper dependencies please refer to this variable as a reference. 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 field is deprecated and will be removed in the next major release.
- peer_
vpc str Transit gateway ID. 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
- user_
peer_ Sequence[str]network_ cidrs List of private IPv4 ranges to route through the peering connection
- vpc_
id str The VPC the peering connection belongs to. To set up proper dependencies please refer to this variable as a reference. 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 field is deprecated and will be removed in the next major release.
- peer
Vpc String Transit gateway ID. 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
- user
Peer List<String>Network Cidrs List of private IPv4 ranges to route through the peering connection
- vpc
Id String The VPC the peering connection belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
Import
$ pulumi import aiven:index/transitGatewayVpcAttachment:TransitGatewayVpcAttachment attachment project/vpc_id/peer_cloud_account/peer_vpc/peer_region
Package Details
- Repository
- Aiven pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aiven
Terraform Provider.