@@ -480,13 +480,32 @@ func Test_ComputeTerraformImportForResource(t *testing.T) {
480
480
SupportsImport : true ,
481
481
},
482
482
},
483
+ {
484
+ name : "For aws_route_with_destination_prefix_list_id" ,
485
+ terraformResource : parser.TerraformResource {
486
+ Address : "aws_route.test" ,
487
+ Type : "aws_route" ,
488
+ AttributeValues : map [string ]any {
489
+ "route_table_id" : "rtb-656C65616E6F72" ,
490
+ "destination_prefix_list_id" : "pl-12df45133" ,
491
+ "destination_cidr_block" : "" ,
492
+ "destination_ipv6_cidr_block" : "" ,
493
+ },
494
+ },
495
+ expected : TerraformImport {
496
+ ResourceAddress : "aws_route.test" ,
497
+ ResourceID : "rtb-656C65616E6F72_pl-12df45133" ,
498
+ SupportsImport : true ,
499
+ },
500
+ },
483
501
{
484
502
name : "For aws_route_with_destination_cidr_block" ,
485
503
terraformResource : parser.TerraformResource {
486
504
Address : "aws_route.test" ,
487
505
Type : "aws_route" ,
488
506
AttributeValues : map [string ]any {
489
507
"route_table_id" : "rtb-656C65616E6F72" ,
508
+ "destination_prefix_list_id" : "" ,
490
509
"destination_cidr_block" : "10.42.0.0/16" ,
491
510
"destination_ipv6_cidr_block" : "" ,
492
511
},
@@ -504,6 +523,7 @@ func Test_ComputeTerraformImportForResource(t *testing.T) {
504
523
Type : "aws_route" ,
505
524
AttributeValues : map [string ]any {
506
525
"route_table_id" : "rtb-656C65616E6F72" ,
526
+ "destination_prefix_list_id" : "" ,
507
527
"destination_cidr_block" : "" ,
508
528
"destination_ipv6_cidr_block" : "2620:0:2d0:200::8/1" ,
509
529
},
0 commit comments