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

Action Triggers #934

Open
1 task done
stephenbawks opened this issue Mar 14, 2024 · 0 comments
Open
1 task done

Action Triggers #934

stephenbawks opened this issue Mar 14, 2024 · 0 comments
Labels
🌱 feature New feature or request

Comments

@stephenbawks
Copy link

stephenbawks commented Mar 14, 2024

Checklist

Describe the problem you'd like to have solved

I was creating an internal module for the the actions triggers (https://registry.terraform.io/providers/auth0/auth0/latest/docs/resources/trigger_actions)

I noticed that you have the id of the action. I would like to be able to specify the name of the action instead of the actual id. The main reason I bring this up is that the id is pretty useless to a human AND there is no way to actually see the action id in the console. I have to drop to the CLI or do an export to see the action id.

What I am proposing is that I want to be able to specify the name of the action that was used when it was created and be able to do a deployment with that instead of the id. Or at least I think it could be an either or situation. Where name OR id has to be specified when doing the deployment.

Describe the ideal solution

Ideally when I am specifying the Terraform I would like to be able to do something like this:

Terraform

resource "auth0_trigger_actions" "login_flow" {
  trigger = var.trigger_type

  dynamic "actions" {
    for_each = var.actions
    content {
      name         = actions.value.name
      display_name = actions.value.display_name
    }
  }
}

TFVars

trigger_type = "post-login"

  actions = [
    {
      name = "SuperAwesomeAction",
      display_name = "Create a new session",
    }
  ]

Whereas today I have to specify this instead.

trigger_type = "post-login"

  actions = [
    {
      id = "aa06a9ed-0b3c-4b7c-9bad-94b190c8389b",
      display_name = "Create a new session",
    }
  ]

Alternatives and current workarounds

Not sure if adding a data resource to look up an action via its name to pull back its id might be something that would work as well, but that might be an alternative.

Additional context

No response

@stephenbawks stephenbawks added the 🌱 feature New feature or request label Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌱 feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant