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
new VpcAttachmentAccepter(name: string, args: VpcAttachmentAccepterArgs, opts?: CustomResourceOptions);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);func NewVpcAttachmentAccepter(ctx *Context, name string, args VpcAttachmentAccepterArgs, opts ...ResourceOption) (*VpcAttachmentAccepter, error)public VpcAttachmentAccepter(string name, VpcAttachmentAccepterArgs args, CustomResourceOptions? opts = null)- 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:
- Transit
Gateway stringAttachment Id The ID of the EC2 Transit Gateway Attachment to manage.
- Dictionary<string, string>
Key-value tags for the EC2 Transit Gateway VPC Attachment.
- Transit
Gateway boolDefault Route Table Association Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. Default value:
true.- Transit
Gateway boolDefault Route Table Propagation Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. Default value:
true.
- Transit
Gateway stringAttachment Id The ID of the EC2 Transit Gateway Attachment to manage.
- map[string]string
Key-value tags for the EC2 Transit Gateway VPC Attachment.
- Transit
Gateway boolDefault Route Table Association Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. Default value:
true.- Transit
Gateway boolDefault Route Table Propagation Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. Default value:
true.
- transit
Gateway stringAttachment Id The ID of the EC2 Transit Gateway Attachment to manage.
- {[key: string]: string}
Key-value tags for the EC2 Transit Gateway VPC Attachment.
- transit
Gateway booleanDefault Route Table Association Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. Default value:
true.- transit
Gateway booleanDefault Route Table Propagation Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. Default value:
true.
- transit_
gateway_ strattachment_ id The ID of the EC2 Transit Gateway Attachment to manage.
- Dict[str, str]
Key-value tags for the EC2 Transit Gateway VPC Attachment.
- transit_
gateway_ booldefault_ route_ table_ association Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. Default value:
true.- transit_
gateway_ booldefault_ route_ table_ propagation 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:
- Dns
Support 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.- Subnet
Ids List<string> Identifiers of EC2 Subnets.
- Transit
Gateway stringId Identifier of EC2 Transit Gateway.
- Vpc
Id string Identifier of EC2 VPC.
- Vpc
Owner stringId Identifier of the AWS account that owns the EC2 VPC.
- Dns
Support 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.- Subnet
Ids []string Identifiers of EC2 Subnets.
- Transit
Gateway stringId Identifier of EC2 Transit Gateway.
- Vpc
Id string Identifier of EC2 VPC.
- Vpc
Owner stringId Identifier of the AWS account that owns the EC2 VPC.
- dns
Support 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.- subnet
Ids string[] Identifiers of EC2 Subnets.
- transit
Gateway stringId Identifier of EC2 Transit Gateway.
- vpc
Id string Identifier of EC2 VPC.
- vpc
Owner stringId 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_ strid Identifier of EC2 Transit Gateway.
- vpc_
id str Identifier of EC2 VPC.
- vpc_
owner_ strid 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.
public static get(name: string, id: Input<ID>, state?: VpcAttachmentAccepterState, opts?: CustomResourceOptions): VpcAttachmentAccepterstatic 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)public static VpcAttachmentAccepter Get(string name, Input<string> id, VpcAttachmentAccepterState? 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:
- Dns
Support string Whether DNS support is enabled. Valid values:
disable,enable.- Ipv6Support string
Whether IPv6 support is enabled. Valid values:
disable,enable.- Subnet
Ids List<string> Identifiers of EC2 Subnets.
- Dictionary<string, string>
Key-value tags for the EC2 Transit Gateway VPC Attachment.
- Transit
Gateway stringAttachment Id The ID of the EC2 Transit Gateway Attachment to manage.
- Transit
Gateway boolDefault Route Table Association Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. Default value:
true.- Transit
Gateway boolDefault Route Table Propagation Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. Default value:
true.- Transit
Gateway stringId Identifier of EC2 Transit Gateway.
- Vpc
Id string Identifier of EC2 VPC.
- Vpc
Owner stringId Identifier of the AWS account that owns the EC2 VPC.
- Dns
Support string Whether DNS support is enabled. Valid values:
disable,enable.- Ipv6Support string
Whether IPv6 support is enabled. Valid values:
disable,enable.- Subnet
Ids []string Identifiers of EC2 Subnets.
- map[string]string
Key-value tags for the EC2 Transit Gateway VPC Attachment.
- Transit
Gateway stringAttachment Id The ID of the EC2 Transit Gateway Attachment to manage.
- Transit
Gateway boolDefault Route Table Association Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. Default value:
true.- Transit
Gateway boolDefault Route Table Propagation Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. Default value:
true.- Transit
Gateway stringId Identifier of EC2 Transit Gateway.
- Vpc
Id string Identifier of EC2 VPC.
- Vpc
Owner stringId Identifier of the AWS account that owns the EC2 VPC.
- dns
Support string Whether DNS support is enabled. Valid values:
disable,enable.- ipv6Support string
Whether IPv6 support is enabled. Valid values:
disable,enable.- subnet
Ids string[] Identifiers of EC2 Subnets.
- {[key: string]: string}
Key-value tags for the EC2 Transit Gateway VPC Attachment.
- transit
Gateway stringAttachment Id The ID of the EC2 Transit Gateway Attachment to manage.
- transit
Gateway booleanDefault Route Table Association Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. Default value:
true.- transit
Gateway booleanDefault Route Table Propagation Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. Default value:
true.- transit
Gateway stringId Identifier of EC2 Transit Gateway.
- vpc
Id string Identifier of EC2 VPC.
- vpc
Owner stringId 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.
- Dict[str, str]
Key-value tags for the EC2 Transit Gateway VPC Attachment.
- transit_
gateway_ strattachment_ id The ID of the EC2 Transit Gateway Attachment to manage.
- transit_
gateway_ booldefault_ route_ table_ association Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. Default value:
true.- transit_
gateway_ booldefault_ route_ table_ propagation Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. Default value:
true.- transit_
gateway_ strid Identifier of EC2 Transit Gateway.
- vpc_
id str Identifier of EC2 VPC.
- vpc_
owner_ strid 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
awsTerraform Provider.