terraform-provider-fortios
terraform-provider-fortios copied to clipboard
Terraform cannot import rules in fortios_router_prefixlist
I tried to use the following command to import fortios_router_prefixlist to my Terraform state. It only imported the prefixlist with the name and id but not the rule block within the prefixlist. "ID_10" is the name of the prefixlist.
terraform import fortios_router_prefixlist.pl_10 ID_10
$ terraform state show fortios_router_prefixlist.pl_10
fortios_router_prefixlist.pl_10:
resource "fortios_router_prefixlist" "pl_10" { id = "ID_10" name = "ID_10" }
Hi @fungy01 ,
Thank you for raising this issue. May I know which FGT and terraform version are you using, since on my side, it works as expected.
Thanks, Maxx
Hi @MaxxLiu22 , i have same problem with importing prefixlists and route-maps. Using FTG v7.2.4, terraform v1.4.2 and frotios provider v1.16.0