onelogin / terraform-provider-onelogin

GNU General Public License v3.0
27 stars 19 forks source link

App Rule Missing Macro Option #73

Open AStrangwood opened 2 years ago

AStrangwood commented 2 years ago

I want to use a macro for a app rule but im hitting an error when applying my terraform

╷ │ Error: Unsupported argument │ │ on onelogin_app_rules.tf line 33, in resource "onelogin_app_rules" "blahhg": │ 33: macro = "blahhfj" │ │ An argument named "macro" is not expected here. ╵ ERRO[0001] 1 error occurred:

  • exit status 1

example terraform

resource onelogin_app_rules blah{
  app_id = onelogin_oidc_apps.blah.id
  enabled = true
  match = "all"
  name = "ips_engineering"

  actions {
    action = "set_macro_thingy"
    macro = "texteter"
    value = []
  }

  conditions {
    operator = "ri"
    source   = "has_role"
    value    = "55953"
  }

}

The docs mention the macro value is available. https://registry.terraform.io/providers/onelogin/onelogin/latest/docs/resources/onelogin_app_rule#macro

using version 0.1.25

ayoul3 commented 1 year ago

Hey @Jmfwolf, is it possible to add the macro field? it would help a lot ! thank you very much for your help !

Jmfwolf commented 1 year ago

@ayoul3 @AStrangwood I am working on an updated implementation using the terraform plugin framework here