diff --git a/provider/resources.go b/provider/resources.go index 9ec795a085d..33ff6f7c7ae 100644 --- a/provider/resources.go +++ b/provider/resources.go @@ -1889,7 +1889,10 @@ func ProviderFromMeta(metaInfo *tfbridge.MetadataInfo) *tfbridge.ProviderInfo { "aws_ec2_transit_gateway_route_table_propagation": { Tok: awsResource(ec2TransitGatewayMod, "RouteTablePropagation"), }, - "aws_ec2_transit_gateway_vpc_attachment": {Tok: awsResource(ec2TransitGatewayMod, "VpcAttachment")}, + "aws_ec2_transit_gateway_vpc_attachment": { + Tok: awsResource(ec2TransitGatewayMod, "VpcAttachment"), + DeleteBeforeReplace: true, + }, "aws_ec2_transit_gateway_vpc_attachment_accepter": {Tok: awsResource(ec2TransitGatewayMod, "VpcAttachmentAccepter")}, "aws_ec2_transit_gateway_peering_attachment": {Tok: awsResource(ec2TransitGatewayMod, "PeeringAttachment")}, "aws_ec2_transit_gateway_connect": {Tok: awsResource(ec2TransitGatewayMod, "Connect")},