You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TMOS/Bigip Version: BIG-IP 17.1.2.1 Build 0.0.2 Point Release 1
Terraform Version: v1.7.4
Terraform bigip provider Version: v1.22.9
Summary
Using the provider version 1.22.8, I can do something like terraform import module.lvf_auth.bigip_waf_policy.this 6s3AxJsLGy6QBSLazRvL5w;
On version 1.22.9 it fails with something like
╷
│ Error: error Exporting waf policy `` with : [ERROR] WafPolicy import failed with :{File: Message:Could not export the Policy '/Common/Base_ASM_Policy'. Entity Type/Kind '' has no matching entity type}
│
│
The same error also happens with the data resource
Steps To Reproduce
data "bigip_waf_policy" "existpolicy" {
policy_id = "6s3AxJsLGy6QBSLazRvL5w" ### PUT YOUR POLICY ID HERE
}
output "existpolicy" {
value = data.bigip_waf_policy.existpolicy
}
terraform init terraform plan
Expected Behavior
Import should work
Actual Behavior
it fails with the error I pasted above
The text was updated successfully, but these errors were encountered:
$ terraform import bigip_waf_policy.this EdchwjSqo9cFtYP-iWUJmwbigip_waf_policy.this: Importing from ID "EdchwjSqo9cFtYP-iWUJmw"...bigip_waf_policy.this: Import prepared! Prepared bigip_waf_policy for importbigip_waf_policy.this: Refreshing state... [id=EdchwjSqo9cFtYP-iWUJmw]Import successful!The resources that were imported are shown above. These resources are now inyour Terraform state and will henceforth be managed by Terraform.
You are using a module lvf_auth and I think what you shared is the main.tf of the module.
Could you confirm?
Also could you share your main.tf calling the module?
I understand and I'm not asking you to share the policy here.
If the issue is on WAF, this is not the right place.
Yes, you can open a support case and they will help to understand where is the issue.
If the issue is on WAF, WAF engineer will help you.
If the issue is on Terraform provider, you need to ask support engineer to escalate to ecosystem team (like any Ansible case).
Environment
Summary
Using the provider version 1.22.8, I can do something like
terraform import module.lvf_auth.bigip_waf_policy.this 6s3AxJsLGy6QBSLazRvL5w;
On version 1.22.9 it fails with something like
The same error also happens with the data resource
Steps To Reproduce
terraform init
terraform plan
Expected Behavior
Import should work
Actual Behavior
it fails with the error I pasted above
The text was updated successfully, but these errors were encountered: