Route Table Association
Manages an EC2 Transit Gateway Route Table association.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2transitgateway.RouteTableAssociation;
import com.pulumi.aws.ec2transitgateway.RouteTableAssociationArgs;
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 example = new RouteTableAssociation("example", RouteTableAssociationArgs.builder()
.transitGatewayAttachmentId(aws_ec2_transit_gateway_vpc_attachment.example().id())
.transitGatewayRouteTableId(aws_ec2_transit_gateway_route_table.example().id())
.build());
}
}
Content copied to clipboard
Import
Using pulumi import
, import aws_ec2_transit_gateway_route_table_association
using the EC2 Transit Gateway Route Table identifier, an underscore, and the EC2 Transit Gateway Attachment identifier. For example:
$ pulumi import aws:ec2transitgateway/routeTableAssociation:RouteTableAssociation example tgw-rtb-12345678_tgw-attach-87654321
Content copied to clipboard
Properties
Link copied to clipboard
Boolean whether the Gateway Attachment should remove any current Route Table association before associating with the specified Route Table. Default value: false
. This argument is intended for use with EC2 Transit Gateways shared into the current account, otherwise the transit_gateway_default_route_table_association
argument of the aws.ec2transitgateway.VpcAttachment
resource should be used.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard