Open RavinderReddyF5 opened 4 years ago
Comment by techspecguy Saturday Apr 27, 2019 at 01:37 GMT
I can confirm this behavior. Policies also do not show up in the state when importing a Virtual Server resource. The virtual's policies always show #0 and each time applying, terraform thinks it needs to add the policies that are defined in the tf config. The policies if defined actually get created when adding a virtual server, but state still shows none.
When trying to create a policy resource, it will always add the policy to drafts in the F5, but will not publish the policy.
Issue by pkustner Wednesday Jan 02, 2019 at 19:17 GMT Originally opened as https://github.com/terraform-providers/terraform-provider-bigip/issues/30
can also reference https://github.com/f5devcentral/terraform-provider-bigip/issues/112
Using a very slightly modified version of the example code for the provider I get the following error when I try to apply.
bigip_ltm_policy.test-policy: 0107186c:3: Policy '/Common/Drafts/my_policy', rule 'rule6'; missing or invalid target.
Here's the terraform Policy I'm trying with.