Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App Rule Missing Macro Option #73

Open
AStrangwood opened this issue Feb 11, 2022 · 2 comments
Open

App Rule Missing Macro Option #73

AStrangwood opened this issue Feb 11, 2022 · 2 comments

Comments

@AStrangwood
Copy link

AStrangwood commented Feb 11, 2022

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
Copy link

ayoul3 commented May 31, 2023

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

@Jmfwolf
Copy link
Contributor

Jmfwolf commented May 31, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants