If you already action and trigger, you can’t just remove the action and apply the terraform changes because you’ll get: Error: 409 Conflict: Unable to delete an action bound to a trigger.. To overcome that, remove the association of trigger and action first in auth0_trigger_actions resource then apply the change. Afterwards, you can delete the auth0_action resource.
resource "auth0_action" "action1" {
...
}
resource "auth0_trigger_actions" "trigger1" {
trigger = "post-login"
actions {
display_name = auth0_action.action1.name
id = auth0_action.action1.id
}
}