Attach action to a flow using terraform

Hello,
I have this Action defined in Terraform:

resource "auth0_action" "post-login" {
  name    = "Post-Login"
  deploy  = true
  runtime = "node16"
  code    = file("${path.module}/auth0-actions/post-login.js")
  supported_triggers {
    id      = "post-login"
    version = "v3"
  }

}

After applying the changes. I could see the action in Management Console → Actions → Library.
But I don’t see it attached to the Login flow in Management Console → Actions → Flows → Login!

How can I configure terraform action to automatically attach it to the flow?!

Hi @khaledez,

Welcome to the Auth0 Community!

I have just reviewed the Auth0 Terraform documentation and found that you must call the auth0_trigger_binding resource to attach your Actions to the flow and deploy them.

See here: Terraform Registry -auth0_trigger_binding

I hope this helps!

Please let me know if you have any further questions.

Thanks,
Rueben

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.