VpcAttachmentAccepter

Manages the accepter’s side of an EC2 Transit Gateway VPC Attachment.

When a cross-account (requester’s AWS account differs from the accepter’s AWS account) EC2 Transit Gateway VPC Attachment is created, an EC2 Transit Gateway VPC Attachment resource is automatically created in the accepter’s account. The requester can use the aws.ec2transitgateway.VpcAttachment resource to manage its side of the connection and the accepter can use the aws.ec2transitgateway.VpcAttachmentAccepter resource to “adopt” its side of the connection into management.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new Aws.Ec2TransitGateway.VpcAttachmentAccepter("example", new Aws.Ec2TransitGateway.VpcAttachmentAccepterArgs
        {
            Tags = 
            {
                { "Name", "Example cross-account attachment" },
            },
            TransitGatewayAttachmentId = aws_ec2_transit_gateway_vpc_attachment.Example.Id,
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/ec2transitgateway"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := ec2transitgateway.NewVpcAttachmentAccepter(ctx, "example", &ec2transitgateway.VpcAttachmentAccepterArgs{
            Tags: pulumi.StringMap{
                "Name": pulumi.String("Example cross-account attachment"),
            },
            TransitGatewayAttachmentId: pulumi.String(aws_ec2_transit_gateway_vpc_attachment.Example.Id),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

example = aws.ec2transitgateway.VpcAttachmentAccepter("example",
    tags={
        "Name": "Example cross-account attachment",
    },
    transit_gateway_attachment_id=aws_ec2_transit_gateway_vpc_attachment["example"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.ec2transitgateway.VpcAttachmentAccepter("example", {
    tags: {
        Name: "Example cross-account attachment",
    },
    transitGatewayAttachmentId: aws_ec2_transit_gateway_vpc_attachment_example.id,
});

Create a VpcAttachmentAccepter Resource

def VpcAttachmentAccepter(resource_name, opts=None, tags=None, transit_gateway_attachment_id=None, transit_gateway_default_route_table_association=None, transit_gateway_default_route_table_propagation=None, __props__=None);
name string
The unique name of the resource.
args VpcAttachmentAccepterArgs
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 VpcAttachmentAccepterArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args VpcAttachmentAccepterArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

VpcAttachmentAccepter Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The VpcAttachmentAccepter resource accepts the following input properties:

TransitGatewayAttachmentId string

The ID of the EC2 Transit Gateway Attachment to manage.

Tags Dictionary<string, string>

Key-value tags for the EC2 Transit Gateway VPC Attachment.

TransitGatewayDefaultRouteTableAssociation bool

Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. Default value: true.

TransitGatewayDefaultRouteTablePropagation bool

Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. Default value: true.

TransitGatewayAttachmentId string

The ID of the EC2 Transit Gateway Attachment to manage.

Tags map[string]string

Key-value tags for the EC2 Transit Gateway VPC Attachment.

TransitGatewayDefaultRouteTableAssociation bool

Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. Default value: true.

TransitGatewayDefaultRouteTablePropagation bool

Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. Default value: true.

transitGatewayAttachmentId string

The ID of the EC2 Transit Gateway Attachment to manage.

tags {[key: string]: string}

Key-value tags for the EC2 Transit Gateway VPC Attachment.

transitGatewayDefaultRouteTableAssociation boolean

Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. Default value: true.

transitGatewayDefaultRouteTablePropagation boolean

Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. Default value: true.

transit_gateway_attachment_id str

The ID of the EC2 Transit Gateway Attachment to manage.

tags Dict[str, str]

Key-value tags for the EC2 Transit Gateway VPC Attachment.

transit_gateway_default_route_table_association bool

Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. Default value: true.

transit_gateway_default_route_table_propagation bool

Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. Default value: true.

Outputs

All input properties are implicitly available as output properties. Additionally, the VpcAttachmentAccepter resource produces the following output properties:

DnsSupport string

Whether DNS support is enabled. Valid values: disable, enable.

Id string
The provider-assigned unique ID for this managed resource.
Ipv6Support string

Whether IPv6 support is enabled. Valid values: disable, enable.

SubnetIds List<string>

Identifiers of EC2 Subnets.

TransitGatewayId string

Identifier of EC2 Transit Gateway.

VpcId string

Identifier of EC2 VPC.

VpcOwnerId string

Identifier of the AWS account that owns the EC2 VPC.

DnsSupport string

Whether DNS support is enabled. Valid values: disable, enable.

Id string
The provider-assigned unique ID for this managed resource.
Ipv6Support string

Whether IPv6 support is enabled. Valid values: disable, enable.

SubnetIds []string

Identifiers of EC2 Subnets.

TransitGatewayId string

Identifier of EC2 Transit Gateway.

VpcId string

Identifier of EC2 VPC.

VpcOwnerId string

Identifier of the AWS account that owns the EC2 VPC.

dnsSupport string

Whether DNS support is enabled. Valid values: disable, enable.

id string
The provider-assigned unique ID for this managed resource.
ipv6Support string

Whether IPv6 support is enabled. Valid values: disable, enable.

subnetIds string[]

Identifiers of EC2 Subnets.

transitGatewayId string

Identifier of EC2 Transit Gateway.

vpcId string

Identifier of EC2 VPC.

vpcOwnerId string

Identifier of the AWS account that owns the EC2 VPC.

dns_support str

Whether DNS support is enabled. Valid values: disable, enable.

id str
The provider-assigned unique ID for this managed resource.
ipv6_support str

Whether IPv6 support is enabled. Valid values: disable, enable.

subnet_ids List[str]

Identifiers of EC2 Subnets.

transit_gateway_id str

Identifier of EC2 Transit Gateway.

vpc_id str

Identifier of EC2 VPC.

vpc_owner_id str

Identifier of the AWS account that owns the EC2 VPC.

Look up an Existing VpcAttachmentAccepter Resource

Get an existing VpcAttachmentAccepter resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

static get(resource_name, id, opts=None, dns_support=None, ipv6_support=None, subnet_ids=None, tags=None, transit_gateway_attachment_id=None, transit_gateway_default_route_table_association=None, transit_gateway_default_route_table_propagation=None, transit_gateway_id=None, vpc_id=None, vpc_owner_id=None, __props__=None);
func GetVpcAttachmentAccepter(ctx *Context, name string, id IDInput, state *VpcAttachmentAccepterState, opts ...ResourceOption) (*VpcAttachmentAccepter, error)
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:

DnsSupport string

Whether DNS support is enabled. Valid values: disable, enable.

Ipv6Support string

Whether IPv6 support is enabled. Valid values: disable, enable.

SubnetIds List<string>

Identifiers of EC2 Subnets.

Tags Dictionary<string, string>

Key-value tags for the EC2 Transit Gateway VPC Attachment.

TransitGatewayAttachmentId string

The ID of the EC2 Transit Gateway Attachment to manage.

TransitGatewayDefaultRouteTableAssociation bool

Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. Default value: true.

TransitGatewayDefaultRouteTablePropagation bool

Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. Default value: true.

TransitGatewayId string

Identifier of EC2 Transit Gateway.

VpcId string

Identifier of EC2 VPC.

VpcOwnerId string

Identifier of the AWS account that owns the EC2 VPC.

DnsSupport string

Whether DNS support is enabled. Valid values: disable, enable.

Ipv6Support string

Whether IPv6 support is enabled. Valid values: disable, enable.

SubnetIds []string

Identifiers of EC2 Subnets.

Tags map[string]string

Key-value tags for the EC2 Transit Gateway VPC Attachment.

TransitGatewayAttachmentId string

The ID of the EC2 Transit Gateway Attachment to manage.

TransitGatewayDefaultRouteTableAssociation bool

Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. Default value: true.

TransitGatewayDefaultRouteTablePropagation bool

Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. Default value: true.

TransitGatewayId string

Identifier of EC2 Transit Gateway.

VpcId string

Identifier of EC2 VPC.

VpcOwnerId string

Identifier of the AWS account that owns the EC2 VPC.

dnsSupport string

Whether DNS support is enabled. Valid values: disable, enable.

ipv6Support string

Whether IPv6 support is enabled. Valid values: disable, enable.

subnetIds string[]

Identifiers of EC2 Subnets.

tags {[key: string]: string}

Key-value tags for the EC2 Transit Gateway VPC Attachment.

transitGatewayAttachmentId string

The ID of the EC2 Transit Gateway Attachment to manage.

transitGatewayDefaultRouteTableAssociation boolean

Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. Default value: true.

transitGatewayDefaultRouteTablePropagation boolean

Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. Default value: true.

transitGatewayId string

Identifier of EC2 Transit Gateway.

vpcId string

Identifier of EC2 VPC.

vpcOwnerId string

Identifier of the AWS account that owns the EC2 VPC.

dns_support str

Whether DNS support is enabled. Valid values: disable, enable.

ipv6_support str

Whether IPv6 support is enabled. Valid values: disable, enable.

subnet_ids List[str]

Identifiers of EC2 Subnets.

tags Dict[str, str]

Key-value tags for the EC2 Transit Gateway VPC Attachment.

transit_gateway_attachment_id str

The ID of the EC2 Transit Gateway Attachment to manage.

transit_gateway_default_route_table_association bool

Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. Default value: true.

transit_gateway_default_route_table_propagation bool

Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. Default value: true.

transit_gateway_id str

Identifier of EC2 Transit Gateway.

vpc_id str

Identifier of EC2 VPC.

vpc_owner_id str

Identifier of the AWS account that owns the EC2 VPC.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.