RavinderReddyF5 / terraform-provider-bigip-version0.12

Terraform resources that can configure F5 BIGIP products
Mozilla Public License 2.0
0 stars 0 forks source link

bigip_ltm_policy resource seems broken #61

Open RavinderReddyF5 opened 4 years ago

RavinderReddyF5 commented 4 years ago

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.


name = "my_policy"
strategy = "first-match"
 requires = ["http"]
published_copy = "Drafts/my_policy"
 controls = ["forwarding"]
 rule  {
 name = "rule6"

  action = {
    tm_name = "20"
    redirect = true
     location = "https://www.auctionsniper.com/help/support/"
  }
 }
# depends_on = ["bigip_ltm_pool.mypool"]
}```
RavinderReddyF5 commented 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.

RavinderReddyF5 commented 4 years ago

Comment by jlosito Thursday Jul 18, 2019 at 01:18 GMT


Any update on fixing this bug?